Skip to content

Commit ef31e75

Browse files
committed
makefile for regression tests
1 parent a54d6e8 commit ef31e75

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

regression/symex-shortest-path/Makefile

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
default: tests.log
22

33
test:
4-
@../test.pl -c "../../../src/symex/symex --shortest-path"
5-
@../test.pl -c "../../../src/symex/symex --shortest-path --randomize"
4+
@if ! ../../lib/cbmc/regression/test.pl -c "../../../src/symex/symex --shortest-path" ; then \
5+
../../lib/cbmc/regression/failed-tests-printer.pl ; \
6+
exit 1 ; \
7+
fi
8+
9+
@if ! ../../lib/cbmc/regression/test.pl -c "../../../src/symex/symex --shortest-path --randomize" ; then \
10+
../../lib/cbmc/regression/failed-tests-printer.pl ; \
11+
exit 1 ; \
12+
fi
613

714
tests.log: ../test.pl
8-
@../test.pl -c "../../../src/symex/symex --shortest-path"
9-
@../test.pl -c "../../../src/symex/symex --shortest-path --randomize"
15+
@if ! ../../lib/cbmc/regression/test.pl -c "../../../src/symex/symex --shortest-path" ; then \
16+
../../lib/cbmc/regression/failed-tests-printer.pl ; \
17+
exit 1 ; \
18+
fi
1019

20+
@if ! ../../lib/cbmc/regression/test.pl -c ../../../src/symex/symex "--shortest-path --randomize" ; then \
21+
../../lib/cbmc/regression/failed-tests-printer.pl ; \
22+
exit 1 ; \
23+
fi
1124

1225
show:
1326
@for dir in *; do \

0 commit comments

Comments
 (0)