Skip to content

Commit 32da699

Browse files
committed
Add test directory for future sequentialization work
This directory of regression tests is for examples which we intend to use for testing the future work on the analysis of concurrent programs based on a sequentialization approach.
1 parent b49f31f commit 32da699

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
2+
set(gcc_only "-X gcc-only")
3+
else()
4+
set(gcc_only "")
5+
endif()
6+
7+
add_test_pl_tests(
8+
"$<TARGET_FILE:cbmc> --validate-goto-model --validate-ssa-equation" -X smt-backend ${gcc_only}
9+
)
10+
11+
add_test_pl_profile(
12+
"cbmc-paths-lifo"
13+
"$<TARGET_FILE:cbmc> --paths lifo ${gcc_only}"
14+
"-C;-X;thorough-paths;-X;smt-backend;-X;paths-lifo-expected-failure;-s;paths-lifo"
15+
"CORE"
16+
)
17+
18+
add_test_pl_profile(
19+
"cbmc-cprover-smt2"
20+
"$<TARGET_FILE:cbmc> --cprover-smt2 ${gcc_only}"
21+
"-C;-X;broken-smt-backend;-s;cprover-smt2"
22+
"CORE"
23+
)
24+
25+
set_property(
26+
TEST "cbmc-cprover-smt2-CORE"
27+
PROPERTY ENVIRONMENT
28+
"PATH=$ENV{PATH}:${CMAKE_BINARY_DIR}/bin"
29+
)
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
default: test
2+
3+
include ../../src/config.inc
4+
include ../../src/common
5+
6+
ifeq ($(BUILD_ENV_),MSVC)
7+
GCC_ONLY = -X gcc-only
8+
else
9+
GCC_ONLY =
10+
endif
11+
12+
test:
13+
@../test.pl -e -p -c "../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation" -X smt-backend $(GCC_ONLY)
14+
15+
test-cprover-smt2:
16+
@../test.pl -e -p -c "../../../src/cbmc/cbmc --cprover-smt2" -X broken-smt-backend $(GCC_ONLY)
17+
18+
test-paths-lifo:
19+
@../test.pl -e -p -c "../../../src/cbmc/cbmc --paths lifo" -X thorough-paths -X smt-backend -X paths-lifo-expected-failure $(GCC_ONLY)
20+
21+
tests.log: ../test.pl test
22+
23+
show:
24+
@for dir in *; do \
25+
if [ -d "$$dir" ]; then \
26+
vim -o "$$dir/*.c" "$$dir/*.out"; \
27+
fi; \
28+
done;
29+
30+
clean:
31+
find -name '*.out' -execdir $(RM) '{}' \;
32+
find -name '*.smt2' -execdir $(RM) '{}' \;
33+
$(RM) tests.log

0 commit comments

Comments
 (0)