tweaks for test script

This commit is contained in:
Eyck-Alexander Jentzsch 2023-09-22 12:43:21 +02:00
parent e17e463cf3
commit 31fdf14b23
2 changed files with 7 additions and 3 deletions

4
.gitignore vendored
View File

@ -1,7 +1,7 @@
/build/
/Debug/
.settings
/.venv
/.venv*
/Debug-PA/
/_build/
/install/
@ -12,3 +12,5 @@
*.disass
*.trc
/*.core_desc
/fasterDecoding/
*.ll

View File

@ -14,18 +14,20 @@ function print_help {
echo " -s <args> simulator arguments"
echo " -h print help"
echo " -v increase verbosity"
echo " -t set build type"
}
SIM_ARGS="-v1"
BACKENDS=("interp" "tcc" "llvm")
DEBUG=0
BUILD_TYPE=Debug
while getopts 'b:s:hv' c
while getopts 'b:s:hvt:' c
do
case $c in
b) BACKENDS=($OPTARG);;
s) SIM_ARGS=$OPTARG ;;
h) print_help; exit 0 ;;
v) DEBUG=1 ;;
t) BUILD_TYPE = $OPTARG;;
?)
print_help >&2
exit 1
@ -77,7 +79,7 @@ for backend in "${BACKENDS[@]}"; do
echo $failed_list | tr ' ' '\n'
else
echo
echo "($backend) $tcount tests passed."
echo "($backend) All $tcount tests passed."
if [ $DEBUG -eq 1 ];then
echo "List of executed tests:"
for t in $test_list; do