- Timestamp:
- Sep 21, 2020, 11:37:28 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 7a80113
- Parents:
- 31a6f38 (diff), ace2e92 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tests
- Files:
-
- 5 added
- 3 edited
- 1 moved
-
Makefile.am (modified) (5 diffs)
-
concurrent/.expect/join.txt (added)
-
concurrent/.expect/joinerror.sed (moved) (moved from tests/.expect/smart-pointers.txt )
-
concurrent/join.cfa (added)
-
concurrent/joinerror.cfa (added)
-
linking/.expect/linkerror.txt (added)
-
linking/linkerror.cfa (added)
-
pybin/tools.py (modified) (1 diff)
-
test.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r31a6f38 r08f3ad3 38 38 # since automake doesn't have support for CFA we have to 39 39 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 40 -fdebug-prefix-map=$(abspath ${abs_srcdir})= \ 41 -fdebug-prefix-map=/tmp= \ 40 42 -g \ 41 43 -Wall \ … … 58 60 # adjusted CC but without the actual distcc call 59 61 CFACCLOCAL = $(if $(DISTCC_CFA_PATH),$(DISTCC_CFA_PATH) ${ARCH_FLAGS},$(TARGET_CFA) ${DEBUG_FLAGS} ${ARCH_FLAGS}) 62 CFACCLINK = $(CFACCLOCAL) $(if $(test), 2> $(test), ) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) 60 63 61 64 PRETTY_PATH=mkdir -p $(dir $(abspath ${@})) && cd ${srcdir} && … … 110 113 % : %.cfa $(CFACCBIN) 111 114 $(CFACOMPILETEST) -c -o $(abspath ${@}).o 112 $(CFACCLOCAL) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) $(abspath ${@}).o -o $(abspath ${@}) 115 $(CFACCLINK) ${@}.o -o $(abspath ${@}) 116 rm $(abspath ${@}).o 113 117 114 118 # implicit rule for c++ test … … 137 141 # CUSTOM TARGET 138 142 #------------------------------------------------------------------------------ 143 # tests that just validate syntax 144 expression : expression.cfa $(CFACCBIN) 145 $(CFACOMPILETEST) -c -fsyntax-only 2> $(abspath ${@}) 146 139 147 # expected failures 140 148 # use custom target since they require a custom define and custom dependencies … … 170 178 $(CFACCLOCAL) $($(shell echo "${@}_FLAGSLD" | sed 's/-\|\//_/g')) $(abspath ${@}).o -o $(abspath ${@}) 171 179 180 # Linking tests 181 # Meta tests to make sure we see linking errors (can't compile with -O2 since it may multiply number of calls) 182 linking/linkerror : linking/linkerror.cfa $(CFACCBIN) 183 $(CFACOMPILETEST) -O0 -c -o $(abspath ${@}).o 184 $(CFACCLINK) -O0 ${@}.o -o $(abspath ${@}) 185 rm $(abspath ${@}).o 186 172 187 #------------------------------------------------------------------------------ 173 188 # Other targets -
tests/pybin/tools.py
r31a6f38 r08f3ad3 120 120 return None 121 121 122 file = open(file, mode )122 file = open(file, mode, encoding="latin-1") # use latin-1 so all chars mean something. 123 123 exitstack.push(file) 124 124 return file -
tests/test.py
r31a6f38 r08f3ad3 207 207 else: 208 208 if os.stat(out_file).st_size < 1048576: 209 with open (out_file, "r" ) as myfile:209 with open (out_file, "r", encoding='latin-1') as myfile: # use latin-1 so all chars mean something. 210 210 error = myfile.read() 211 211 else:
Note:
See TracChangeset
for help on using the changeset viewer.