File tree Expand file tree Collapse file tree 20 files changed +42
-47
lines changed Expand file tree Collapse file tree 20 files changed +42
-47
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /Asynchronous
2
- // RUN: %{built_tests_dir} /Asynchronous > %t || true
1
+ // RUN: %{swiftc} %s -o %T /Asynchronous
2
+ // RUN: %T /Asynchronous > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /Handler
2
- // RUN: %{built_tests_dir} /Handler > %t || true
1
+ // RUN: %{swiftc} %s -o %T /Handler
2
+ // RUN: %T /Handler > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /Misuse
2
- // RUN: %{built_tests_dir} /Misuse > %t || true
1
+ // RUN: %{swiftc} %s -o %T /Misuse
2
+ // RUN: %T /Misuse > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /Asynchronous-Notifications
2
- // RUN: %{built_tests_dir} /Asynchronous-Notifications > %t || true
1
+ // RUN: %{swiftc} %s -o %T /Asynchronous-Notifications
2
+ // RUN: %T /Asynchronous-Notifications > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /Asynchronous-Notifications-Handler
2
- // RUN: %{built_tests_dir} /Asynchronous-Notifications-Handler > %t || true
1
+ // RUN: %{swiftc} %s -o %T /Asynchronous-Notifications-Handler
2
+ // RUN: %T /Asynchronous-Notifications-Handler > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /Asynchronous-Predicates
2
- // RUN: %{built_tests_dir} /Asynchronous-Predicates > %t || true
1
+ // RUN: %{swiftc} %s -o %T /Asynchronous-Predicates
2
+ // RUN: %T /Asynchronous-Predicates > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /Asynchronous-Predicates-Handler
2
- // RUN: %{built_tests_dir} /Asynchronous-Predicates-Handler > %t || true
1
+ // RUN: %{swiftc} %s -o %T /Asynchronous-Predicates-Handler
2
+ // RUN: %T /Asynchronous-Predicates-Handler > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /ErrorHandling
2
- // RUN: %{built_tests_dir} /ErrorHandling > %t || true
1
+ // RUN: %{swiftc} %s -o %T /ErrorHandling
2
+ // RUN: %T /ErrorHandling > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /FailingTestSuite
2
- // RUN: %{built_tests_dir} /FailingTestSuite > %t || true
1
+ // RUN: %{swiftc} %s -o %T /FailingTestSuite
2
+ // RUN: %T /FailingTestSuite > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /FailureMessagesTestCase
2
- // RUN: %{built_tests_dir} /FailureMessagesTestCase > %t || true
1
+ // RUN: %{swiftc} %s -o %T /FailureMessagesTestCase
2
+ // RUN: %T /FailureMessagesTestCase > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /ListTests
2
- // RUN: %{built_tests_dir} /ListTests --list-tests > %t_list || true
1
+ // RUN: %{swiftc} %s -o %T /ListTests
2
+ // RUN: %T /ListTests --list-tests > %t_list || true
3
3
// RUN: %{xctest_checker} %t_list %s
4
- // RUN: %{built_tests_dir} /ListTests --dump-tests-json > %t_json || true
5
- // RUN: %{built_tests_dir} /ListTests --verify %t_json > %t_verify
4
+ // RUN: %T /ListTests --dump-tests-json > %t_json || true
5
+ // RUN: %T /ListTests --verify %t_json > %t_verify
6
6
// RUN: %{xctest_checker} %t_verify verify_json.expected
7
7
8
8
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /NegativeAccuracyTestCase
2
- // RUN: %{built_tests_dir} /NegativeAccuracyTestCase > %t || true
1
+ // RUN: %{swiftc} %s -o %T /NegativeAccuracyTestCase
2
+ // RUN: %T /NegativeAccuracyTestCase > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /All
2
- // RUN: %{built_tests_dir} /All > %t || true
1
+ // RUN: %{swiftc} %s -o %T /All
2
+ // RUN: %T /All > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /Selected
2
- // RUN: %{built_tests_dir} /Selected Selected.ExecutedTestCase/test_executed > %t || true
1
+ // RUN: %{swiftc} %s -o %T /Selected
2
+ // RUN: %T /Selected Selected.ExecutedTestCase/test_executed > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /PerformanceMisuse
2
- // RUN: %{built_tests_dir} /PerformanceMisuse > %t || true
1
+ // RUN: %{swiftc} %s -o %T /PerformanceMisuse
2
+ // RUN: %T /PerformanceMisuse > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /Performance
2
- // RUN: %{built_tests_dir} /Performance > %t || true
1
+ // RUN: %{swiftc} %s -o %T /Performance
2
+ // RUN: %T /Performance > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /SelectedTest
2
- // RUN: %{built_tests_dir} /SelectedTest SelectedTest.ExecutedTestCase/test_foo > %T/one_test_case || true
3
- // RUN: %{built_tests_dir} /SelectedTest SelectedTest.ExecutedTestCase > %T/one_test_case_class || true
4
- // RUN: %{built_tests_dir} /SelectedTest > %T/all || true
1
+ // RUN: %{swiftc} %s -o %T /SelectedTest
2
+ // RUN: %T /SelectedTest SelectedTest.ExecutedTestCase/test_foo > %T/one_test_case || true
3
+ // RUN: %T /SelectedTest SelectedTest.ExecutedTestCase > %T/one_test_case_class || true
4
+ // RUN: %T /SelectedTest > %T/all || true
5
5
// RUN: %{xctest_checker} -p "// CHECK-METHOD:" %T/one_test_case %s
6
6
// RUN: %{xctest_checker} -p "// CHECK-CLASS:" %T/one_test_case_class %s
7
7
// RUN: %{xctest_checker} -p "// CHECK-ALL:" %T/all %s
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /SingleFailingTestCase
2
- // RUN: %{built_tests_dir} /SingleFailingTestCase > %t || true
1
+ // RUN: %{swiftc} %s -o %T /SingleFailingTestCase
2
+ // RUN: %T /SingleFailingTestCase > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 1
- // RUN: %{swiftc} %s -o %{built_tests_dir} /TestCaseLifecycle
2
- // RUN: %{built_tests_dir} /TestCaseLifecycle > %t || true
1
+ // RUN: %{swiftc} %s -o %T /TestCaseLifecycle
2
+ // RUN: %T /TestCaseLifecycle > %t || true
3
3
// RUN: %{xctest_checker} %t %s
4
4
5
5
#if os(Linux) || os(FreeBSD)
Original file line number Diff line number Diff line change 90
90
# Having prepared the swiftc command, we set the substitution.
91
91
config .substitutions .append (('%{swiftc}' , ' ' .join (swift_exec )))
92
92
93
- # Add the %built_tests_dir substitution, which is a temporary
94
- # directory used to store built files.
95
- built_tests_dir = tempfile .mkdtemp ()
96
- config .substitutions .append (('%{built_tests_dir}' , built_tests_dir ))
97
-
98
93
# Add the %xctest_checker substitution, which is a Python script
99
94
# can be used to compare the actual XCTest output to the expected
100
95
# output.
You can’t perform that action at this time.
0 commit comments