Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ docc_path = lit_config.params.get(
os.path.join(package_path, "usr", "bin", "docc"))
lit_config.note("testing using 'docc': {}".format(docc_path))

wasmkit_path = lit_config.params.get(
"wasmkit",
os.path.join(package_path, "usr", "bin", "wasmkit"))
lit_config.note("testing using 'wasmkit': {}".format(wasmkit_path))

# Verify they exist.
if not os.path.exists(swift_path):
lit_config.fatal("swift does not exist!")
Expand All @@ -231,6 +236,8 @@ else:

if not os.path.exists(docc_path):
lit_config.fatal("docc does not exist!")
if not os.path.exists(wasmkit_path):
lit_config.fatal("wasmkit does not exist!")

# Define our supported substitutions.
config.substitutions.append( ('%{package_path}', package_path) )
Expand All @@ -246,6 +253,7 @@ config.substitutions.append( ('%{readelf}', readelf_path) )
config.substitutions.append( ('%{readobj}', readobj_path) )
config.substitutions.append( ('%{sourcekit-lsp}', sourcekit_lsp_path) )
config.substitutions.append( ('%{docc}', docc_path) )
config.substitutions.append( ('%{wasmkit}', wasmkit_path) )

# Add substitutions for swiftpm executables.
swiftpm_build = lit_config.params.get("swiftpm-build")
Expand Down
7 changes: 7 additions & 0 deletions test-snapshot-binaries/test-universal-darwin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Tests that executables are universal binaries on MacOS
# REQUIRES: platform=Darwin
#
# RUN: file %{wasmkit} | %{FileCheck} --check-prefix CHECK-WASMKIT %s
# CHECK-WASMKIT: {{.*}} Mach-O universal binary {{.*}}
#