From 31fdf14b233150eedceeab6741b177ac16b4d121 Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Fri, 22 Sep 2023 12:43:21 +0200 Subject: [PATCH] tweaks for test script --- .gitignore | 4 +++- run_riscv_tests.sh | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 50f8f60..edb4627 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ /build/ /Debug/ .settings -/.venv +/.venv* /Debug-PA/ /_build/ /install/ @@ -12,3 +12,5 @@ *.disass *.trc /*.core_desc +/fasterDecoding/ +*.ll \ No newline at end of file diff --git a/run_riscv_tests.sh b/run_riscv_tests.sh index e1b2ee4..81f7380 100755 --- a/run_riscv_tests.sh +++ b/run_riscv_tests.sh @@ -14,18 +14,20 @@ function print_help { echo " -s 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