scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit e93ff5c78be3f9964494e9663b66957b92614e3e
parent 991b29b122f43163c769510dedb5d2d7ed0c5bb2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 30 Mar 2022 14:44:33 +0200

tests/cc: Fix compose functionality

Compose.sh is a shell script that generates the source code
needed to execute all the tests in only one binary. This is
needed in platforms where it is not possible to execute
shell scripts and Makefiles.

Diffstat:
Mtests/cc/execute/.gitignore | 3+++
Rtests/cc/execute/0115-null-comparision.c -> tests/cc/execute/0115-null_comparision.c | 0
Rtests/cc/execute/0133-ftn-ptr.c -> tests/cc/execute/0133-ftn_ptr.c | 0
Rtests/cc/execute/0137-int-cast.c -> tests/cc/execute/0137-int_cast.c | 0
Rtests/cc/execute/0139-ptr-ary.c -> tests/cc/execute/0139-ptr_ary.c | 0
Rtests/cc/execute/0140-int-fold.c -> tests/cc/execute/0140-int_fold.c | 0
Rtests/cc/execute/0141-int-iden.c -> tests/cc/execute/0141-int_iden.c | 0
Rtests/cc/execute/0142-char-const.c -> tests/cc/execute/0142-char_const.c | 0
Rtests/cc/execute/0143-int-const.c -> tests/cc/execute/0143-int_const.c | 0
Rtests/cc/execute/0144-long-const.c -> tests/cc/execute/0144-long_const.c | 0
Rtests/cc/execute/0145-llong-const.c -> tests/cc/execute/0145-llong_const.c | 0
Rtests/cc/execute/0147-intern-cpp.c -> tests/cc/execute/0147-intern_cpp.c | 0
Rtests/cc/execute/0148-cpp-string.c -> tests/cc/execute/0148-cpp_string.c | 0
Rtests/cc/execute/0153-cpp-string.c -> tests/cc/execute/0153-cpp_string.c | 0
Rtests/cc/execute/0154-if-defined.c -> tests/cc/execute/0154-if_defined.c | 0
Rtests/cc/execute/0155-struct-compl.c -> tests/cc/execute/0155-struct_compl.c | 0
Rtests/cc/execute/0160-cpp-if.c -> tests/cc/execute/0160-cpp_if.c | 0
Rtests/cc/execute/0184-esc-macro.c -> tests/cc/execute/0184-esc_macro.c | 0
Rtests/cc/execute/0185-esc-macro2.c -> tests/cc/execute/0185-esc_macro2.c | 0
Rtests/cc/execute/0186-dec-ary.c -> tests/cc/execute/0186-dec_ary.c | 0
Rtests/cc/execute/0187-zero-struct.c -> tests/cc/execute/0187-zero_struct.c | 0
Rtests/cc/execute/0188-multi-string.c -> tests/cc/execute/0188-multi_string.c | 0
Rtests/cc/execute/0190-enum-ary.c -> tests/cc/execute/0190-enum_ary.c | 0
Rtests/cc/execute/0191-ary-addr.c -> tests/cc/execute/0191-ary_addr.c | 0
Mtests/cc/execute/Makefile | 2+-
Mtests/cc/execute/scc-tests.lst | 46+++++++++++++++++++++++-----------------------
26 files changed, 27 insertions(+), 24 deletions(-)

diff --git a/tests/cc/execute/.gitignore b/tests/cc/execute/.gitignore @@ -1 +1,4 @@ test.log +tests.h +tmp_*.c +a.out diff --git a/tests/cc/execute/0115-null-comparision.c b/tests/cc/execute/0115-null_comparision.c diff --git a/tests/cc/execute/0133-ftn-ptr.c b/tests/cc/execute/0133-ftn_ptr.c diff --git a/tests/cc/execute/0137-int-cast.c b/tests/cc/execute/0137-int_cast.c diff --git a/tests/cc/execute/0139-ptr-ary.c b/tests/cc/execute/0139-ptr_ary.c diff --git a/tests/cc/execute/0140-int-fold.c b/tests/cc/execute/0140-int_fold.c diff --git a/tests/cc/execute/0141-int-iden.c b/tests/cc/execute/0141-int_iden.c diff --git a/tests/cc/execute/0142-char-const.c b/tests/cc/execute/0142-char_const.c diff --git a/tests/cc/execute/0143-int-const.c b/tests/cc/execute/0143-int_const.c diff --git a/tests/cc/execute/0144-long-const.c b/tests/cc/execute/0144-long_const.c diff --git a/tests/cc/execute/0145-llong-const.c b/tests/cc/execute/0145-llong_const.c diff --git a/tests/cc/execute/0147-intern-cpp.c b/tests/cc/execute/0147-intern_cpp.c diff --git a/tests/cc/execute/0148-cpp-string.c b/tests/cc/execute/0148-cpp_string.c diff --git a/tests/cc/execute/0153-cpp-string.c b/tests/cc/execute/0153-cpp_string.c diff --git a/tests/cc/execute/0154-if-defined.c b/tests/cc/execute/0154-if_defined.c diff --git a/tests/cc/execute/0155-struct-compl.c b/tests/cc/execute/0155-struct_compl.c diff --git a/tests/cc/execute/0160-cpp-if.c b/tests/cc/execute/0160-cpp_if.c diff --git a/tests/cc/execute/0184-esc-macro.c b/tests/cc/execute/0184-esc_macro.c diff --git a/tests/cc/execute/0185-esc-macro2.c b/tests/cc/execute/0185-esc_macro2.c diff --git a/tests/cc/execute/0186-dec-ary.c b/tests/cc/execute/0186-dec_ary.c diff --git a/tests/cc/execute/0187-zero-struct.c b/tests/cc/execute/0187-zero_struct.c diff --git a/tests/cc/execute/0188-multi-string.c b/tests/cc/execute/0188-multi_string.c diff --git a/tests/cc/execute/0190-enum-ary.c b/tests/cc/execute/0190-enum_ary.c diff --git a/tests/cc/execute/0191-ary-addr.c b/tests/cc/execute/0191-ary_addr.c diff --git a/tests/cc/execute/Makefile b/tests/cc/execute/Makefile @@ -10,4 +10,4 @@ tests: @CC=$(CC) ./chktest.sh scc-tests.lst clean: - rm -f a.out *.s *.s *.as *.o *.ir *.qbe *core* test.log + rm -f a.out *.s *.s *.as *.o *.ir *.qbe *core* test.log tests.h tmp_*.c diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -105,7 +105,7 @@ 0112-cond.c 0113-externredecl.c 0114-shortassig.c [TODO] -0115-null-comparision.c +0115-null_comparision.c 0116-floatcmp.c [TODO] 0117-pointarith.c 0118-voidmain.c @@ -123,34 +123,34 @@ 0130-mulpars.c 0131-hello.c 0132-forward.c -0133-ftn-ptr.c +0133-ftn_ptr.c 0134-arith.c 0135-unary.c 0136-if.c -0137-int-cast.c [TODO] +0137-int_cast.c [TODO] 0138-namespace.c -0139-ptr-ary.c -0140-int-fold.c -0141-int-iden.c -0142-char-const.c -0143-int-const.c -0144-long-const.c -0145-llong-const.c +0139-ptr_ary.c +0140-int_fold.c +0141-int_iden.c +0142-char_const.c +0143-int_const.c +0144-long_const.c +0145-llong_const.c 0146-ifdef.c -0147-intern-cpp.c -0148-cpp-string.c +0147-intern_cpp.c +0148-cpp_string.c 0149-define.c 0150-define.c 0151-vararg.c [TODO] 0152-cat.c [TODO] -0153-cpp-string.c -0154-if-defined.c -0155-struct-compl.c [TODO] +0153-cpp_string.c +0154-if_defined.c +0155-struct_compl.c [TODO] 0156-duff2.c 0157-list.c 0158-ternary.c 0159-typedef.c -0160-cpp-if.c +0160-cpp_if.c 0161-struct.c [TODO] 0162-array.c 0163-array.c @@ -174,14 +174,14 @@ 0181-stringize.c [TODO] 0182-voidcast.c 0183-negenum.c -0184-esc-macro.c -0185-esc-macro2.c -0186-dec-ary.c -0187-zero-struct.c -0188-multi-string.c [TODO] +0184-esc_macro.c +0185-esc_macro2.c +0186-dec_ary.c +0187-zero_struct.c +0188-multi_string.c [TODO] 0189-cpp.c [TODO] -0190-enum-ary.c -0191-ary-addr.c +0190-enum_ary.c +0191-ary_addr.c 0192-ptrcmp.c 0193-incomplete.c 0194-vararg.c