Add switch for command line & test.sh to skip smt

- add --no-smt in scripts/tests.sh and test/cmdlineTests.sh

Signed-off-by: soroosh-sdi <soroosh.sardari@gmail.com>
This commit is contained in:
soroosh-sdi
2021-09-10 23:35:17 +04:30
parent dea1b9ec79
commit f5e8f5246c
2 changed files with 58 additions and 25 deletions
+27 -12
View File
@@ -52,17 +52,32 @@ cleanup() {
}
trap cleanup INT TERM
if [ "$1" = --junit_report ]
then
if [ -z "$2" ]
then
echo "Usage: $0 [--junit_report <report_directory>]"
exit 1
fi
log_directory="$2"
else
log_directory=""
fi
log_directory=""
no_smt=""
while [[ $# -gt 0 ]]
do
case "$1" in
--junit_report)
if [ -z "$2" ]
then
echo "Usage: $0 [--junit_report <report_directory>] [--no-smt]"
exit 1
else
log_directory="$2"
fi
shift
shift
;;
--no-smt)
no_smt="--no-smt"
SMT_FLAGS+=(--no-smt)
shift
;;
*)
echo "Usage: $0 [--junit_report <report_directory>] [--no-smt]"
exit 1
esac
done
printTask "Testing Python scripts..."
"$REPO_ROOT/test/pyscriptTests.py"
@@ -74,7 +89,7 @@ then
"$REPO_ROOT/test/cmdlineTests.sh" &
CMDLINE_PID=$!
else
if ! "$REPO_ROOT/test/cmdlineTests.sh"
if ! "$REPO_ROOT/test/cmdlineTests.sh" "$no_smt"
then
printError "Commandline tests FAILED"
exit 1