Skip to content

Commit

Permalink
[build-script] Add support for testing swiftpm.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishal Awadah committed Dec 2, 2015
1 parent b8c8844 commit 22926f3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion utils/build-script-impl
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,11 @@ for deployment_target in "${STDLIB_DEPLOYMENT_TARGETS[@]}"; do
if [[ "$SKIP_TEST_SWIFTPM" ]]; then
continue
fi
# FIXME: We don't test swiftpm, yet...
echo "--- Running tests for ${product} ---"
set -x
"${swiftpm_bootstrap_command[@]}" --build-tests test
{ set +x; } 2>/dev/null
# As swiftpm tests itself, we break early here.
continue
;;
xctest)
Expand Down Expand Up @@ -2177,8 +2181,11 @@ if [[ "${INSTALLABLE_PACKAGE}" ]] ; then
pushd "${PKG_TESTS_SANDBOX}"
tar xzf "${INSTALLABLE_PACKAGE}"
popd

set -x
(cd "${PKG_TESTS_SOURCE_DIR}" &&
python "${LIT_EXECUTABLE_PATH}" . -sv --param package-path="${PKG_TESTS_SANDBOX}" --param filecheck="${FILECHECK_EXECUTABLE_PATH}")
{ set +x; } 2>/dev/null
fi
fi

Expand Down

0 comments on commit 22926f3

Please sign in to comment.