Skip to content

Commit 55f7d76

Browse files
committed
Merge pull request #564 from dcci/testsuite
Enable tests on FreeBSD. A fair amount of them passes already.
2 parents 8643d14 + f41b791 commit 55f7d76

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/lit.cfg

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,13 +607,16 @@ if run_vendor == 'apple':
607607
"%s ld -L%s" %
608608
(xcrun_prefix, os.path.join(test_resource_dir, config.target_sdk_name)))
609609

610-
elif run_os == 'linux-gnu' or run_os == 'linux-gnueabihf':
611-
# Linux
612-
lit_config.note("Testing Linux " + config.variant_triple)
610+
elif run_os == 'linux-gnu' or run_os == 'linux-gnueabihf' or run_os == 'freebsd':
611+
# Linux/FreeBSD
612+
if run_os == 'freebsd':
613+
lit_config.note("Testing FreeBSD " + config.variant_triple)
614+
else:
615+
lit_config.note("Testing Linux " + config.variant_triple)
613616
config.target_object_format = "elf"
614617
config.target_runtime = "native"
615618
config.target_swift_autolink_extract = inferSwiftBinary("swift-autolink-extract")
616-
config.target_sdk_name = "linux"
619+
config.target_sdk_name = "freebsd" if run_os == "freebsd" else "linux"
617620
config.target_build_swift = (
618621
'%s -target %s %s %s %s %s'
619622
% (config.swiftc, config.variant_triple, resource_dir_opt, mcp_opt,

0 commit comments

Comments
 (0)