From f1ffce433f0a3744aed26a09fe54bee174b3ae39 Mon Sep 17 00:00:00 2001 From: "Bassam (Sam) Khouri" Date: Thu, 16 Jan 2025 16:17:19 -0500 Subject: [PATCH 1/3] Tests: Canary Swift Testing test (#8222) Add a canary swift testing tests to ensure we do not regress. This test will be removed sometime after #8092, #8093 or #8100 are merged (cherry picked from commit 257e6713dbd283bd952f49a2695c3746cb677444) --- Tests/BasicsTests/SampleTests.swift | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Tests/BasicsTests/SampleTests.swift diff --git a/Tests/BasicsTests/SampleTests.swift b/Tests/BasicsTests/SampleTests.swift new file mode 100644 index 00000000000..19dd021c352 --- /dev/null +++ b/Tests/BasicsTests/SampleTests.swift @@ -0,0 +1,9 @@ +import Testing + +struct Foo { + + @Test + func myTest() { + #expect(Bool(true)) + } +} \ No newline at end of file From 90fc47e164233a71f6167b9f3c8f516cd0ce1d19 Mon Sep 17 00:00:00 2001 From: Sam Khouri Date: Wed, 5 Feb 2025 22:42:54 -0500 Subject: [PATCH 2/3] update bootstrap to not perform cross compilation when building tests --- Utilities/bootstrap | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Utilities/bootstrap b/Utilities/bootstrap index bc73dfca866..a0ca9fb69c1 100755 --- a/Utilities/bootstrap +++ b/Utilities/bootstrap @@ -400,6 +400,11 @@ def test(args): build(args) logging.info("Testing") + + # Ensure cross compilation is disabled so we only exeucte the tests against the + # host architecture + args.cross_compile_hosts = False + parse_test_args(args) cmd = [ os.path.join(args.bin_dir, "swift-test") From 085f2ebd6f4d624460e9947f98cec0d4eb0e43a4 Mon Sep 17 00:00:00 2001 From: Sam Khouri Date: Thu, 6 Feb 2025 13:02:32 -0500 Subject: [PATCH 3/3] Revert "update bootstrap to not perform cross compilation when building tests" This reverts commit 5ba8ce133e189f0f34c50a7eb2a3aa8873ae7023. --- Utilities/bootstrap | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Utilities/bootstrap b/Utilities/bootstrap index a0ca9fb69c1..bc73dfca866 100755 --- a/Utilities/bootstrap +++ b/Utilities/bootstrap @@ -400,11 +400,6 @@ def test(args): build(args) logging.info("Testing") - - # Ensure cross compilation is disabled so we only exeucte the tests against the - # host architecture - args.cross_compile_hosts = False - parse_test_args(args) cmd = [ os.path.join(args.bin_dir, "swift-test")