2018-11-24 02:37:45 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
release_mode=""
|
2018-11-26 22:26:27 +03:00
|
|
|
|
2018-11-24 02:37:45 +03:00
|
|
|
filter=""
|
2018-11-24 20:51:45 +03:00
|
|
|
test_names=""
|
2018-11-26 22:26:27 +03:00
|
|
|
keep_output=""
|
2018-11-26 23:01:42 +03:00
|
|
|
clickable_links="--clickable_links"
|
2018-11-24 02:37:45 +03:00
|
|
|
|
|
|
|
for arg in "$@"; do
|
|
|
|
if [ "$arg" == "--release" ]; then
|
|
|
|
release_mode="--release";
|
|
|
|
elif [ "$arg" == "--fast" ]; then
|
|
|
|
filter="--filter=Fast";
|
|
|
|
elif [ "$arg" == "--slow" ]; then
|
|
|
|
filter="--filter=Slow";
|
2018-11-26 22:26:27 +03:00
|
|
|
elif [ "$arg" == "--keep_output" ]; then
|
|
|
|
filter="--keep_output";
|
2018-11-26 23:01:42 +03:00
|
|
|
elif [ "$arg" == "--noclickable_links" ]; then
|
|
|
|
clickable_links="";
|
2018-11-27 01:09:08 +03:00
|
|
|
elif [ "${arg:0:2}" == "--" ]; then
|
|
|
|
echo "Unknown argument $arg";
|
|
|
|
exit 1;
|
2018-11-24 20:51:45 +03:00
|
|
|
else
|
|
|
|
test_names="--test_names=$arg";
|
2018-11-24 02:37:45 +03:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
cd tests;
|
2018-11-26 23:01:42 +03:00
|
|
|
RUST_BACKTRACE=1 cargo run $release_mode -- $filter $keep_output $clickable_links $test_names
|