Skip to content
Snippets Groups Projects
Commit 021d6ea8 authored by Julien Signoles's avatar Julien Signoles
Browse files

[testrun] add possibility to give extra flags to e-acsl-gcc.sh

parent f223a74e
No related branches found
No related tags found
No related merge requests found
...@@ -38,14 +38,16 @@ ...@@ -38,14 +38,16 @@
# $ROOT/test/e-acsl-runtime/addrOf.c # $ROOT/test/e-acsl-runtime/addrOf.c
# $3 - if specified this script re-runs test sequence generating using # $3 - if specified this script re-runs test sequence generating using
# -e-acsl-gmp-only option # -e-acsl-gmp-only option
# $4 - debug flag # $4 - extra flags for e-acsl-gcc.sh
# $5 - debug flag
set -e set -e
TEST="$1" # Based name of the test file with extension stripped TEST="$1" # Based name of the test file with extension stripped
PREFIX="$2" # Prefix (test suite) directory, e.g., bts, e-acsl-runtime PREFIX="$2" # Prefix (test suite) directory, e.g., bts, e-acsl-runtime
GMP="$3" # Whether to use a subsequent run with -e-acsl-gmp-only GMP="$3" # Whether to use a subsequent run with -e-acsl-gmp-only
DEBUG="$4" # Debug flag EXTRA="$4" # Extra flags for e-acsl-gcc.sh
DEBUG="$5" # Debug flag
ROOTDIR="`readlink -f $(dirname $0)/../`" # Root directory of the repository ROOTDIR="`readlink -f $(dirname $0)/../`" # Root directory of the repository
TESTDIR="$ROOTDIR/tests/$PREFIX" TESTDIR="$ROOTDIR/tests/$PREFIX"
...@@ -112,8 +114,8 @@ run_test() { ...@@ -112,8 +114,8 @@ run_test() {
RUNS=$((RUNS+1)) RUNS=$((RUNS+1))
} }
run_test run_test "$EXTRA"
if test -n "$GMP"; then if test -n "$GMP"; then
run_test "--gmp" run_test "--gmp $EXTRA"
fi fi
exit 0 exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment