- Timestamp:
- Nov 16, 2018, 4:01:14 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 3d99498
- Parents:
- 80228a7
- Location:
- tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r80228a7 r1e995d6 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Wed Nov 7 12:03:29201814 ## Update Count : 5913 ## Last Modified On : Fri Nov 16 15:29:54 2018 14 ## Update Count : 65 15 15 ############################################################################### 16 16 … … 38 38 39 39 AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS} 40 41 40 CC = @CFACC@ 42 41 … … 44 43 45 44 .PHONY: list .validate 46 .INTERMEDIATE: .validate .validate.c 45 .INTERMEDIATE: .validate .validate.cfa 47 46 EXTRA_PROGRAMS = fstream_test avl_test # build but do not install 48 47 … … 64 63 @+${TEST_PY} --list ${concurrent} 65 64 66 .validate: .validate.c 67 $(C OMPILE) .validate.c-fsyntax-only -Wall -Wextra -Werror65 .validate: .validate.cfa 66 $(CFACOMPILE) .validate.cfa -fsyntax-only -Wall -Wextra -Werror 68 67 69 .validate.c: 68 .validate.cfa: 69 @echo "int main() { return 0; }" > ${@} 70 71 dummy_hack.c: 70 72 @echo "int main() { return 0; }" > ${@} 71 73 … … 76 78 77 79 # implicit rule so not all test require a rule 78 % : %.c $(C C)79 $(PRETTY_PATH) $(C OMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})80 % : %.c $(CFACC) 81 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 80 82 81 declarationSpecifier: declarationSpecifier.cfa $(CC)82 $(PRETTY_PATH) $(C OMPILE) -CFA -XCFA -p$(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})83 % : %.cfa $(CFACC) 84 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 83 85 84 gccExtensions : gccExtensions.cfa $(CC)85 $(PRETTY_PATH) $(C OMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})86 declarationSpecifier: declarationSpecifier.cfa $(CFACC) 87 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 86 88 87 extension : extension.cfa $(CC)88 $(PRETTY_PATH) $(C OMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})89 gccExtensions : gccExtensions.cfa $(CFACC) 90 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 89 91 90 attributes : attributes.cfa $(CC)91 $(PRETTY_PATH) $(C OMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})92 extension : extension.cfa $(CFACC) 93 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 92 94 93 functions: functions.cfa $(CC)94 $(PRETTY_PATH) $(C OMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})95 attributes : attributes.cfa $(CFACC) 96 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 95 97 96 KRfunctions : KRfunctions.cfa $(CC)97 $(PRETTY_PATH) $(C OMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})98 functions: functions.cfa $(CFACC) 99 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 98 100 99 sched-ext-parse : sched-ext-parse.c $(CC)100 $(PRETTY_PATH) $(C OMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})101 KRfunctions : KRfunctions.cfa $(CFACC) 102 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 101 103 102 gmp : gmp.cfa $(CC) 103 $(PRETTY_PATH) $(COMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 104 sched-ext-parse : sched-ext-parse.c $(CFACC) 105 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 106 107 gmp : gmp.cfa $(CFACC) 108 $(PRETTY_PATH) $(CFACOMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 104 109 105 110 #builtins 106 builtins/sync: builtins/sync.c $(C C)107 $(PRETTY_PATH) $(C OMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only111 builtins/sync: builtins/sync.c $(CFACC) 112 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only 108 113 109 114 #------------------------------------------------------------------------------ 110 115 111 116 #To make errors path independent we need to cd into the correct directories 112 completeTypeError : completeTypeError.cfa $(C C)113 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})117 completeTypeError : completeTypeError.cfa $(CFACC) 118 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 114 119 115 typedefRedef-ERR1: typedefRedef.cfa $(C C)116 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})120 typedefRedef-ERR1: typedefRedef.cfa $(CFACC) 121 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 117 122 118 alloc-ERROR: alloc.cfa $(C C)119 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})123 alloc-ERROR: alloc.cfa $(CFACC) 124 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 120 125 121 fallthrough-ERROR: fallthrough.cfa $(C C)122 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})126 fallthrough-ERROR: fallthrough.cfa $(CFACC) 127 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 123 128 124 nested-types-ERR1: nested-types.cfa $(C C)125 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})129 nested-types-ERR1: nested-types.cfa $(CFACC) 130 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 126 131 127 nested-types-ERR2: nested-types.cfa $(C C)128 $(PRETTY_PATH) $(C OMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})132 nested-types-ERR2: nested-types.cfa $(CFACC) 133 $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 129 134 130 135 # Constructor/destructor tests 131 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(C C)132 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})136 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CFACC) 137 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 133 138 134 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(C C)135 $(PRETTY_PATH) $(C OMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})139 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CFACC) 140 $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 136 141 137 raii/memberCtors-ERR1: raii/memberCtors.c $(C C)138 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})142 raii/memberCtors-ERR1: raii/memberCtors.c $(CFACC) 143 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 139 144 140 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(C C)141 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})145 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CFACC) 146 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 142 147 143 148 # Warnings 144 warnings/self-assignment: warnings/self-assignment.c $(C C)145 $(PRETTY_PATH) $(C OMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only149 warnings/self-assignment: warnings/self-assignment.c $(CFACC) 150 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only -
tests/Makefile.in
r80228a7 r1e995d6 624 624 625 625 .PHONY: list .validate 626 .INTERMEDIATE: .validate .validate.c 626 .INTERMEDIATE: .validate .validate.cfa 627 627 628 628 #---------------------------------------------------------------------------------------------------------------- … … 639 639 @+${TEST_PY} --list ${concurrent} 640 640 641 .validate: .validate.c 642 $(COMPILE) .validate.c -fsyntax-only -Wall -Wextra -Werror 643 644 .validate.c: 641 .validate: .validate.cfa 642 $(CFACOMPILE) .validate.cfa -fsyntax-only -Wall -Wextra -Werror 643 644 .validate.cfa: 645 @echo "int main() { return 0; }" > ${@} 646 647 dummy_hack.c: 645 648 @echo "int main() { return 0; }" > ${@} 646 649 … … 651 654 652 655 # implicit rule so not all test require a rule 653 % : %.c $(CC) 654 $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 655 656 declarationSpecifier: declarationSpecifier.cfa $(CC) 657 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 658 659 gccExtensions : gccExtensions.cfa $(CC) 660 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 661 662 extension : extension.cfa $(CC) 663 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 664 665 attributes : attributes.cfa $(CC) 666 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 667 668 functions: functions.cfa $(CC) 669 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 670 671 KRfunctions : KRfunctions.cfa $(CC) 672 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 673 674 sched-ext-parse : sched-ext-parse.c $(CC) 675 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 676 677 gmp : gmp.cfa $(CC) 678 $(PRETTY_PATH) $(COMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 656 % : %.c $(CFACC) 657 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 658 659 % : %.cfa $(CFACC) 660 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 661 662 declarationSpecifier: declarationSpecifier.cfa $(CFACC) 663 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 664 665 gccExtensions : gccExtensions.cfa $(CFACC) 666 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 667 668 extension : extension.cfa $(CFACC) 669 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 670 671 attributes : attributes.cfa $(CFACC) 672 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 673 674 functions: functions.cfa $(CFACC) 675 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 676 677 KRfunctions : KRfunctions.cfa $(CFACC) 678 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 679 680 sched-ext-parse : sched-ext-parse.c $(CFACC) 681 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 682 683 gmp : gmp.cfa $(CFACC) 684 $(PRETTY_PATH) $(CFACOMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 679 685 680 686 #builtins 681 builtins/sync: builtins/sync.c $(C C)682 $(PRETTY_PATH) $(C OMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only687 builtins/sync: builtins/sync.c $(CFACC) 688 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only 683 689 684 690 #------------------------------------------------------------------------------ 685 691 686 692 #To make errors path independent we need to cd into the correct directories 687 completeTypeError : completeTypeError.cfa $(C C)688 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})689 690 typedefRedef-ERR1: typedefRedef.cfa $(C C)691 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})692 693 alloc-ERROR: alloc.cfa $(C C)694 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})695 696 fallthrough-ERROR: fallthrough.cfa $(C C)697 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})698 699 nested-types-ERR1: nested-types.cfa $(C C)700 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})701 702 nested-types-ERR2: nested-types.cfa $(C C)703 $(PRETTY_PATH) $(C OMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})693 completeTypeError : completeTypeError.cfa $(CFACC) 694 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 695 696 typedefRedef-ERR1: typedefRedef.cfa $(CFACC) 697 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 698 699 alloc-ERROR: alloc.cfa $(CFACC) 700 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 701 702 fallthrough-ERROR: fallthrough.cfa $(CFACC) 703 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 704 705 nested-types-ERR1: nested-types.cfa $(CFACC) 706 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 707 708 nested-types-ERR2: nested-types.cfa $(CFACC) 709 $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 704 710 705 711 # Constructor/destructor tests 706 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(C C)707 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})708 709 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(C C)710 $(PRETTY_PATH) $(C OMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})711 712 raii/memberCtors-ERR1: raii/memberCtors.c $(C C)713 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})714 715 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(C C)716 $(PRETTY_PATH) $(C OMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})712 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CFACC) 713 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 714 715 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CFACC) 716 $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 717 718 raii/memberCtors-ERR1: raii/memberCtors.c $(CFACC) 719 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 720 721 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CFACC) 722 $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 717 723 718 724 # Warnings 719 warnings/self-assignment: warnings/self-assignment.c $(C C)720 $(PRETTY_PATH) $(C OMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only725 warnings/self-assignment: warnings/self-assignment.c $(CFACC) 726 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only 721 727 722 728 # Tell versions [3.59,3.63) of GNU make to not export all variables.
Note: See TracChangeset
for help on using the changeset viewer.