Skip to content

Commit

Permalink
Add timeouts to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
verifit committed Oct 23, 2023
1 parent c18480f commit da08082
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ usage() { {
[ $# -gt 0 ] && echo "error: $1"
echo "usage: ./run_all.sh [opt1, ..., optn]"
echo "options:"
echo " -t|--test-run will conduct a test run (5s timeout, only 1 instance per benchmark)"
echo " --test-run will conduct a test run (5s timeout, only 1 instance per benchmark)"
echo " -t|--timeout will set a timeout to <INT> seconds (default 60s)"
echo " -m|--methods will measure only selected tools"
echo " -e|--exclude will not measure selected tools"
echo " -j|--jobs will run only number of jobs"
Expand All @@ -53,7 +54,7 @@ while [ $# -gt 0 ]; do
-h|--help)
usage
exit 0;;
-t|--test-run)
--test-run)
TIMEOUT=5
TEST_RUN="--test-run"
shift 1;;
Expand All @@ -63,6 +64,9 @@ while [ $# -gt 0 ]; do
-m|--methods)
METHODS="-m $2"
shift 2;;
-t|--timeout)
TIMEOUT=$2
shift 2;;
-e|--exclude)
EXCLUDE="-e $2"
shift 2;;
Expand Down
2 changes: 1 addition & 1 deletion run_smoke_test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
./run_all.sh --test-run --jobs 1 --email-filter --timeout 10
./run_all.sh --test-run --jobs 1 --b-smt --timeout 60

0 comments on commit da08082

Please sign in to comment.