Changeset 28582b2
- Timestamp:
- Aug 6, 2018, 2:05:02 PM (7 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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- ff593a3
- Parents:
- 37fe352
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
driver/cfa.cc
r37fe352 r28582b2 355 355 libdir = string(CFA_LIBDIR) + arch + config; 356 356 if( !dirExists(libdir) ) { 357 cerr << argv[0] << " internal error, cannot find prelude directory." << endl; 358 cerr << "Was looking for " << libdir << endl; 357 cerr << argv[0] << " internal error, configuration " << config << " not installed." << endl; 359 358 libdir = string(CFA_LIBDIR) + arch + "nolib"; 360 359 } -
tests/Makefile.am
r37fe352 r28582b2 37 37 CC = @CFACC@ 38 38 39 .PHONY : list 39 .PHONY: list .validate 40 .INTERMEDIATE: .validate .validate.c 40 41 EXTRA_PROGRAMS = fstream_test avl_test # build but do not install 41 42 … … 55 56 list : 56 57 @+${TEST_PY} --list ${concurrent} 58 59 .validate: .validate.c 60 @$(COMPILE) .validate.c -fsyntax-only 61 62 .validate.c: 63 @echo "int main() { return 0; }" > ${@} 57 64 58 65 concurrency : -
tests/Makefile.in
r37fe352 r28582b2 316 316 317 317 .SUFFIXES: 318 .SUFFIXES: .c .o .obj 318 .SUFFIXES: .c .o .obj .validate 319 319 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 320 320 @for dep in $?; do \ … … 614 614 615 615 616 .PHONY : list 616 .PHONY: list .validate 617 .INTERMEDIATE: .validate .validate.c 617 618 618 619 all-local : … … 627 628 list : 628 629 @+${TEST_PY} --list ${concurrent} 630 631 .validate: .validate.c 632 @$(COMPILE) .validate.c -fsyntax-only 633 634 .validate.c: 635 @echo "int main() { return 0; }" > ${@} 629 636 630 637 concurrency : -
tests/pybin/settings.py
r37fe352 r28582b2 3 3 import os 4 4 import sys 5 import tools 5 6 6 7 try : … … 85 86 86 87 make = "make" if not force else ("make -j%i" % jobs) 88 89 def validate(): 90 make_ret, _ = tools.make( ".validate", error_file = ".validate.err", redirects = "2> /dev/null 1> /dev/null", ) 91 if make_ret != 0: 92 with open (".validate.err", "r") as myfile: 93 error=myfile.read() 94 print('ERROR: Invalid configuration', file=sys.stderr) 95 print(" verify returned : \n%s" % error, file=sys.stderr) 96 tools.rm("%s/.validate.err" % BUILDDIR) 97 sys.exit(1) 98 99 tools.rm("%s/.validate.err" % BUILDDIR) -
tests/pybin/tools.py
r37fe352 r28582b2 52 52 # Remove 1 or more files silently 53 53 def rm( files ): 54 try: 54 if isinstance( files, basestring ): 55 sh("rm -f %s > /dev/null 2>&1" % files ) 56 else: 55 57 for file in files: 56 58 sh("rm -f %s > /dev/null 2>&1" % file ) 57 except TypeError:58 sh("rm -f %s > /dev/null 2>&1" % files )59 59 60 60 # Create 1 or more directory 61 61 def mkdir( files ): 62 try: 62 if isinstance( files, basestring ): 63 sh("mkdir -p %s" % os.path.dirname(files) ) 64 else: 63 65 for file in files: 64 66 sh("mkdir -p %s" % os.path.dirname(file) ) 65 except TypeError: 66 sh("mkdir -p %s" % os.path.dirname(files) ) 67 67 68 68 69 def chdir( dest = __main__.__file__ ): -
tests/test.py
r37fe352 r28582b2 85 85 # create a parser with the arguments for the tests script 86 86 parser = argparse.ArgumentParser(description='Script which runs cforall tests') 87 parser.add_argument('--debug', help='Run all tests in debug or release', type=yes_no, default=' no')87 parser.add_argument('--debug', help='Run all tests in debug or release', type=yes_no, default='yes') 88 88 parser.add_argument('--arch', help='Test for specific architecture', type=str, default='') 89 89 parser.add_argument('--dry-run', help='Don\'t run the tests, only output the commands', action='store_true') … … 285 285 286 286 else : 287 # check the build configuration works 288 settings.validate() 289 287 290 options.jobs, forceJobs = jobCount( options, tests ) 288 291 settings.updateMakeCmd(forceJobs, options.jobs)
Note: See TracChangeset
for help on using the changeset viewer.