|
1 | 1 | if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
2 | 2 | set(gcc_only -X gcc-only)
|
| 3 | + set(gcc_only_string "-X;gcc-only;") |
3 | 4 | else()
|
4 | 5 | set(gcc_only "")
|
5 |
| -endif() |
6 |
| - |
7 |
| -if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") |
8 |
| - set(exclude_win_broken_tests -X winbug) |
9 |
| -else() |
10 |
| - set(exclude_win_broken_tests "") |
| 6 | + set(gcc_only_string "") |
11 | 7 | endif()
|
12 | 8 |
|
13 | 9 | add_test_pl_tests(
|
14 |
| - "$<TARGET_FILE:cbmc> --validate-goto-model --validate-ssa-equation" -X smt-backend ${gcc_only} ${exclude_win_broken_tests} |
| 10 | + "$<TARGET_FILE:cbmc> --validate-goto-model --validate-ssa-equation" -X smt-backend ${gcc_only} |
15 | 11 | )
|
16 | 12 |
|
17 | 13 | add_test_pl_profile(
|
18 | 14 | "cbmc-paths-lifo"
|
19 | 15 | "$<TARGET_FILE:cbmc> --paths lifo"
|
20 |
| - "-C;-X;thorough-paths;-X;smt-backend;-X;paths-lifo-expected-failure;-s;paths-lifo" |
| 16 | + "-C;-X;thorough-paths;-X;smt-backend;-X;paths-lifo-expected-failure;${gcc_only_string}-s;paths-lifo" |
21 | 17 | "CORE"
|
22 |
| - ${gcc_only} |
23 | 18 | )
|
24 | 19 |
|
25 |
| -if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") |
26 |
| - message(WARNING "Tests are failing on windows under this config, for reasons unknown. Investigation is pending.") |
27 |
| -else() |
28 |
| - add_test_pl_profile( |
| 20 | +add_test_pl_profile( |
29 | 21 | "cbmc-cprover-smt2"
|
30 | 22 | "$<TARGET_FILE:cbmc> --cprover-smt2"
|
31 |
| - "-C;-X;broken-smt-backend;-s;cprover-smt2" |
| 23 | + "-C;-X;broken-smt-backend;${gcc_only_string}-s;cprover-smt2" |
32 | 24 | "CORE"
|
33 |
| - ${gcc_only} |
34 |
| - ) |
| 25 | +) |
35 | 26 |
|
| 27 | +if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") |
| 28 | + set_property( |
| 29 | + TEST "cbmc-cprover-smt2-CORE" |
| 30 | + PROPERTY ENVIRONMENT |
| 31 | + "PATH=$ENV{PATH}:$<TARGET_FILE_DIR:smt2_solver>" |
| 32 | + ) |
| 33 | +else() |
| 34 | + string(REPLACE ";" "\\;" path_value "$ENV{PATH}") |
36 | 35 | set_property(
|
37 | 36 | TEST "cbmc-cprover-smt2-CORE"
|
38 | 37 | PROPERTY ENVIRONMENT
|
39 |
| - "PATH=$ENV{PATH}:${CMAKE_BINARY_DIR}/bin" |
| 38 | + "PATH=${path_value}\;$<TARGET_FILE_DIR:smt2_solver>" |
40 | 39 | )
|
41 | 40 | endif()
|
0 commit comments