Changeset f803a75
- Timestamp:
- May 10, 2017, 3:52:27 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- ad1770be
- Parents:
- e325958
- Location:
- src/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/Makefile.am
re325958 rf803a75 30 30 # applies to both programs 31 31 EXTRA_FLAGS = 32 BUILD_FLAGS = -g -Wall -Wno-unused-function @CFA_FLAGS@ ${EXTRA_FLAGS}32 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ ${EXTRA_FLAGS} 33 33 TEST_FLAGS = $(if $(test), 2> .err/${@}.log, ) 34 34 CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS} -
src/tests/Makefile.in
re325958 rf803a75 234 234 # applies to both programs 235 235 EXTRA_FLAGS = 236 BUILD_FLAGS = -g -Wall -Wno-unused-function @CFA_FLAGS@ ${EXTRA_FLAGS}236 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ ${EXTRA_FLAGS} 237 237 TEST_FLAGS = $(if $(test), 2> .err/${@}.log, ) 238 238 fstream_test_SOURCES = fstream_test.c -
src/tests/test.py
re325958 rf803a75 28 28 sh('echo "void ?{}(int*a,int b){}int main(){return 0;}" > .dummy.c') 29 29 ret, out = sh("make .dummy -s", print2stdout=True) 30 30 31 31 if ret != 0: 32 32 print("Failed to identify architecture:") … … 161 161 162 162 # build, skipping to next test on error 163 make_ret, _ = sh("""%s test=yes EXTRA_FLAGS=" -quiet%s" %s 2> %s 1> /dev/null""" % (make_cmd, options, test.name, out_file), dry_run)163 make_ret, _ = sh("""%s test=yes EXTRA_FLAGS="%s" %s 2> %s 1> /dev/null""" % (make_cmd, options, test.name, out_file), dry_run) 164 164 165 165 # if the make command succeds continue otherwise skip to diff … … 192 192 # fetch return code and error from the diff command 193 193 retcode, error = diff(".expect/%s.txt" % test.path, ".out/%s.log" % test.name, dry_run) 194 194 195 195 # clean the executable 196 196 sh("rm -f %s > /dev/null 2>&1" % test.name, dry_run) … … 269 269 if __name__ == "__main__": 270 270 #always run from same folder 271 chdir() 272 271 chdir() 272 273 273 # parse the command line arguments 274 274 options = getOptions()
Note: See TracChangeset
for help on using the changeset viewer.