Skip to content

Commit 22926f3

Browse files
author
Mishal Awadah
committed
[build-script] Add support for testing swiftpm.
1 parent b8c8844 commit 22926f3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

utils/build-script-impl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,11 @@ for deployment_target in "${STDLIB_DEPLOYMENT_TARGETS[@]}"; do
18901890
if [[ "$SKIP_TEST_SWIFTPM" ]]; then
18911891
continue
18921892
fi
1893-
# FIXME: We don't test swiftpm, yet...
1893+
echo "--- Running tests for ${product} ---"
1894+
set -x
1895+
"${swiftpm_bootstrap_command[@]}" --build-tests test
1896+
{ set +x; } 2>/dev/null
1897+
# As swiftpm tests itself, we break early here.
18941898
continue
18951899
;;
18961900
xctest)
@@ -2177,8 +2181,11 @@ if [[ "${INSTALLABLE_PACKAGE}" ]] ; then
21772181
pushd "${PKG_TESTS_SANDBOX}"
21782182
tar xzf "${INSTALLABLE_PACKAGE}"
21792183
popd
2184+
2185+
set -x
21802186
(cd "${PKG_TESTS_SOURCE_DIR}" &&
21812187
python "${LIT_EXECUTABLE_PATH}" . -sv --param package-path="${PKG_TESTS_SANDBOX}" --param filecheck="${FILECHECK_EXECUTABLE_PATH}")
2188+
{ set +x; } 2>/dev/null
21822189
fi
21832190
fi
21842191

0 commit comments

Comments
 (0)