Skip to content

Commit c96cdf3

Browse files
hartbitaciidgh
authored andcommitted
Update tests to support more types of SwiftPM build messates
1 parent 4f9b9e8 commit c96cdf3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

swift-package-init-exec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN: %{FileCheck} --check-prefix CHECK-BUILD-LOG --input-file %t.build-log %s
1616
```
1717

1818
```
19-
CHECK-BUILD-LOG: Compiling Swift Module 'Project'
19+
CHECK-BUILD-LOG: Compiling {{.*}}Project{{.*}}
2020
CHECK-BUILD-LOG: Linking {{.*}}Project
2121
```
2222

swift-package-init-lib.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN: %{FileCheck} --check-prefix CHECK-BUILD-LOG --input-file %t.build-log %s
1818
```
1919

2020
```
21-
CHECK-BUILD-LOG: Compiling Swift Module 'Project'
21+
CHECK-BUILD-LOG: Compiling {{.*}}Project{{.*}}
2222
```
2323

2424
## Check the test log.
@@ -28,7 +28,7 @@ RUN: %{FileCheck} --check-prefix CHECK-TEST-LOG --input-file %t.test-log %s
2828
```
2929

3030
```
31-
CHECK-TEST-LOG: Compiling Swift Module 'ProjectTests'
31+
CHECK-TEST-LOG: Compiling {{.*}}ProjectTests{{.*}}
3232
CHECK-TEST-LOG: Test Suite 'All tests' passed
3333
CHECK-TEST-LOG-NEXT: Executed 1 test
3434
```

swift-run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN: %{FileCheck} --check-prefix CHECK-BUILD-LOG --input-file %t.run-log %s
1717
```
1818

1919
```
20-
CHECK-BUILD-LOG: Compiling Swift Module 'secho'
20+
CHECK-BUILD-LOG: Compiling {{.*}}secho{{.*}}
2121
CHECK-BUILD-LOG: Linking {{.*}}secho
2222
CHECK-BUILD-LOG: 1 two
2323
```

test-codecov-package/test-codecov-package.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: rm -rf %t.dir
55
// RUN: mkdir -p %t.dir
66
// RUN: cp -r %S/foo %t.dir/
7-
// RUN: %{swift-test} --package-path %t.dir/foo --enable-code-coverage -v 2>&1 | tee %t.build-log
7+
// RUN: %{swift} test --package-path %t.dir/foo --enable-code-coverage -v 2>&1 | tee %t.build-log
88
//
99
// Check the build log.
1010
//

0 commit comments

Comments
 (0)