Skip to content

Commit

Permalink
[TEST] Modified scripts/test.sh to take ./runtime test tc_150_1 as ar…
Browse files Browse the repository at this point in the history
…gument

- Previously, you had to write ./runtime test integration/tc_150_1
  • Loading branch information
benliao1 committed Jul 21, 2023
1 parent 11db2bb commit 9df5149
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9df5149

Please sign in to comment.