From 9df514914b19955054805ca6839edcaab19306e6 Mon Sep 17 00:00:00 2001 From: Ben Liao Date: Fri, 21 Jul 2023 03:54:18 +0000 Subject: [PATCH] [TEST] Modified scripts/test.sh to take ./runtime test tc_150_1 as argument - Previously, you had to write ./runtime test integration/tc_150_1 --- scripts/test.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 71af787a..4045c692 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -10,7 +10,7 @@ function clean_up { function sigint_handler { # if logger/logger.config.orig exists, we need to restore it if [[ -f ../logger/logger.config.orig ]]; then - clean_up + clean_up fi exit 1 } @@ -38,12 +38,19 @@ function run_tests { if [[ $? != 0 ]]; then failing_tests="$failing_tests $test" # add this test to list of failing tests failed=1 - continue + continue fi # run test printf "Running $test...\n" - ./bin/$test + + if [[ -f bin/integration/$test ]]; then + ./bin/integration/$test + elif [[ -f bin/performance/$test ]]; then + ./bin/performance/$test + else + ./bin/$test + fi # if that test failed, set failed to 1 if [[ $? != 0 ]]; then