Skip (get-unsat-assumptions) tests not supported (#1656)
authorAndres Noetzli <andres.noetzli@gmail.com>
Fri, 9 Mar 2018 18:54:31 +0000 (10:54 -0800)
committerAina Niemetz <aina.niemetz@gmail.com>
Fri, 9 Mar 2018 18:54:31 +0000 (10:54 -0800)
(get-unsat-assumptions) requires the proof infrastructure,so we can't
run the regression tests if CVC4 has not been configured for it. This
commit changes the regression script to skip tests containing
(get-unsat-assumptions) when CVC4 has not been compiled with proof
support.

test/regress/run_regression

index e236234e111a6df31cb2d4dbb96720d3741d7fda..6b2447d8e2aa4d5d2b069137ed175be14672aebe 100755 (executable)
@@ -134,7 +134,7 @@ elif expr "$benchmark" : '.*\.smt2$' &>/dev/null; then
   # If this test case requires unsat cores but CVC4 is not built with proof
   # support, skip it. Note: checking $CVC4_REGRESSION_ARGS instead of $proof
   # here because $proof is not set for the second run.
-  requires_proof=`grep '(get-unsat-core)' "$benchmark"`
+  requires_proof=`grep '(get-unsat-core)\|(get-unsat-assumptions)' "$benchmark"`
   if [[ ! "$CVC4_REGRESSION_ARGS" = *"--proof"* ]] && [ -n "$requires_proof" ]; then
     exit 77
   fi