diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-05-15 18:40:53 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-05-15 18:40:53 +0200 |
commit | ce9b01a0ec1f8ad127bcddb64ca2986e9b5c03fd (patch) | |
tree | b488d78c12ef6a1a19f6bb1430d4f07bfe2683b4 | |
parent | bd554432f17c0d3b6062f86cf0449cd56b42538e (diff) | |
download | compilertests-ce9b01a0ec1f8ad127bcddb64ca2986e9b5c03fd.tar.gz compilertests-ce9b01a0ec1f8ad127bcddb64ca2986e9b5c03fd.tar.bz2 |
added a list option to run_tests.sh
-rwxr-xr-x | ecomp-c/tests/run_tests.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ecomp-c/tests/run_tests.sh b/ecomp-c/tests/run_tests.sh index e40b4d9..fba9c4f 100755 --- a/ecomp-c/tests/run_tests.sh +++ b/ecomp-c/tests/run_tests.sh @@ -75,12 +75,21 @@ run_test( ) fi } +list_tests( ) +{ + echo $TESTS | tr ' ' '\n' +} + cd "$(dirname "$0")" rm -f *.asm *.comp_err *.bin *.ebin *.run if test "x$1" != "x"; then - run_test "$1" + if test "$1" = "list"; then + list_tests + else + run_test "$1" + fi else for test in $TESTS; do run_test $test |