Rename '{run, run-all}.sh' into '{run, run-all}'.

This commit is contained in:
KtorZ
2022-12-29 12:04:37 +01:00
parent ad5a393c4d
commit 602a6a03a8
2 changed files with 0 additions and 0 deletions

24
examples/acceptance_tests/run Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
if [ -z $1 ]; then
echo -e "\033[31mMissing argument: \033[1mACCEPTANCE_TEST\033[0m"
echo ""
echo -e "\033[1mUsage: \033[0m"
echo " run.sh {ACCEPTANCE_TEST}"
echo ""
echo -e "\033[1mExample: \033[0m"
echo " run.sh 034"
exit 1
fi
WORKDIR="$(dirname -- "${BASH_SOURCE[0]}")"
TARGET="$WORKDIR/$(basename $1)"
TMP=$(mktemp)
RESULT=$(cargo run --quiet -- check $TARGET 2>$TMP)
if [ "$?" -eq "0" ]; then
echo "✅ $(basename $TARGET)"
else
echo "❌ $(basename $TARGET)"
cat $TMP
fi