Skip to content

Commit ae0a9c1

Browse files
authored
Merge pull request swiftlang#21048 from compnerd/i-am-empty-inside
2 parents cd0012d + b5eb132 commit ae0a9c1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+150
-75
lines changed

test/Driver/Dependencies/README.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ a --> b File 'b' privately depends on file 'a' (normal dependencies casc
88

99
Because of the way the tests are set up, the dependency information is put into the .swift files; any such test needs to start by "building" everything to copy that information into .swiftdeps files. To avoid timestamp issues, most of these tests start with:
1010

11-
// RUN: rm -rf %t && cp -r %S/Inputs/<TEST_GRAPH>/ %t
11+
// RUN: %empty-directory(%t)
12+
// RUN: cp -r %S/Inputs/<TEST_GRAPH>/* %t
1213
// RUN: touch -t 201401240005 %t/*
1314

1415

@@ -21,6 +22,7 @@ In order to correctly run these tests, the "before" information is put into .swi
2122

2223
Most of these tests start with:
2324

24-
// RUN: rm -rf %t && cp -r %S/Inputs/<TEST_GRAPH>/ %t
25+
// RUN: %empty-directory(%t)
26+
// RUN: cp -r %S/Inputs/<TEST_GRAPH>/* %t
2527
// RUN: touch -t 201401240005 %t/*.swift
2628
// RUN: touch -t 201401240006 %t/*.o

test/Driver/Dependencies/bindings-build-record-options.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: rm -rf %t && cp -r %S/Inputs/bindings-build-record/ %t
1+
// RUN: %empty-directory(%t)
2+
// RUN: cp -r %S/Inputs/bindings-build-record/* %t
23
// RUN: touch -t 201401240005 %t/*
34

45
// RUN: cd %t && %swiftc_driver -c -module-name main -driver-print-bindings ./main.swift ./other.swift ./yet-another.swift -incremental -output-file-map %t/output.json 2>&1 | %FileCheck %s -check-prefix=MUST-EXEC-INITIAL

test/Driver/Dependencies/bindings-build-record.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// RUN: rm -rf %t && cp -r %S/Inputs/bindings-build-record/ %t
2-
// RUN: %S/Inputs/touch.py 443865900 %t/*
1+
// RUN: %empty-directory(%t)
2+
// RUN: cp -r %S/Inputs/bindings-build-record/* %t
3+
// RUN: %{python} %S/Inputs/touch.py 443865900 %t/*
34

45
// RUN: cd %t && %swiftc_driver -driver-print-bindings ./main.swift ./other.swift ./yet-another.swift -incremental -output-file-map %t/output.json 2>&1 | %FileCheck %s -check-prefix=MUST-EXEC
56

test/Driver/Dependencies/build-record-invalid.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: rm -rf %t && cp -r %S/Inputs/bindings-build-record/ %t
1+
// RUN: %empty-directory(%t)
2+
// RUN: cp -r %S/Inputs/bindings-build-record/* %t
23
// RUN: touch -t 201401240005 %t/*
34

45
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path %S/Inputs/update-dependencies.py -output-file-map %t/output.json -incremental ./main.swift ./other.swift -module-name main -j1 -v 2>&1 | %FileCheck %s -check-prefix=CHECK-ALL-BUILT

test/Driver/Dependencies/chained-additional-kinds.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// other ==> main ==> yet-another
22

3-
// RUN: rm -rf %t && cp -r %S/Inputs/chained-additional-kinds/ %t
3+
// RUN: %empty-directory(%t)
4+
// RUN: cp -r %S/Inputs/chained-additional-kinds/* %t
45
// RUN: touch -t 201401240005 %t/*
56

67
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path %S/Inputs/update-dependencies.py -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift ./yet-another.swift -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-FIRST %s

test/Driver/Dependencies/chained-after.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/// other ==> main | yet-another
22
/// other ==> main +==> yet-another
33

4-
// RUN: rm -rf %t && cp -r %S/Inputs/chained-after/ %t
4+
// RUN: %empty-directory(%t)
5+
// RUN: cp -r %S/Inputs/chained-after/* %t
56
// RUN: touch -t 201401240005 %t/*.swift
67

78
// Generate the build record...

test/Driver/Dependencies/chained-private-after-multiple-nominal-members.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/// other --> main ==> yet-another
22
/// other ==>+ main ==> yet-another
33

4-
// RUN: rm -rf %t && cp -r %S/Inputs/chained-private-after-multiple-nominal-members/ %t
4+
// RUN: %empty-directory(%t)
5+
// RUN: cp -r %S/Inputs/chained-private-after-multiple-nominal-members/* %t
56
// RUN: touch -t 201401240005 %t/*.swift
67

78
// Generate the build record...

test/Driver/Dependencies/chained-private-after-multiple.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/// other --> main ==> yet-another
22
/// other ==>+ main ==> yet-another
33

4-
// RUN: rm -rf %t && cp -r %S/Inputs/chained-private-after-multiple/ %t
4+
// RUN: %empty-directory(%t)
5+
// RUN: cp -r %S/Inputs/chained-private-after-multiple/* %t
56
// RUN: touch -t 201401240005 %t/*.swift
67

78
// Generate the build record...

test/Driver/Dependencies/chained-private-after.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/// other --> main ==> yet-another
22
/// other ==>+ main ==> yet-another
33

4-
// RUN: rm -rf %t && cp -r %S/Inputs/chained-private-after/ %t
4+
// RUN: %empty-directory(%t)
5+
// RUN: cp -r %S/Inputs/chained-private-after/* %t
56
// RUN: touch -t 201401240005 %t/*.swift
67

78
// Generate the build record...

test/Driver/Dependencies/chained-private.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/// other --> main ==> yet-another
22

3-
// RUN: rm -rf %t && cp -r %S/Inputs/chained-private/ %t
3+
// RUN: %empty-directory(%t)
4+
// RUN: cp -r %S/Inputs/chained-private/* %t
45
// RUN: touch -t 201401240005 %t/*
56

67
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path %S/Inputs/update-dependencies.py -output-file-map %t/output.json -incremental -driver-always-rebuild-dependents ./main.swift ./other.swift ./yet-another.swift -module-name main -j1 -v 2>&1 | %FileCheck -check-prefix=CHECK-FIRST %s

0 commit comments

Comments
 (0)