Skip to content

Commit 16436f6

Browse files
author
martin
committed
Support the SMT tags in the contract regression tests
1 parent a49e08c commit 16436f6

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

regression/contracts/Makefile

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,42 @@
1-
default: tests.log
1+
default: test
22

33
include ../../src/config.inc
44
include ../../src/common
55

66
ifeq ($(BUILD_ENV_),MSVC)
77
exe=../../../src/goto-cc/goto-cl
88
is_windows=true
9+
GCC_ONLY = -X gcc-only
910
else
1011
exe=../../../src/goto-cc/goto-cc
1112
is_windows=false
13+
GCC_ONLY =
1214
endif
1315

1416
test:
15-
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/goto-instrument/goto-instrument ../../../src/cbmc/cbmc $(is_windows)'
17+
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/goto-instrument/goto-instrument ../../../src/cbmc/cbmc $(is_windows)' -X smt-backend $(GCC_ONLY)
18+
19+
test-cprover-smt2:
20+
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/goto-instrument/goto-instrument "../../../src/cbmc/cbmc --cprover-smt2" $(is_windows)' \
21+
-X broken-smt-backend -X thorough-smt-backend \
22+
-X broken-cprover-smt-backend -X thorough-cprover-smt-backend \
23+
-s cprover-smt2 $(GCC_ONLY)
24+
25+
test-z3:
26+
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/goto-instrument/goto-instrument "../../../src/cbmc/cbmc --z3" $(is_windows)' \
27+
-X broken-smt-backend -X thorough-smt-backend \
28+
-X broken-z3-smt-backend -X thorough-z3-smt-backend \
29+
-s z3 $(GCC_ONLY)
30+
31+
tests.log: ../test.pl test
1632

17-
tests.log:
18-
@../test.pl -e -p -c '../chain.sh $(exe) ../../../src/goto-instrument/goto-instrument ../../../src/cbmc/cbmc $(is_windows)'
1933

2034
clean:
2135
@for dir in *; do \
2236
$(RM) tests.log; \
2337
if [ -d "$$dir" ]; then \
2438
cd "$$dir"; \
25-
$(RM) *.out *.gb; \
39+
$(RM) *.out *.gb *.smt2; \
2640
cd ..; \
2741
fi \
2842
done

0 commit comments

Comments
 (0)