about summary refs log tree commit diff homepage
path: root/.travis
diff options
context:
space:
mode:
authorHoang M. Le <hle@cs.uni-bremen.de>2016-12-20 20:58:44 +0100
committerDan Liew <delcypher@gmail.com>2016-12-23 17:30:50 +0000
commit5caccf0c9bef886b61111609f1f95937aeb5596c (patch)
tree937aebc310a7e45bf2255dfd2521159fc6f9d46d /.travis
parenta59bb9e8291edfef5d6289494019acfbcb21f63a (diff)
downloadklee-5caccf0c9bef886b61111609f1f95937aeb5596c.tar.gz
rerun lit tests for non-default metaSMT backends
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/klee.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/.travis/klee.sh b/.travis/klee.sh
index e1adc6bc..7ecfe78a 100755
--- a/.travis/klee.sh
+++ b/.travis/klee.sh
@@ -204,6 +204,17 @@ else
   lit -v test/
 fi
 
+# If metaSMT is the only solver, then rerun lit tests with non-default metaSMT backends
+if [ "X${SOLVERS}" == "XmetaSMT" ]; then
+  metasmt_default=`echo "${METASMT_DEFAULT,,}"` # klee_opts and kleaver_opts use lowercase
+  available_metasmt_backends="btor stp z3"
+  for backend in $available_metasmt_backends; do
+    if [ "X${metasmt_default}" != "X$backend" ]; then
+      lit -v --param klee_opts=-metasmt-backend=$backend --param kleaver_opts=-metasmt-backend=$backend test/
+    fi
+  done
+fi
+
 #generate and upload coverage if COVERAGE is set
 if [ ${COVERAGE} -eq 1 ]; then