16 lines
664 B
Bash
Executable File
16 lines
664 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Usage: scripts/test.sh [swift test args...], e.g. scripts/test.sh --filter MarkdownParserTests
|
|
set -euo pipefail
|
|
source "$(dirname "$0")/env.sh"
|
|
|
|
# Swift Testing lives in the platform developer dir, which the Xcode toolchain
|
|
# does not search on its own when invoked outside xcodebuild.
|
|
swift test \
|
|
-Xswiftc -F -Xswiftc "$PLATFORM_DEV/Library/Frameworks" \
|
|
-Xswiftc -I -Xswiftc "$PLATFORM_DEV/usr/lib" \
|
|
-Xlinker -F -Xlinker "$PLATFORM_DEV/Library/Frameworks" \
|
|
-Xlinker -rpath -Xlinker "$PLATFORM_DEV/Library/Frameworks" \
|
|
-Xlinker -L -Xlinker "$PLATFORM_DEV/usr/lib" \
|
|
-Xlinker -rpath -Xlinker "$PLATFORM_DEV/usr/lib" \
|
|
"$@"
|