Skip to content

Commit 0f50aca

Browse files
[test] Move embedded wasm tests to a separate directory
The `classes-wasm.swift` test was the only executable test for WebAssembly that requires wasm runtime at test-time. Other tests in the `embedded` directory run only on the macOS / Linux host toolchain builds and some of them are incompatible with SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB=OFF. Given that the `classes-wasm.swift` test is the only test we want to run during WasmStdlib build, move it to a separate directory `embedded/wasm`.
1 parent d9b754d commit 0f50aca

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
File renamed without changes.

utils/swift_build_support/swift_build_support/products/wasmstdlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _build(self, host_target, target_triple):
114114
# Test configuration
115115
self.cmake_options.define('SWIFT_INCLUDE_TESTS:BOOL', 'TRUE')
116116
self.cmake_options.define('SWIFT_ENABLE_SOURCEKIT_TESTS:BOOL', 'FALSE')
117-
lit_test_paths = ['IRGen', 'stdlib', 'Concurrency/Runtime', 'embedded']
117+
lit_test_paths = ['IRGen', 'stdlib', 'Concurrency/Runtime', 'embedded/wasm']
118118
lit_test_paths = [os.path.join(
119119
self.build_dir, 'test-wasi-wasm32', path) for path in lit_test_paths]
120120
self.cmake_options.define('SWIFT_LIT_TEST_PATHS:STRING',

0 commit comments

Comments
 (0)