Skip to content

Commit e798cbb

Browse files
Merge pull request #7950 from thomasspriggs/tas/fix_book_examples_smt
Fix book regression tests handling of smt test runs
2 parents cf380d5 + a42b439 commit e798cbb

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

regression/book-examples/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ add_test_pl_profile(
2424
)
2525

2626
add_test_pl_profile(
27-
"cbmc-cprover-smt2"
27+
"book-examples-cprover-smt2"
2828
"$<TARGET_FILE:cbmc> --cprover-smt2"
2929
"-C;-X;broken-smt-backend;-X;thorough-smt-backend;-X;broken-cprover-smt-backend;-X;thorough-cprover-smt-backend;${gcc_only_string}-s;cprover-smt2;${exclude_win_broken_tests_string}"
3030
"CORE"
3131
)
3232

3333
# If `-I` (include flag) is passed, test.pl will run only the tests matching the label following it.
3434
add_test_pl_profile(
35-
"cbmc-new-smt-backend"
35+
"book-examples-new-smt-backend"
3636
"$<TARGET_FILE:cbmc> --incremental-smt2-solver 'z3 --smt2 -in'"
3737
"${gcc_only_string}-I;new-smt-backend;-s;new-smt-backend"
3838
"CORE"
@@ -41,7 +41,7 @@ add_test_pl_profile(
4141
# solver appears on the PATH in Windows already
4242
if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
4343
set_property(
44-
TEST "cbmc-cprover-smt2-CORE"
44+
TEST "book-examples-cprover-smt2-CORE"
4545
PROPERTY ENVIRONMENT
4646
"PATH=$ENV{PATH}:$<TARGET_FILE_DIR:smt2_solver>"
4747
)

regression/book-examples/abs/C1.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
abs.c
33
--function abs
44
^EXIT=0$

regression/book-examples/abs/C13.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
abs.c
33
--function abs --signed-overflow-check --show-goto-functions
44
^EXIT=0$

regression/book-examples/abs/C2.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
abs.c
33
--function abs --signed-overflow-check
44
^EXIT=10$

regression/book-examples/abs/C3.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
abs.c
33
--function abs --signed-overflow-check --trace
44
^EXIT=10$

regression/book-examples/binsearch/C4.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
binsearch.c
33
--function binsearch --unwind 6 --bounds-check --unwinding-assertions
44
^EXIT=0$

regression/book-examples/lock/depth.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
lock.c
33
--depth 10
44
^EXIT=0$

regression/book-examples/lock/unwind1.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
lock.c
33
--unwind 1
44
^EXIT=0$

regression/book-examples/lock/unwind2.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
lock.c
33
--unwind 2
44
^EXIT=10$

regression/book-examples/login/C5.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
login.c
33
--unwind 20 --bounds-check
44
^EXIT=10$

regression/book-examples/login/C6.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
login.c
33
--show-properties --bounds-check --pointer-check
44
^EXIT=0$

regression/book-examples/login/C7.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
login.c
33
--unwind 20 --show-vcc --bounds-check --pointer-check
44
^EXIT=0$

regression/book-examples/login/C8.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
login.c
33
--unwind 20 --bounds-check --pointer-check
44
^EXIT=10$

regression/book-examples/login/C9.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE new-smt-backend
22
login.c
33
--unwind 20 --bounds-check --pointer-check --trace
44
^EXIT=10$

0 commit comments

Comments
 (0)