diff --git a/run-tests.sh b/run-tests.sh new file mode 100755 index 0000000000000000000000000000000000000000..cb1b500b42970eeec7b13c6c6609ddd886b6bdc6 --- /dev/null +++ b/run-tests.sh @@ -0,0 +1,21 @@ +#!/bin/sh +set -e + +if [ "$1" = "macos" ]; then + + echo "\n\033[1;32m▶ Running package tests on macOS...\033[0m" + set -o pipefail && swift test 2>&1 | ./xcbeautify + +elif [ "$1" = "ios" ]; then + + echo "\n\033[1;32m▶ Running package tests on iOS Simulator...\033[0m" + set -o pipefail && xcodebuild -scheme 'xx-client-ios-db-Package' -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=16.0,name=iPhone 14' test | ./xcbeautify + +else + + echo "\n\033[1;31m▶ Invalid option.\033[0m Usage:" + echo " run-tests.sh macos - Run package tests on macOS" + echo " run-tests.sh ios - Run package tests on iOS Simulator" + exit 1 + +fi diff --git a/xcbeautify b/xcbeautify new file mode 100755 index 0000000000000000000000000000000000000000..c68c40e98dc4aff708435c6c159fa713ac74a58b Binary files /dev/null and b/xcbeautify differ