Changeset 7009b9b
- Timestamp:
- Sep 12, 2019, 3:56:27 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 15f9c8e
- Parents:
- 31d8f4d
- Location:
- tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r31d8f4d r7009b9b 89 89 90 90 # Use for all tests, make sure the path are correct and all flags are added 91 CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) -c$(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g'))91 CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g')) 92 92 93 93 # Use for tests that either generate an executable, print directly to stdout or the make command is expected to fail … … 99 99 #---------------------------------------------------------------------------------------------------------------- 100 100 101 is_ascii = $(shell file ) 102 101 103 # implicit rule so not all test require a rule 102 104 % : %.cfa $(CFACCBIN) 103 $(CFACOMPILETEST) - o $(abspath ${@}).o105 $(CFACOMPILETEST) -c -o $(abspath ${@}).o 104 106 $(CFACC) $(abspath ${@}).o -o $(abspath ${@}) 105 107 108 # @ if [[ "$(shell file $(abspath ${@}).o)" == *"ASCII text"* ]]; then echo "mv $(abspath ${@}).o $(abspath ${@})"; mv $(abspath ${@}).o $(abspath ${@}); else echo "$(CFACC) $(abspath ${@}).o -o $(abspath ${@});"; $(CFACC) $(abspath ${@}).o -o $(abspath ${@}); fi 109 110 declarationSpecifier gccExtensions extension attributes functions KRfunctions : % : %.cfa $(CFACCBIN) 111 $(CFACOMPILETEST) -CFA -XCFA -p -o $(abspath ${@}).o 112 mv $(abspath ${@}).o $(abspath ${@}) 106 113 107 114 % : %.cpp -
tests/Makefile.in
r31d8f4d r7009b9b 404 404 405 405 # Use for all tests, make sure the path are correct and all flags are added 406 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) -c$(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g'))406 CFACOMPILETEST = $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g')) 407 407 408 408 # Use for tests that either generate an executable, print directly to stdout or the make command is expected to fail … … 411 411 # Use for tests where the make command is expecte to succeed but the expected.txt should be compared to stderr 412 412 CFATEST_STDERR = $(CFACOMPILETEST) 2> $(abspath ${@}) 413 414 #---------------------------------------------------------------------------------------------------------------- 415 is_ascii = $(shell file ) 413 416 414 417 #------------------------------------------------------------------------------ … … 805 808 @+${TEST_PY} --debug=${debug} --install=${installed} -Iconcurrent 806 809 807 #----------------------------------------------------------------------------------------------------------------808 809 810 # implicit rule so not all test require a rule 810 811 % : %.cfa $(CFACCBIN) 811 $(CFACOMPILETEST) - o $(abspath ${@}).o812 $(CFACOMPILETEST) -c -o $(abspath ${@}).o 812 813 $(CFACC) $(abspath ${@}).o -o $(abspath ${@}) 814 815 # @ if [[ "$(shell file $(abspath ${@}).o)" == *"ASCII text"* ]]; then echo "mv $(abspath ${@}).o $(abspath ${@})"; mv $(abspath ${@}).o $(abspath ${@}); else echo "$(CFACC) $(abspath ${@}).o -o $(abspath ${@});"; $(CFACC) $(abspath ${@}).o -o $(abspath ${@}); fi 816 817 declarationSpecifier gccExtensions extension attributes functions KRfunctions : % : %.cfa $(CFACCBIN) 818 $(CFACOMPILETEST) -CFA -XCFA -p -o $(abspath ${@}).o 819 mv $(abspath ${@}).o $(abspath ${@}) 813 820 814 821 % : %.cpp
Note: See TracChangeset
for help on using the changeset viewer.