File tree Expand file tree Collapse file tree 6 files changed +18
-4
lines changed
test/AutoDiff/validation-test/always_emit_into_client Expand file tree Collapse file tree 6 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 7
7
// RUN: -emit-module -emit-module-path %t/MultiFileModule.swiftmodule -module-name MultiFileModule
8
8
9
9
// RUN: %target-build-swift -I%t %s -o %t/a.out %target-rpath(%t)
10
+ // RUN: %target-codesign %t/a.out
10
11
// RUN: %target-run %t/a.out
11
12
12
13
// RUN: %target-build-swift -I%t %s -emit-ir | %FileCheck %s
Original file line number Diff line number Diff line change 5
5
/// symbols because all the functions in the module are marked as @_alwaysEmitIntoClient.
6
6
// RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModule1)) %S/Inputs/MultiModule/file1.swift \
7
7
// RUN: -emit-module -emit-module-path %t/MultiModule1.swiftmodule -module-name MultiModule1
8
+ // RUN: %target-codesign %t/%target-library-name(MultiModule1)
8
9
// RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModule2)) %S/Inputs/MultiModule/file2.swift \
9
10
// RUN: -emit-module -emit-module-path %t/MultiModule2.swiftmodule -module-name MultiModule2 -I%t %target-rpath(%t)
11
+ // RUN: %target-codesign %t/%target-library-name(MultiModule2)
10
12
11
13
// RUN: %target-build-swift -I%t %s -o %t/a.out %target-rpath(%t)
12
- // RUN: %target-run %t/a.out
14
+ // RUN: %target-codesign %t/a.out
15
+ // RUN: %target-run %t/a.out %t/%target-library-name(MultiModule1) %t/%target-library-name(MultiModule2)
13
16
14
17
// RUN: %target-build-swift -I%t %s -emit-ir | %FileCheck %s
15
18
Original file line number Diff line number Diff line change 3
3
4
4
// RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModuleProtocol1)) %S/Inputs/MultiModuleProtocol/file1.swift \
5
5
// RUN: -emit-module -emit-module-path %t/MultiModuleProtocol1.swiftmodule -module-name MultiModuleProtocol1
6
+ // RUN: %target-codesign %t/%target-library-name(MultiModuleProtocol1)
6
7
7
8
/// Note: we build just a module without a library since it would not contain any exported
8
9
/// symbols because all the functions in the module are marked as @_alwaysEmitIntoClient.
11
12
12
13
// RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModuleProtocol3)) %S/Inputs/MultiModuleProtocol/file3.swift \
13
14
// RUN: -emit-module -emit-module-path %t/MultiModuleProtocol3.swiftmodule -module-name MultiModuleProtocol3 -I%t -L%t -lMultiModuleProtocol1 %target-rpath(%t)
15
+ // RUN: %target-codesign %t/%target-library-name(MultiModuleProtocol3)
14
16
15
17
/// Note: we enable forward-mode differentiation to automatically generate JVP for `foo`.
16
18
/// It wraps `Protocol.sum` that has custom JVP defined in MultiModuleProtocol2, so we can test it.
17
19
// RUN: %target-build-swift -Xfrontend -enable-experimental-forward-mode-differentiation \
18
20
// RUN: -I%t -L%t %s -lMultiModuleProtocol1 -lMultiModuleProtocol3 -o %t/a.out %target-rpath(%t)
19
- // RUN: %target-run %t/a.out
21
+ // RUN: %target-codesign %t/a.out
22
+ // RUN: %target-run %t/a.out %t/%target-library-name(MultiModuleProtocol1) %t/%target-library-name(MultiModuleProtocol3)
20
23
21
24
// RUN: %target-build-swift -I%t %s -emit-ir | %FileCheck %s
22
25
Original file line number Diff line number Diff line change 3
3
4
4
// RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModuleStruct1)) %S/Inputs/MultiModuleStruct/file1.swift \
5
5
// RUN: -emit-module -emit-module-path %t/MultiModuleStruct1.swiftmodule -module-name MultiModuleStruct1
6
+ // RUN: %target-codesign %t/%target-library-name(MultiModuleStruct1)
6
7
// RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModuleStruct2)) %S/Inputs/MultiModuleStruct/file2.swift \
7
8
// RUN: -emit-module -emit-module-path %t/MultiModuleStruct2.swiftmodule -module-name MultiModuleStruct2 -I%t -L%t -lMultiModuleStruct1 %target-rpath(%t)
9
+ // RUN: %target-codesign %t/%target-library-name(MultiModuleStruct2)
8
10
9
11
/// Note: we enable forward-mode differentiation to automatically generate JVP for `foo`.
10
12
/// It wraps `Struct.sum` that has custom JVP defined in MultiModuleStruct2, so we can test it.
11
13
// RUN: %target-build-swift -Xfrontend -enable-experimental-forward-mode-differentiation \
12
14
// RUN: -I%t -L%t %s -lMultiModuleStruct1 -lMultiModuleStruct2 -o %t/a.out %target-rpath(%t)
13
- // RUN: %target-run %t/a.out
15
+ // RUN: %target-codesign %t/a.out
16
+ // RUN: %target-run %t/a.out %t/%target-library-name(MultiModuleStruct1) %t/%target-library-name(MultiModuleStruct2)
14
17
15
18
// RUN: %target-build-swift -I%t %s -emit-ir | %FileCheck %s
16
19
Original file line number Diff line number Diff line change 3
3
4
4
// RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModuleStruct1)) %S/Inputs/MultiModuleStruct/file1.swift \
5
5
// RUN: -emit-module -emit-module-path %t/MultiModuleStruct1.swiftmodule -module-name MultiModuleStruct1
6
+ // RUN: %target-codesign %t/%target-library-name(MultiModuleStruct1)
6
7
// RUN: %target-build-swift-dylib(%t/%target-library-name(MultiModuleStruct2NoJVP)) %S/Inputs/MultiModuleStruct/file2_no_jvp.swift \
7
8
// RUN: -emit-module -emit-module-path %t/MultiModuleStruct2NoJVP.swiftmodule -module-name MultiModuleStruct2NoJVP -I%t -L%t -lMultiModuleStruct1 %target-rpath(%t)
9
+ // RUN: %target-codesign %t/%target-library-name(MultiModuleStruct2NoJVP)
8
10
9
11
/// Note: we enable forward-mode differentiation to automatically generate JVP for `foo`.
10
12
/// It wraps `Struct.sum` that has custom JVP defined in MultiModuleStruct2, so we can test it.
11
13
// RUN: %target-build-swift -Xfrontend -enable-experimental-forward-mode-differentiation \
12
14
// RUN: -I%t -L%t %s -lMultiModuleStruct1 -lMultiModuleStruct2NoJVP -o %t/a.out %target-rpath(%t)
13
- // RUN: %target-run %t/a.out
15
+ // RUN: %target-codesign %t/a.out
16
+ // RUN: %target-run %t/a.out %t/%target-library-name(MultiModuleStruct1) %t/%target-library-name(MultiModuleStruct2NoJVP)
14
17
15
18
// RUN: %target-build-swift -I%t %s -emit-ir | %FileCheck %s
16
19
Original file line number Diff line number Diff line change 7
7
// RUN: -emit-module-path %t/SingleFileModule.swiftmodule -module-name SingleFileModule
8
8
9
9
// RUN: %target-build-swift -I%t %s -o %t/a.out %target-rpath(%t)
10
+ // RUN: %target-codesign %t/a.out
10
11
// RUN: %target-run %t/a.out
11
12
12
13
// RUN: %target-build-swift -I%t %s -emit-ir | %FileCheck %s
You can’t perform that action at this time.
0 commit comments