- Timestamp:
- Mar 27, 2019, 11:09:15 AM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 86fb8f2
- Parents:
- 1bb2488
- Location:
- tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r1bb2488 r2b10f95 48 48 49 49 avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa 50 # automake doesn't know we still need C rules so pretend like we have a C program51 _dummy_hack_SOURCES = .dummy_hack.c 50 # automake doesn't know we still need C/CPP rules so pretend like we have a C program 51 _dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp 52 52 53 53 #---------------------------------------------------------------------------------------------------------------- … … 74 74 @echo "int main() { return 0; }" > ${@} 75 75 76 .dummy_hackxx.cpp: 77 @echo "int bar() { return 0; }" > ${@} 78 76 79 concurrency : 77 80 @+${TEST_PY} --debug=${debug} --install=${installed} -Iconcurrent … … 82 85 % : %.cfa $(CFACC) 83 86 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 87 88 % : %.cpp 89 $(PRETTY_PATH) $(CXXCOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 84 90 85 91 declarationSpecifier: declarationSpecifier.cfa $(CFACC) -
tests/Makefile.in
r1bb2488 r2b10f95 107 107 CONFIG_CLEAN_FILES = config.py 108 108 CONFIG_CLEAN_VPATH_FILES = test.py 109 am__dummy_hack_OBJECTS = .dummy_hack.$(OBJEXT) 109 am__dummy_hack_OBJECTS = .dummy_hack.$(OBJEXT) .dummy_hackxx.$(OBJEXT) 110 110 _dummy_hack_OBJECTS = $(am__dummy_hack_OBJECTS) 111 111 _dummy_hack_LDADD = $(LDADD) … … 155 155 am__v_CCLD_0 = @echo " CCLD " $@; 156 156 am__v_CCLD_1 = 157 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 158 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) 159 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ 160 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \ 161 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 162 $(AM_CXXFLAGS) $(CXXFLAGS) 163 AM_V_CXX = $(am__v_CXX_@AM_V@) 164 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@) 165 am__v_CXX_0 = @echo " CXX " $@; 166 am__v_CXX_1 = 167 CXXLD = $(CXX) 168 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \ 169 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \ 170 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 171 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@) 172 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@) 173 am__v_CXXLD_0 = @echo " CXXLD " $@; 174 am__v_CXXLD_1 = 157 175 SOURCES = $(_dummy_hack_SOURCES) $(avl_test_SOURCES) 158 176 DIST_SOURCES = $(_dummy_hack_SOURCES) $(avl_test_SOURCES) … … 368 386 PRETTY_PATH = cd ${srcdir} && 369 387 avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa 370 # automake doesn't know we still need C rules so pretend like we have a C program371 _dummy_hack_SOURCES = .dummy_hack.c 388 # automake doesn't know we still need C/CPP rules so pretend like we have a C program 389 _dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp 372 390 all: all-am 373 391 374 392 .SUFFIXES: 375 .SUFFIXES: .c .cfa . dummy_hack.lo .o .obj .validate393 .SUFFIXES: .c .cfa .cpp .dummy_hack .dummy_hackxx .lo .o .obj .validate 376 394 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/src/cfa.make $(am__configure_deps) 377 395 @for dep in $?; do \ … … 409 427 .dummy_hack$(EXEEXT): $(_dummy_hack_OBJECTS) $(_dummy_hack_DEPENDENCIES) $(EXTRA__dummy_hack_DEPENDENCIES) 410 428 @rm -f .dummy_hack$(EXEEXT) 411 $(AM_V_C CLD)$(LINK) $(_dummy_hack_OBJECTS) $(_dummy_hack_LDADD) $(LIBS)429 $(AM_V_CXXLD)$(CXXLINK) $(_dummy_hack_OBJECTS) $(_dummy_hack_LDADD) $(LIBS) 412 430 avltree/$(am__dirstamp): 413 431 @$(MKDIR_P) avltree … … 443 461 444 462 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/.dummy_hack.Po@am__quote@ 463 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/.dummy_hackxx.Po@am__quote@ 445 464 446 465 .c.o: … … 467 486 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 468 487 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< 488 489 .cpp.o: 490 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ 491 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 492 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 493 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 494 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 495 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< 496 497 .cpp.obj: 498 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\ 499 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\ 500 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po 501 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ 502 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 503 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 504 505 .cpp.lo: 506 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 507 @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 508 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo 509 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 510 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 511 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $< 469 512 470 513 mostlyclean-libtool: … … 717 760 @echo "int main() { return 0; }" > ${@} 718 761 762 .dummy_hackxx.cpp: 763 @echo "int bar() { return 0; }" > ${@} 764 719 765 concurrency : 720 766 @+${TEST_PY} --debug=${debug} --install=${installed} -Iconcurrent … … 726 772 $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 727 773 774 % : %.cpp 775 $(PRETTY_PATH) $(CXXCOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) 776 728 777 declarationSpecifier: declarationSpecifier.cfa $(CFACC) 729 778 $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@}) -
tests/pybin/tools.py
r1bb2488 r2b10f95 37 37 # otherwise create a pipe and run the desired command 38 38 else : 39 proc = subprocess.run( 40 cmd, 41 stdout=None if print2stdout else PIPE, 42 stderr=STDOUT, 43 shell=True, 44 timeout=settings.timeout.single if timeout else None 45 ) 46 return proc.returncode, proc.stdout 39 try: 40 proc = subprocess.run( 41 cmd, 42 stdout=None if print2stdout else PIPE, 43 stderr=STDOUT, 44 shell=True, 45 timeout=settings.timeout.single if timeout else None 46 ) 47 return proc.returncode, proc.stdout.decode("utf-8") if proc.stdout else None 48 except subprocess.TimeoutExpired: 49 return 124, str(None) 47 50 48 51 def is_ascii(fname): -
tests/test.py
r1bb2488 r2b10f95 174 174 175 175 ret, info = core_info(exe_file) 176 error = error + info 176 error = error + info if error else info 177 177 178 178 … … 198 198 out = sys.stdout 199 199 if error : 200 text = text + "\n"+ error200 text = text + '\n' + error 201 201 out = sys.stderr 202 202 … … 288 288 settings.update_make_cmd(forceJobs, options.jobs) 289 289 290 print('%s (%s:%s) on %i cores' % ( 291 'Regenerate tests' if settings.generating else 'Running', 290 print('%s %i tests on %i cores (%s:%s)' % ( 291 'Regenerating' if settings.generating else 'Running', 292 len(tests), 293 options.jobs, 292 294 settings.arch.string, 293 settings.debug.string, 294 options.jobs 295 settings.debug.string 295 296 )) 296 297
Note: See TracChangeset
for help on using the changeset viewer.