Skip to content

Commit 5235938

Browse files
committed
Restore testing of jbmc
1 parent 8412eb0 commit 5235938

File tree

5 files changed

+9
-28
lines changed

5 files changed

+9
-28
lines changed

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ set(sat_impl "minisat2" CACHE STRING
3434
"This setting controls the SAT library which is used. Valid values are 'minisat2' and 'glucose'"
3535
)
3636

37-
add_subdirectory(src)
38-
add_subdirectory(jbmc)
39-
4037
if(${enable_cbmc_tests})
4138
enable_testing()
4239
endif()
43-
add_subdirectory(unit)
40+
41+
add_subdirectory(src)
4442
add_subdirectory(regression)
43+
add_subdirectory(unit)
44+
45+
add_subdirectory(jbmc)
4546

4647
set_target_properties(
4748
analyses

jbmc/regression/CMakeLists.txt

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
1-
set(test_pl_path "${CMAKE_CURRENT_SOURCE_DIR}/test.pl")
2-
3-
macro(add_test_pl_profile name cmdline flag profile)
4-
add_test(
5-
NAME "${name}-${profile}"
6-
COMMAND ${test_pl_path} -p -c ${cmdline} ${flag} ${ARGN}
7-
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
8-
)
9-
set_tests_properties("${name}-${profile}" PROPERTIES
10-
LABELS "${profile};CBMC"
11-
)
12-
endmacro(add_test_pl_profile)
13-
14-
macro(add_test_pl_tests cmdline)
15-
get_filename_component(TEST_DIR_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
16-
message(STATUS "Adding tests in directory: ${TEST_DIR_NAME}")
17-
add_test_pl_profile("${TEST_DIR_NAME}" "${cmdline}" -C CORE ${ARGN})
18-
add_test_pl_profile("${TEST_DIR_NAME}" "${cmdline}" -T THOROUGH ${ARGN})
19-
add_test_pl_profile("${TEST_DIR_NAME}" "${cmdline}" -F FUTURE ${ARGN})
20-
add_test_pl_profile("${TEST_DIR_NAME}" "${cmdline}" -K KNOWNBUG ${ARGN})
21-
endmacro(add_test_pl_tests)
1+
set(test_pl_path "${CMAKE_SOURCE_DIR}/regression/test.pl")
222

233
# For the best possible utilisation of multiple cores when
244
# running tests in parallel, it is important that these directories are
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
add_test_pl_tests(
2-
"$<TARGET_FILE:goto-analyzer>"
2+
"$<TARGET_FILE:janalyzer>"
33
)

jbmc/regression/jbmc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ add_test_pl_tests(
33
)
44

55
add_test_pl_profile(
6-
"cbmc-java-symex-driven-lazy-loading"
6+
"jbmc-symex-driven-lazy-loading"
77
"$<TARGET_FILE:jbmc> --symex-driven-lazy-loading"
88
"-C;-X;symex-driven-lazy-loading-expected-failure"
99
"CORE"

jbmc/regression/jdiff/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
add_test_pl_tests(
2-
"$<TARGET_FILE:goto-diff>"
2+
"$<TARGET_FILE:jdiff>"
33
)

0 commit comments

Comments
 (0)