|
20 | 20 | //
|
21 | 21 | // Setup phase 2: build modules, pushing timestamps of inputs and intermediates into the past as we go.
|
22 | 22 | //
|
23 |
| -// RUN: %S/Inputs/make-old.py %t/leaf.swift %t/other.swift |
| 23 | +// RUN: %{python} %S/Inputs/make-old.py %t/leaf.swift %t/other.swift |
24 | 24 | // RUN: %target-swift-frontend -I %t -emit-parseable-module-interface-path %t/LeafModule.swiftinterface -module-name LeafModule %t/leaf.swift -emit-module -o /dev/null
|
25 |
| -// RUN: %S/Inputs/make-old.py %t/LeafModule.swiftinterface |
| 25 | +// RUN: %{python} %S/Inputs/make-old.py %t/LeafModule.swiftinterface |
26 | 26 | // RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -enable-parseable-module-interface -emit-parseable-module-interface-path %t/OtherModule.swiftinterface -module-name OtherModule %t/other.swift -emit-module -o /dev/null
|
27 |
| -// RUN: %S/Inputs/make-old.py %t/modulecache/LeafModule-*.swiftmodule %t/OtherModule.swiftinterface |
| 27 | +// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/LeafModule-*.swiftmodule %t/OtherModule.swiftinterface |
28 | 28 | // RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -enable-parseable-module-interface -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s
|
29 |
| -// RUN: %S/Inputs/make-old.py %t/modulecache/OtherModule-*.swiftmodule |
| 29 | +// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/OtherModule-*.swiftmodule |
30 | 30 | //
|
31 | 31 | //
|
32 | 32 | // Actual test: add an inlinable func with an unused var to LeafModule.swiftinterface (which should emit a warning); check we do get a rebuild, but no warning.
|
33 | 33 | //
|
34 |
| -// RUN: %S/Inputs/check-is-old.py %t/OtherModule.swiftinterface %t/LeafModule.swiftinterface |
35 |
| -// RUN: %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
| 34 | +// RUN: %{python} %S/Inputs/check-is-old.py %t/OtherModule.swiftinterface %t/LeafModule.swiftinterface |
| 35 | +// RUN: %{python} %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
36 | 36 | // RUN: echo "@inlinable func foo() { var x = 10 }" >>%t/LeafModule.swiftinterface
|
37 |
| -// RUN: %S/Inputs/make-old.py %t/LeafModule.swiftinterface |
38 |
| -// RUN: %S/Inputs/check-is-old.py %t/LeafModule.swiftinterface |
| 37 | +// RUN: %{python} %S/Inputs/make-old.py %t/LeafModule.swiftinterface |
| 38 | +// RUN: %{python} %S/Inputs/check-is-old.py %t/LeafModule.swiftinterface |
39 | 39 | // RUN: rm %t/TestModule.swiftmodule
|
40 | 40 | // RUN: %target-swift-frontend -I %t -module-cache-path %t/modulecache -enable-parseable-module-interface -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s >%t/warn.txt 2>&1
|
41 |
| -// RUN: %S/Inputs/check-is-new.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
| 41 | +// RUN: %{python} %S/Inputs/check-is-new.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
42 | 42 | // "check warn.txt exists and is empty"
|
43 | 43 | // RUN: test -e %t/warn.txt -a ! -s %t/warn.txt
|
44 | 44 | //
|
45 | 45 | //
|
46 | 46 | // Next test: make LeafModule.swiftinterface import NotAModule (which should emit an error); check we do not get a rebuild, do get an error.
|
47 | 47 | //
|
48 |
| -// RUN: %S/Inputs/make-old.py %t/modulecache/*.swiftmodule %t/*.swiftinterface |
49 |
| -// RUN: %S/Inputs/check-is-old.py %t/OtherModule.swiftinterface %t/LeafModule.swiftinterface |
50 |
| -// RUN: %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
| 48 | +// RUN: %{python} %S/Inputs/make-old.py %t/modulecache/*.swiftmodule %t/*.swiftinterface |
| 49 | +// RUN: %{python} %S/Inputs/check-is-old.py %t/OtherModule.swiftinterface %t/LeafModule.swiftinterface |
| 50 | +// RUN: %{python} %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
51 | 51 | // RUN: echo "import NotAModule" >>%t/LeafModule.swiftinterface
|
52 |
| -// RUN: %S/Inputs/make-old.py %t/LeafModule.swiftinterface |
53 |
| -// RUN: %S/Inputs/check-is-old.py %t/LeafModule.swiftinterface |
| 52 | +// RUN: %{python} %S/Inputs/make-old.py %t/LeafModule.swiftinterface |
| 53 | +// RUN: %{python} %S/Inputs/check-is-old.py %t/LeafModule.swiftinterface |
54 | 54 | // RUN: rm %t/TestModule.swiftmodule
|
55 | 55 | // RUN: not %target-swift-frontend -I %t -module-cache-path %t/modulecache -enable-parseable-module-interface -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s >%t/err.txt 2>&1
|
56 |
| -// RUN: %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
| 56 | +// RUN: %{python} %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
57 | 57 | // RUN: %FileCheck %s -check-prefix=CHECK-ERROR <%t/err.txt
|
58 | 58 | // CHECK-ERROR: LeafModule.swiftinterface:6:8: error: no such module 'NotAModule'
|
59 | 59 | // CHECK-ERROR: OtherModule.swiftinterface:4:8: error: no such module 'LeafModule'
|
60 | 60 | //
|
61 | 61 | //
|
62 | 62 | // Next test: same as above, but with a .dia file
|
63 | 63 | //
|
64 |
| -// RUN: %S/Inputs/check-is-old.py %t/OtherModule.swiftinterface %t/LeafModule.swiftinterface |
65 |
| -// RUN: %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
| 64 | +// RUN: %{python} %S/Inputs/check-is-old.py %t/OtherModule.swiftinterface %t/LeafModule.swiftinterface |
| 65 | +// RUN: %{python} %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
66 | 66 | // RUN: not %target-swift-frontend -I %t -module-cache-path %t/modulecache -serialize-diagnostics -serialize-diagnostics-path %t/err.dia -enable-parseable-module-interface -emit-module -o %t/TestModule.swiftmodule -module-name TestModule %s
|
67 |
| -// RUN: %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
| 67 | +// RUN: %{python} %S/Inputs/check-is-old.py %t/modulecache/OtherModule-*.swiftmodule %t/modulecache/LeafModule-*.swiftmodule |
68 | 68 | // RUN: c-index-test -read-diagnostics %t/err.dia 2>&1 | %FileCheck %s -check-prefix=CHECK-ERROR
|
69 | 69 |
|
70 | 70 | import OtherModule
|
|
0 commit comments