Skip to content

Commit 9f632e2

Browse files
authored
Merge pull request #3659 from tautschnig/platform-tests
Include goto-cl regression tests in test sequence [depends-on: #3674]
2 parents 6d6b162 + acc8d62 commit 9f632e2

File tree

21 files changed

+45
-37
lines changed

21 files changed

+45
-37
lines changed

buildspec-windows.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,31 +36,10 @@ phases:
3636
3737
post_build:
3838
commands:
39-
- |
40-
cd regression
41-
# HACK disable failing tests
42-
Remove-Item ansi-c\Forward_Declaration2 -Force -Recurse
43-
Remove-Item cbmc\Malloc23 -Force -Recurse
44-
Remove-Item cbmc\byte_update2 -Force -Recurse
45-
Remove-Item cbmc\byte_update3 -Force -Recurse
46-
Remove-Item cbmc\byte_update4 -Force -Recurse
47-
Remove-Item cbmc\byte_update5 -Force -Recurse
48-
Remove-Item cbmc\byte_update6 -Force -Recurse
49-
Remove-Item cbmc\byte_update7 -Force -Recurse
50-
Remove-Item goto-gcc -Force -Recurse
51-
cd ..
52-
cd jbmc/regression
53-
Remove-Item jbmc\VarLengthArrayTrace1 -Force -Recurse
54-
cd ../..
55-
5639
- |
5740
$env:Path = "C:\tools\cygwin\bin;$env:Path"
5841
cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make -C regression test BUILD_ENV=MSVC" '
5942
60-
- |
61-
$env:Path = "C:\tools\cygwin\bin;$env:Path"
62-
cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make -C regression/goto-cl test BUILD_ENV=MSVC" '
63-
6443
- |
6544
$env:Path = "C:\tools\cygwin\bin;$env:Path"
6645
cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make -C unit test BUILD_ENV=MSVC" '

regression/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ add_subdirectory(test-script)
3939
add_subdirectory(goto-analyzer-taint)
4040
if(NOT WIN32)
4141
add_subdirectory(goto-gcc)
42+
else()
43+
add_subdirectory(goto-cl)
4244
endif()
4345
add_subdirectory(goto-cc-cbmc)
4446
add_subdirectory(cbmc-cpp)

regression/Makefile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,24 @@ DIRS = cbmc \
1616
test-script \
1717
goto-analyzer-taint \
1818
goto-gcc \
19+
goto-cl \
1920
goto-cc-cbmc \
2021
cbmc-cpp \
2122
goto-cc-goto-analyzer \
2223
systemc \
2324
contracts \
2425
# Empty last line
2526

26-
# Tests under goto-gcc cannot be run on Windows, so appveyor.yml unlinks
27-
# the entire directory under Windows. This variable will contain the list
28-
# of directories that actually exist on the current platform.
29-
PLATFORM_DIRS = $(wildcard $(DIRS))
30-
3127
# Run all test directories in sequence
3228
.PHONY: test
3329
test:
34-
@for dir in $(PLATFORM_DIRS); do \
30+
@for dir in $(DIRS); do \
3531
$(MAKE) "$$dir" || exit 1; \
3632
done;
3733

3834
# Pattern to execute a single test suite directory
39-
.PHONY: $(PLATFORM_DIRS)
40-
$(PLATFORM_DIRS):
35+
.PHONY: $(DIRS)
36+
$(DIRS):
4137
@echo "Running $@..." ;
4238
$(MAKE) -C "$@" test || exit 1;
4339

@@ -53,7 +49,7 @@ test-parallel:
5349
--linebuffer \
5450
--jobs $(JOBS) \
5551
$(MAKE) "{}" \
56-
::: $(PLATFORM_DIRS)
52+
::: $(DIRS)
5753

5854

5955
.PHONY: clean

regression/ansi-c/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
2+
add_test_pl_tests(
3+
"$<TARGET_FILE:goto-cc>" -X gcc-only
4+
)
5+
else()
16
add_test_pl_tests(
27
"$<TARGET_FILE:goto-cc>"
38
)
9+
endif()

regression/goto-gcc/builtin_is/test.desc renamed to regression/ansi-c/builtin_is/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
KNOWNBUG gcc-only
22
main.c
33

44
^EXIT=1$

regression/goto-gcc/builtin_va_copy_lvalue/test.desc renamed to regression/ansi-c/builtin_va_copy_lvalue/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
KNOWNBUG gcc-only
22
main.c
33

44
^EXIT=1$

regression/goto-gcc/builtin_va_end_one/test.desc renamed to regression/ansi-c/builtin_va_copy_two/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE gcc-only
22
main.c
33

44
^EXIT=1$

regression/goto-gcc/builtin_va_start_lvalue/test.desc renamed to regression/ansi-c/builtin_va_end_lvalue/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
KNOWNBUG gcc-only
22
main.c
33

44
^EXIT=1$

regression/goto-gcc/builtin_va_copy_two/test.desc renamed to regression/ansi-c/builtin_va_end_one/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CORE
1+
CORE gcc-only
22
main.c
33

44
^EXIT=1$

regression/goto-gcc/builtin_va_end_lvalue/test.desc renamed to regression/ansi-c/builtin_va_start_lvalue/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
KNOWNBUG gcc-only
22
main.c
33

44
^EXIT=1$

regression/goto-gcc/builtin_va_start_two/test.desc renamed to regression/ansi-c/builtin_va_start_two/test.desc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
KNOWNBUG
1+
KNOWNBUG gcc-only
22
main.c
33

44
^EXIT=1$

regression/goto-cl/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_test_pl_tests(
2+
"$<TARGET_FILE:goto-cc>" -X goto-link
3+
)

regression/goto-cl/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
default: tests.log
22

3+
include ../../src/config.inc
4+
include ../../src/common
5+
6+
ifeq ($(BUILD_ENV_),MSVC)
37
test:
48
@../test.pl -p -c ../../../src/goto-cc/goto-cl -X goto-link
59
@cp ../../src/goto-cc/goto-cl.exe ../../src/goto-cc/goto-link.exe
@@ -10,6 +14,13 @@ tests.log: ../test.pl
1014
@cp ../../src/goto-cc/goto-cl.exe ../../src/goto-cc/goto-link.exe
1115
@../test.pl -p -c ../../../src/goto-cc/goto-link -I goto-link
1216

17+
else
18+
test:
19+
20+
tests.log: ../test.pl
21+
22+
endif
23+
1324
show:
1425
@for dir in *; do \
1526
if [ -d "$$dir" ]; then \

regression/goto-gcc/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
default: tests.log
22

3+
include ../../src/config.inc
4+
include ../../src/common
5+
6+
ifeq ($(BUILD_ENV_),MSVC)
7+
test:
8+
9+
tests.log: ../test.pl
10+
11+
else
312
test:
413
-@ln -s goto-cc ../../src/goto-cc/goto-gcc
514
@../test.pl -p -c ../../../src/goto-cc/goto-gcc
@@ -8,6 +17,8 @@ tests.log: ../test.pl
817
-@ln -s goto-cc ../../src/goto-cc/goto-gcc
918
@../test.pl -p -c ../../../src/goto-cc/goto-gcc
1019

20+
endif
21+
1122
show:
1223
@for dir in *; do \
1324
if [ -d "$$dir" ]; then \

0 commit comments

Comments
 (0)