diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 2015-08-21 14:30:05 +0200 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 2015-08-21 14:30:05 +0200 |
commit | c6567a3f0a16050fd04469fdcc7a575f81c0c8f4 (patch) | |
tree | 8c1dfa91baed0bd325a8691d7ccddd8f8d802be2 /test/regression/Makefile | |
parent | 806872b5a7c8dc4e69e7b36bd49019af2871c70e (diff) | |
download | compcert-c6567a3f0a16050fd04469fdcc7a575f81c0c8f4.tar.gz compcert-c6567a3f0a16050fd04469fdcc7a575f81c0c8f4.zip |
test/regression: test packedstruct1 only if unaligned accesses are supported.
Also: exit on error when a test fails.
Diffstat (limited to 'test/regression/Makefile')
-rw-r--r-- | test/regression/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/regression/Makefile b/test/regression/Makefile index 00c80047..2f70c63a 100644 --- a/test/regression/Makefile +++ b/test/regression/Makefile @@ -23,9 +23,18 @@ TESTS=int32 int64 floats floats-basics \ TESTS_COMP=attribs1 bitfields1 bitfields2 bitfields3 bitfields4 \ bitfields5 bitfields6 bitfields7 bitfields8 \ - builtins-$(ARCH) packedstruct1 packedstruct2 alignas \ + builtins-$(ARCH) packedstruct2 alignas \ varargs1 varargs2 sections alias +# packedstruct1 makes unaligned memory accesses + +ifeq ($(ARCH),powerpc) +TESTS_COMP+=packedstruct1 +endif +ifeq ($(ARCH),ia32) +TESTS_COMP+=packedstruct1 +endif + # Can run, both in compiled mode and in interpreter mode, # but produce processor-dependent results, so no reference output in Results @@ -66,7 +75,7 @@ test: @for i in $(TESTS) $(TESTS_COMP); do \ if ./$$i.compcert | cmp -s - Results/$$i; \ then echo "$$i: passed"; \ - else echo "$$i: FAILED"; \ + else echo "$$i: FAILED"; exit 2; \ fi; \ done @for i in $(TESTS); do \ |