Skip to content

Commit dd37bf6

Browse files
committed
Add --enable-test-discovery option for test command
Fix typo
1 parent 3d45c04 commit dd37bf6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build-script.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ def get_swiftpm_invocation(spm_exec, build_dir, parser_header_dir,
168168
swiftpm_call = ['swift', 'build']
169169
elif spm_exec == 'swift test':
170170
swiftpm_call = ['swift', 'test']
171+
172+
# To discover test files for Linux
173+
swiftpm_call.extend(['--enable-test-discovery'])
171174
else:
172175
swiftpm_call = [spm_exec]
173176

@@ -469,12 +472,12 @@ def main():
469472
testing_group.add_argument('--swift-build-exec', default='swift build',
470473
help='''
471474
Path to the swift-build executable that is used to build SwiftPM projects
472-
If not specified the the 'swift build' command will be used.
475+
If not specified the 'swift build' command will be used.
473476
''')
474477
testing_group.add_argument('--swift-test-exec', default='swift test',
475478
help='''
476479
Path to the swift-test executable that is used to test SwiftPM projects
477-
If not specified the the 'swift test' command will be used.
480+
If not specified the 'swift test' command will be used.
478481
''')
479482
testing_group.add_argument('--swiftc-exec', default='swiftc', help='''
480483
Path to the swift executable. If not specified the swiftc exeuctable

0 commit comments

Comments
 (0)