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/ /build/
/Debug/ /Debug/
.settings .settings
/.venv /.venv*
/Debug-PA/ /Debug-PA/
/_build/ /_build/
/install/ /install/
@ -12,3 +12,5 @@
*.disass *.disass
*.trc *.trc
/*.core_desc /*.core_desc
/fasterDecoding/
*.ll

View File

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