Changeset f7d3215
- Timestamp:
- Aug 20, 2018, 2:29:35 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:
- 72b3605
- Parents:
- 69efc321
- Location:
- tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r69efc321 rf7d3215 38 38 CC = @CFACC@ 39 39 40 PRETTY_PATH=cd ${srcdir} && 41 40 42 .PHONY: list .validate 41 43 .INTERMEDIATE: .validate .validate.c … … 71 73 # implicit rule so not all test require a rule 72 74 % : %.c $(CC) 73 $( COMPILE) $(abspath ${<}) -o ${@}75 $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 74 76 75 77 declarationSpecifier: declarationSpecifier.c $(CC) 76 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}78 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 77 79 78 80 gccExtensions : gccExtensions.c $(CC) 79 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}81 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 80 82 81 83 extension : extension.c $(CC) 82 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}84 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 83 85 84 86 attributes : attributes.c $(CC) 85 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}87 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 86 88 87 89 functions: functions.c $(CC) 88 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}90 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 89 91 90 92 KRfunctions : KRfunctions.c $(CC) 91 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}93 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 92 94 93 95 sched-ext-parse : sched-ext-parse.c $(CC) 94 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}96 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 95 97 96 98 gmp : gmp.c $(CC) 97 $( COMPILE) -lgmp $(abspath ${<}) -o ${@}99 $(PRETTY_PATH) $(COMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 98 100 101 #builtins 102 builtins/sync: builtins/sync.c $(CC) 103 $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only 104 105 #------------------------------------------------------------------------------ 106 #To make errors path independent we need to cd into the correct directories 99 107 completeTypeError : completeTypeError.c $(CC) 100 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}108 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 101 109 102 110 typedefRedef-ERR1: typedefRedef.c $(CC) 103 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}111 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 104 112 105 113 alloc-ERROR: alloc.c $(CC) 106 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}114 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 107 115 108 116 fallthrough-ERROR: fallthrough.c $(CC) 109 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}117 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 110 118 111 119 nested-types-ERR1: nested-types.c $(CC) 112 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}120 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 113 121 114 122 nested-types-ERR2: nested-types.c $(CC) 115 $( COMPILE) -DERR2 $(abspath ${<}) -o ${@}123 $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 116 124 117 125 # Constructor/destructor tests 118 126 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC) 119 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}127 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 120 128 121 129 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC) 122 $( COMPILE) -DERR2 $(abspath ${<}) -o ${@}130 $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 123 131 124 132 raii/memberCtors-ERR1: raii/memberCtors.c $(CC) 125 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}133 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 126 134 127 135 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC) 128 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}136 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 129 137 130 138 # Warnings 131 139 warnings/self-assignment: warnings/self-assignment.c $(CC) 132 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only 133 134 #builtins 135 builtins/sync: builtins/sync.c $(CC) 136 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only 140 $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only -
tests/Makefile.in
r69efc321 rf7d3215 307 307 -quiet @CFA_FLAGS@ -DIN_DIR="${srcdir}/.in/" ${DEBUG_FLAGS} \ 308 308 ${INSTALL_FLAGS} ${ARCH_FLAGS} 309 PRETTY_PATH = cd ${srcdir} && 309 310 fstream_test_SOURCES = fstream_test.c 310 311 avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c … … 638 639 # implicit rule so not all test require a rule 639 640 % : %.c $(CC) 640 $( COMPILE) $(abspath ${<}) -o ${@}641 $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 641 642 642 643 declarationSpecifier: declarationSpecifier.c $(CC) 643 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}644 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 644 645 645 646 gccExtensions : gccExtensions.c $(CC) 646 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}647 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 647 648 648 649 extension : extension.c $(CC) 649 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}650 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 650 651 651 652 attributes : attributes.c $(CC) 652 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}653 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 653 654 654 655 functions: functions.c $(CC) 655 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}656 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 656 657 657 658 KRfunctions : KRfunctions.c $(CC) 658 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}659 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 659 660 660 661 sched-ext-parse : sched-ext-parse.c $(CC) 661 $( COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}662 $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 662 663 663 664 gmp : gmp.c $(CC) 664 $(COMPILE) -lgmp $(abspath ${<}) -o ${@} 665 665 $(PRETTY_PATH) $(COMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 666 667 #builtins 668 builtins/sync: builtins/sync.c $(CC) 669 $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only 670 671 #------------------------------------------------------------------------------ 672 #To make errors path independent we need to cd into the correct directories 666 673 completeTypeError : completeTypeError.c $(CC) 667 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}674 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 668 675 669 676 typedefRedef-ERR1: typedefRedef.c $(CC) 670 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}677 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 671 678 672 679 alloc-ERROR: alloc.c $(CC) 673 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}680 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 674 681 675 682 fallthrough-ERROR: fallthrough.c $(CC) 676 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}683 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 677 684 678 685 nested-types-ERR1: nested-types.c $(CC) 679 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}686 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 680 687 681 688 nested-types-ERR2: nested-types.c $(CC) 682 $( COMPILE) -DERR2 $(abspath ${<}) -o ${@}689 $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 683 690 684 691 # Constructor/destructor tests 685 692 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC) 686 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}693 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 687 694 688 695 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC) 689 $( COMPILE) -DERR2 $(abspath ${<}) -o ${@}696 $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 690 697 691 698 raii/memberCtors-ERR1: raii/memberCtors.c $(CC) 692 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}699 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 693 700 694 701 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC) 695 $( COMPILE) -DERR1 $(abspath ${<}) -o ${@}702 $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 696 703 697 704 # Warnings 698 705 warnings/self-assignment: warnings/self-assignment.c $(CC) 699 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only 700 701 #builtins 702 builtins/sync: builtins/sync.c $(CC) 703 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only 706 $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only 704 707 705 708 # Tell versions [3.59,3.63) of GNU make to not export all variables. -
tests/test.py
r69efc321 rf7d3215 174 174 175 175 if retcode == 0: 176 fixoutput(out_file)176 # fixoutput(out_file) 177 177 if settings.generating : 178 178 # if we are ounly generating the output we still need to check that the test actually exists
Note: See TracChangeset
for help on using the changeset viewer.