Skip to content

Commit 7a8d3a8

Browse files
Add goto-harness regression test
This merely shows that the goto-harness executable was built (and indeed executable)
1 parent 30cb51c commit 7a8d3a8

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

regression/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ add_subdirectory(cbmc-cpp)
4747
add_subdirectory(goto-cc-goto-analyzer)
4848
add_subdirectory(systemc)
4949
add_subdirectory(contracts)
50+
add_subdirectory(goto-harness)

regression/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ DIRS = cbmc \
1616
test-script \
1717
goto-analyzer-taint \
1818
goto-gcc \
19+
goto-harness \
1920
goto-cl \
2021
goto-cc-cbmc \
2122
cbmc-cpp \
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
add_test_pl_tests(
2+
"$<TARGET_FILE:goto-harness>")

regression/goto-harness/Makefile

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
default: tests.log
2+
3+
GOTO_HARNESS_EXE=../../../src/goto-harness/goto-harness
4+
5+
test:
6+
@../test.pl -p -c ${GOTO_HARNESS_EXE}
7+
8+
tests.log: ../test.pl
9+
@../test.pl -p -c ${GOTO_HARNESS_EXE}
10+
11+
show:
12+
@for dir in *; do \
13+
if [ -d "$$dir" ]; then \
14+
vim -o "$$dir/*.c" "$$dir/*.out"; \
15+
fi; \
16+
done;
17+
18+
clean:
19+
find -name '*.out' -execdir $(RM) '{}' \;
20+
find -name '*.gb' -execdir $(RM) {} \;
21+
$(RM) tests.log
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CORE
2+
dummy
3+
--version
4+
^\d+\.\d+ \([^)]+\)
5+
^EXIT=0$
6+
^SIGNAL=0$

0 commit comments

Comments
 (0)