Skip to content

Commit 33a19e0

Browse files
author
Daniel Kroening
committed
move tests that are meant for goto-gcc only
1 parent ae1d039 commit 33a19e0

File tree

82 files changed

+33
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+33
-12
lines changed

appveyor.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,11 @@ test_script:
6464
- cmd: |
6565
cd regression
6666
rem HACK disable failing tests
67-
rmdir /s /q ansi-c\arch_flags_mcpu_bad
68-
rmdir /s /q ansi-c\arch_flags_mcpu_good
69-
rmdir /s /q ansi-c\arch_flags_mthumb_bad
70-
rmdir /s /q ansi-c\arch_flags_mthumb_good
7167
rmdir /s /q ansi-c\Forward_Declaration2
7268
rmdir /s /q ansi-c\Incomplete_Type1
7369
rmdir /s /q ansi-c\Union_Padding1
7470
rmdir /s /q ansi-c\Universal_characters1
7571
rmdir /s /q ansi-c\function_return1
76-
rmdir /s /q ansi-c\gcc_attributes7
77-
rmdir /s /q ansi-c\gcc_version1
7872
rmdir /s /q ansi-c\struct6
7973
rmdir /s /q ansi-c\struct7
8074
rmdir /s /q cbmc\Malloc23
@@ -86,6 +80,7 @@ test_script:
8680
rmdir /s /q cbmc\byte_update7
8781
rmdir /s /q cbmc\pipe1
8882
rmdir /s /q cbmc\unsigned___int128
83+
rmdir /s /q goto-cc
8984
rmdir /s /q goto-gcc
9085
rmdir /s /q goto-instrument\slice08
9186
cd ..

buildspec-windows.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,11 @@ phases:
2828
- |
2929
cd regression
3030
# HACK disable failing tests
31-
Remove-Item ansi-c\arch_flags_mcpu_bad -Force -Recurse
32-
Remove-Item ansi-c\arch_flags_mcpu_good -Force -Recurse
33-
Remove-Item ansi-c\arch_flags_mthumb_bad -Force -Recurse
34-
Remove-Item ansi-c\arch_flags_mthumb_good -Force -Recurse
3531
Remove-Item ansi-c\Forward_Declaration2 -Force -Recurse
3632
Remove-Item ansi-c\Incomplete_Type1 -Force -Recurse
3733
Remove-Item ansi-c\Union_Padding1 -Force -Recurse
3834
Remove-Item ansi-c\Universal_characters1 -Force -Recurse
3935
Remove-Item ansi-c\function_return1 -Force -Recurse
40-
Remove-Item ansi-c\gcc_attributes7 -Force -Recurse
41-
Remove-Item ansi-c\gcc_version1 -Force -Recurse
4236
Remove-Item ansi-c\struct6 -Force -Recurse
4337
Remove-Item ansi-c\struct7 -Force -Recurse
4438
Remove-Item cbmc\Malloc23 -Force -Recurse
@@ -52,6 +46,7 @@ phases:
5246
Remove-Item cbmc\unsigned___int128 -Force -Recurse
5347
Remove-Item cpp -Force -Recurse
5448
Remove-Item cbmc-cpp -Force -Recurse
49+
Remove-Item goto-cc -Force -Recurse
5550
Remove-Item goto-gcc -Force -Recurse
5651
Remove-Item systemc -Force -Recurse
5752
Remove-Item goto-instrument\slice08 -Force -Recurse

regression/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ DIRS = cbmc \
1414
goto-diff \
1515
test-script \
1616
goto-analyzer-taint \
17+
goto-cc \
1718
goto-gcc \
1819
goto-cc-cbmc \
1920
cbmc-cpp \

regression/goto-cc/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>"
3+
)

regression/goto-cc/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
default: tests.log
2+
3+
test:
4+
@../test.pl -p -c ../../../src/goto-cc/goto-cc
5+
6+
tests.log: ../test.pl
7+
@../test.pl -p -c ../../../src/goto-cc/goto-cc
8+
9+
show:
10+
@for dir in *; do \
11+
if [ -d "$$dir" ]; then \
12+
vim -o "$$dir/*.c" "$$dir/*.out"; \
13+
fi; \
14+
done;
15+
16+
clean:
17+
find -name '*.out' -execdir $(RM) '{}' \;
18+
find -name '*.gb' -execdir $(RM) '{}' \;
19+
$(RM) tests.log

regression/ansi-c/gcc_attributes10/main.c renamed to regression/goto-gcc/gcc_attributes10/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
int array##__LINE__[(condition) ? 1 : -1]
33

44
#ifdef __GNUC__
5+
#ifndef __clang__
56

67
int x __attribute__ ((__vector_size__ (12), __may_alias__));
78
int x2 __attribute__ ((__may_alias__));
@@ -11,6 +12,7 @@ STATIC_ASSERT(sizeof(x)==12);
1112
STATIC_ASSERT(sizeof(x2)==sizeof(int));
1213
STATIC_ASSERT(sizeof(x3)==12);
1314

15+
#endif
1416
#endif
1517

1618
int main(int argc, char* argv[])

regression/ansi-c/gcc_attributes6/main.c renamed to regression/goto-gcc/gcc_attributes6/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
int some_array[(condition) ? 1 : -1];
33

44
#ifdef __GNUC__
5+
#ifndef __clang__
56

67
// gcc allows mode attributes on enums, but clang doesn't
78
enum E_QI { E_QI } __attribute__ ((__mode__ (__QI__)));
@@ -27,6 +28,7 @@ STATIC_ASSERT(sizeof(enum E_DI __attribute__ ((__mode__ (__DI__))))==8);
2728
// from fftw3.h -- this means TF on the underlying floats
2829
typedef _Complex float __attribute__ ((__mode__ (TC))) fftwq_complex;
2930

31+
#endif
3032
#endif
3133

3234
int main()

regression/ansi-c/gcc_builtins1/main.c renamed to regression/goto-gcc/gcc_builtins1/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
enum { E01 = __builtin_isinf(1.0) };
44
enum { E02 = __builtin_isnan(1.0) };
55
enum { E03 = __builtin_isinf(__builtin_inf()) };
6+
#ifndef __clang__
67
enum { E04 = __builtin_signbit(-1.0) }; // clang doesn't do this one
8+
#endif
79
enum { E05 = __builtin_classify_type(1) };
810
enum { E06 = sizeof(int) };
911
enum { E07 = __alignof__(int) };

regression/ansi-c/gcc_builtins4/main.c renamed to regression/goto-gcc/gcc_builtins4/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ union { int i; } u;
77
enum { Econst } e;
88
int a[10];
99

10+
#ifndef __clang__
1011
STATIC_ASSERT(__builtin_classify_type(*(void *)0)==0);
1112
STATIC_ASSERT(__builtin_classify_type((int)0)==1);
1213
STATIC_ASSERT(__builtin_classify_type(e)==3);
@@ -19,6 +20,7 @@ STATIC_ASSERT(__builtin_classify_type((_Complex double)0)==9);
1920
STATIC_ASSERT(__builtin_classify_type(s)==12);
2021
STATIC_ASSERT(__builtin_classify_type(u)==13);
2122
STATIC_ASSERT(__builtin_classify_type(a)==14);
23+
#endif
2224

2325
#endif
2426

0 commit comments

Comments
 (0)