Skip to content

Commit fa4569e

Browse files
authored
Merge pull request #5541 from NlightNFotis/fix_mac_ci
Deactivate broken tests that depend on assert on MacOS.
2 parents a46f12d + 7a8c427 commit fa4569e

File tree

35 files changed

+141
-59
lines changed

35 files changed

+141
-59
lines changed

regression/ansi-c/CMakeLists.txt

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,32 @@
11
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
2-
add_test_pl_tests(
3-
"$<TARGET_FILE:goto-cc>" -X gcc-only
4-
)
2+
add_test_pl_tests(
3+
"$<TARGET_FILE:goto-cc>" -X gcc-only
4+
)
5+
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
6+
add_test_pl_tests(
7+
"$<TARGET_FILE:goto-cc>"
8+
)
9+
10+
# In MacOS, a change in the assert.h header file
11+
# is causing template errors when exercising the
12+
# C++ front end (because of a transitive include
13+
# of <type_traits>) for files that include the
14+
# <assert.h> or <cassert> headers.
15+
add_test_pl_profile(
16+
"ansi-c-c++-front-end"
17+
"$<TARGET_FILE:goto-cc> -xc++ -D_Bool=bool"
18+
"-C;-I;test-c++-front-end;-s;c++-front-end-X;macos-assert-broken"
19+
"CORE"
20+
)
521
else()
6-
add_test_pl_tests(
7-
"$<TARGET_FILE:goto-cc>"
8-
)
9-
add_test_pl_profile(
10-
"ansi-c-c++-front-end"
11-
"$<TARGET_FILE:goto-cc> -xc++ -D_Bool=bool"
12-
"-C;-I;test-c++-front-end;-s;c++-front-end"
13-
"CORE"
14-
)
22+
add_test_pl_tests(
23+
"$<TARGET_FILE:goto-cc>"
24+
)
25+
26+
add_test_pl_profile(
27+
"ansi-c-c++-front-end"
28+
"$<TARGET_FILE:goto-cc> -xc++ -D_Bool=bool"
29+
"-C;-I;test-c++-front-end;-s;c++-front-end"
30+
"CORE"
31+
)
1532
endif()

regression/ansi-c/Makefile

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,35 @@ include ../../src/config.inc
44
include ../../src/common
55

66
ifeq ($(BUILD_ENV_),MSVC)
7-
exe=../../../src/goto-cc/goto-cl -X gcc-only
7+
exe = ../../../src/goto-cc/goto-cl
88
else
9-
exe=../../../src/goto-cc/goto-cc
9+
exe = ../../../src/goto-cc/goto-cc
10+
endif
11+
12+
ifeq ($(BUILD_ENV_),MSVC)
13+
excluded_tests = -X gcc-only
14+
else
15+
# In MacOS, a change in the assert.h header file
16+
# is causing template errors when exercising the
17+
# C++ front end (because of a transitive include
18+
# of <type_traits>) for files that include the
19+
# <assert.h> or <cassert> headers.
20+
OS := $(shell uname)
21+
ifeq ($(OS),Darwin)
22+
excluded_tests = -X macos-assert-broken
23+
endif
1024
endif
1125

1226
test:
13-
@../test.pl -e -p -c $(exe)
27+
@../test.pl -e -p -c $(exe) $(excluded_tests)
1428
ifneq ($(BUILD_ENV_),MSVC)
15-
@../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end
29+
@../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end $(excluded_tests)
1630
endif
1731

1832
tests.log: ../test.pl
19-
@../test.pl -e -p -c $(exe)
33+
@../test.pl -e -p -c $(exe) $(excluded_tests)
2034
ifneq ($(BUILD_ENV_),MSVC)
21-
@../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end
35+
@../test.pl -e -p -c "$(exe) -xc++ -D_Bool=bool" -I test-c++-front-end -s c++-front-end $(excluded_tests)
2236
endif
2337

2438
show:

regression/ansi-c/array_initialization2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE test-c++-front-end
1+
CORE test-c++-front-end macos-assert-broken
22
main.c
33

44
^EXIT=0$

regression/ansi-c/float_constant2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE test-c++-front-end
1+
CORE test-c++-front-end macos-assert-broken
22
main.c
33

44
^EXIT=0$

regression/ansi-c/goto_convert_switch_range_case_valid/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE test-c++-front-end
1+
CORE test-c++-front-end macos-assert-broken
22
main.c
33

44
^EXIT=0$

regression/cbmc-cpp/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ else()
1010
set(exclude_win_broken_tests "")
1111
endif()
1212

13+
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
14+
set(exclude_mac_broken_tests -X macos-assert-broken)
15+
else()
16+
set(exclude_mac_broken_tests "")
17+
endif()
18+
1319
add_test_pl_tests(
14-
"$<TARGET_FILE:cbmc> --validate-goto-model --validate-ssa-equation" ${gcc_only} ${exclude_win_broken_tests}
20+
"$<TARGET_FILE:cbmc> --validate-goto-model --validate-ssa-equation" ${gcc_only} ${exclude_win_broken_tests} ${exclude_mac_broken_tests}
1521
)

regression/cbmc-cpp/FunctionParam1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/cbmc-cpp/Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,24 @@ include ../../src/config.inc
44
include ../../src/common
55

66
ifeq ($(BUILD_ENV_),MSVC)
7-
gcc_only = -X gcc-only
7+
excluded_tests = -X gcc-only
88
else
9-
gcc_only =
9+
# In MacOS, a change in the assert.h header file
10+
# is causing template errors when exercising the
11+
# C++ front end (because of a transitive include
12+
# of <type_traits>) for files that include the
13+
# <assert.h> or <cassert> headers.
14+
OS := $(shell uname)
15+
ifeq ($(OS),Darwin)
16+
excluded_tests = -X macos-assert-broken
17+
endif
1018
endif
1119

1220
test:
13-
@../test.pl -e -p -c "../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation" $(gcc_only)
21+
@../test.pl -e -p -c "../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation" $(excluded_tests)
1422

1523
tests.log: ../test.pl
16-
@../test.pl -e -p -c "../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation" $(gcc_only)
24+
@../test.pl -e -p -c "../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation" $(excluded_tests)
1725

1826
show:
1927
@for dir in *; do \

regression/cbmc-cpp/MethodParam1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE macos-assert-broken
22
main.cpp
33

44
instance is SATISFIABLE$

regression/cbmc-cpp/cpp-new/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33
--pointer-check
44
^EXIT=0$

regression/cbmc-cpp/cpp1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33
--unwind 1 --unwinding-assertions
44
^EXIT=0$

regression/cbmc-cpp/lvalue1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/cbmc-cpp/union2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE macos-assert-broken
22
main.cpp
33
--little-endian
44
^EXIT=0$

regression/cpp/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ else()
1010
set(exclude_win_broken_tests "")
1111
endif()
1212

13+
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
14+
set(exclude_mac_broken_tests -X macos-assert-broken)
15+
else()
16+
set(exclude_mac_broken_tests "")
17+
endif()
18+
1319
add_test_pl_tests(
14-
"$<TARGET_FILE:goto-cc>" ${gcc_only} ${exclude_win_broken_tests}
20+
"$<TARGET_FILE:goto-cc>" ${gcc_only} ${exclude_win_broken_tests} ${exclude_mac_broken_tests}
1521
)

regression/cpp/Makefile

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,29 @@ include ../../src/config.inc
44
include ../../src/common
55

66
ifeq ($(BUILD_ENV_),MSVC)
7-
exe=../../../src/goto-cc/goto-cl -X gcc-only
7+
exe = ../../../src/goto-cc/goto-cl
88
else
9-
exe=../../../src/goto-cc/goto-cc
9+
exe = ../../../src/goto-cc/goto-cc
1010
endif
1111

12-
test:
13-
@../test.pl -e -p -c $(exe)
12+
ifeq ($(BUILD_ENV_),MSVC)
13+
excluded_tests = -X gcc-only
14+
else
15+
# In MacOS, a change in the assert.h header file
16+
# is causing template errors when exercising the
17+
# C++ front end (because of a transitive include
18+
# of <type_traits>) for files that include the
19+
# <assert.h> or <cassert> headers.
20+
OS := $(shell uname)
21+
ifeq ($(OS),Darwin)
22+
excluded_tests = -X macos-assert-broken
23+
endif
24+
endif
1425

26+
test:
27+
@../test.pl -e -p -c $(exe) $(excluded_tests)
1528
tests.log: ../test.pl
16-
@../test.pl -e -p -c $(exe)
29+
@../test.pl -e -p -c $(exe) $(excluded_tests)
1730

1831
show:
1932
@for dir in *; do \

regression/cpp/Method_qualifier1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/cpp/auto1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33
-std=c++11
44
^EXIT=0$

regression/cpp/enum5/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/cpp/switch1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/cpp/virtual1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/systemc/Array2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33
-DNO_IO -DNO_STRING
44
^EXIT=0$

regression/systemc/Array3/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33
-DNO_IO -DNO_STRING
44
^EXIT=0$

regression/systemc/Array4/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33
-DNO_IO -DNO_STRING
44
^EXIT=0$

regression/systemc/BitvectorCpp1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/systemc/BitvectorCpp2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/systemc/BitvectorSc3/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/systemc/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ else()
44
set(exclude_win_broken_tests "")
55
endif()
66

7+
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
8+
set(exclude_mac_broken_tests -X macos-assert-broken)
9+
else()
10+
set(exclude_mac_broken_tests "")
11+
endif()
12+
713
add_test_pl_tests(
8-
"$<TARGET_FILE:cbmc> --validate-goto-model --validate-ssa-equation" ${exclude_win_broken_tests}
14+
"$<TARGET_FILE:cbmc> --validate-goto-model --validate-ssa-equation" ${exclude_win_broken_tests} ${exclude_mac_broken_tests}
915
)

regression/systemc/ForwardDecl1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/systemc/Makefile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1+
ifneq ($(BUILD_ENV_),MSVC)
2+
# In MacOS, a change in the assert.h header file
3+
# is causing template errors when exercising the
4+
# C++ front end (because of a transitive include
5+
# of <type_traits>) for files that include the
6+
# <assert.h> or <cassert> headers.
7+
OS := $(shell uname)
8+
ifeq ($(OS),Darwin)
9+
excluded_tests = -X macos-assert-broken
10+
endif
11+
endif
12+
113
default: tests.log
214

315
test:
4-
@../test.pl -e -p -c "../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation"
16+
@../test.pl -e -p -c "../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation" $(excluded_tests)
517

618
tests.log: ../test.pl
7-
@../test.pl -e -p -c "../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation"
19+
@../test.pl -e -p -c "../../../src/cbmc/cbmc --validate-goto-model --validate-ssa-equation" $(excluded_tests)
820

921
show:
1022
@for dir in *; do \

regression/systemc/Masc1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/systemc/MascInst1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/systemc/Reference1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/systemc/This1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33

44
^EXIT=0$

regression/systemc/Tuple1/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33
-DNO_IO -DNO_STRING
44
^EXIT=0$

regression/systemc/Tuple2/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE winbug
1+
CORE winbug macos-assert-broken
22
main.cpp
33
-DNO_IO -DNO_STRING
44
^EXIT=0$

0 commit comments

Comments
 (0)