blob: 027c54e126af6c33e807992c663bcf08a5e28a1b [file] [log] [blame]
# Builds and runs tests for a particular target passed as an argument to this
# script.
set -ex
case "$TARGET" in
# Download the iOS test harness
curl -vv -L$TARGET.a > libiosharness.a;
# Build the test
cargo rustc --test test --target $TARGET -- \
-L . \
-C link-args="-mios-simulator-version-min=7.0 -e _ios_main -liosharness";
# Find the file to run
TEST_FILE="$(find $TARGET/debug -maxdepth 1 -type f -name test-* | head -1)";
rustc -O ./ci/ios/;
./deploy_and_run_on_ios_simulator $TEST_FILE;
echo "unsupported target $TARGET";
exit 1;