Skip to content

Commit 33af867

Browse files
committed
[build-script] Fix swift-driver options and test thereof
1 parent bf9f0ec commit 33af867

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

utils/build_swift/build_swift/driver_arguments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ def create_argument_parser():
10151015

10161016
option('--skip-test-swiftpm', toggle_false('test_swiftpm'),
10171017
help='skip testing swiftpm')
1018-
option('--skip-test-swiftdriver', toggle_false('test_swift_driver'),
1018+
option('--skip-test-swift-driver', toggle_false('test_swift_driver'),
10191019
help='skip testing Swift driver')
10201020
option('--skip-test-swiftsyntax', toggle_false('test_swiftsyntax'),
10211021
help='skip testing SwiftSyntax')

utils/build_swift/tests/expected_options.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
'build_swift_static_stdlib': False,
9090
'build_swift_stdlib_unittest_extra': False,
9191
'build_swiftpm': False,
92+
'build_swift_driver': False,
9293
'build_swiftsyntax': False,
9394
'build_tensorflow_swift_apis': False,
9495
'build_libparser_only': False,
@@ -99,6 +100,7 @@
99100
'test_sourcekitlsp_sanitize_all': False,
100101
'build_sourcekitlsp': False,
101102
'install_swiftpm': False,
103+
'install_swift_driver': False,
102104
'install_swiftsyntax': False,
103105
'swiftsyntax_verify_generated_files': False,
104106
'install_playgroundsupport': False,
@@ -230,6 +232,7 @@
230232
'test_watchos_simulator': False,
231233
'test_playgroundsupport': True,
232234
'test_swiftpm': False,
235+
'test_swift_driver': False,
233236
'test_swiftsyntax': False,
234237
'test_indexstoredb': False,
235238
'test_sourcekitlsp': False,
@@ -473,6 +476,7 @@ class BuildScriptImplOption(_BaseOption):
473476
dest='install_tensorflow_swift_apis'),
474477
SetTrueOption('--skip-build'),
475478
SetTrueOption('--swiftpm', dest='build_swiftpm'),
479+
SetTrueOption('--swift-driver', dest='build_swift_driver'),
476480
SetTrueOption('--swiftsyntax', dest='build_swiftsyntax'),
477481
SetTrueOption('--build-libparser-only', dest='build_libparser_only'),
478482
SetTrueOption('--skstresstester', dest='build_skstresstester'),
@@ -523,6 +527,7 @@ class BuildScriptImplOption(_BaseOption):
523527
EnableOption('--swiftsyntax-verify-generated-files',
524528
dest='swiftsyntax_verify_generated_files'),
525529
EnableOption('--install-swiftpm', dest='install_swiftpm'),
530+
EnableOption('--install-swift-driver', dest='install_swift_driver'),
526531
EnableOption('--install-sourcekit-lsp', dest='install_sourcekitlsp'),
527532
EnableOption('--install-skstresstester', dest='install_skstresstester'),
528533
EnableOption('--install-swiftevolve', dest='install_swiftevolve'),
@@ -588,6 +593,7 @@ class BuildScriptImplOption(_BaseOption):
588593
DisableOption('--skip-test-playgroundsupport',
589594
dest='test_playgroundsupport'),
590595
DisableOption('--skip-test-swiftpm', dest='test_swiftpm'),
596+
DisableOption('--skip-test-swift-driver', dest='test_swift_driver'),
591597
DisableOption('--skip-test-swiftsyntax', dest='test_swiftsyntax'),
592598
DisableOption('--skip-test-indexstore-db', dest='test_indexstoredb'),
593599
DisableOption('--skip-test-sourcekit-lsp', dest='test_sourcekitlsp'),

0 commit comments

Comments
 (0)