Skip to content

Commit 0bd5124

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 a0e4c95 commit 0bd5124

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

regression/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ add_subdirectory(linking-goto-binaries)
6161
add_subdirectory(symtab2gb)
6262
add_subdirectory(validate-trace-xml-schema)
6363
add_subdirectory(cbmc-primitives)
64+
add_subdirectory(cbmc-sequentialization)
6465

6566
if(WITH_MEMORY_ANALYZER)
6667
add_subdirectory(snapshot-harness)
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"
14+
"-C;-X;thorough-paths;-X;smt-backend;-X;paths-lifo-expected-failure;-s;paths-lifo ${gcc_only}"
15+
"CORE"
16+
)
17+
18+
add_test_pl_profile(
19+
"cbmc-cprover-smt2"
20+
"$<TARGET_FILE:cbmc> --cprover-smt2"
21+
"-C;-X;broken-smt-backend;-s;cprover-smt2 ${gcc_only}"
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)