Changeset 5e44ac2 for tests/test.py
- Timestamp:
- Aug 15, 2018, 1:58: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:
- 90cac45
- Parents:
- d7d63e5 (diff), 7bd4cc9 (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
tests/test.py
rd7d63e5 r5e44ac2 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 parser.add_argument('--install', help='Run all tests based on installed binaries or tree binaries', type=yes_no, default='no') 88 89 parser.add_argument('--arch', help='Test for specific architecture', type=str, default='') 89 90 parser.add_argument('--dry-run', help='Don\'t run the tests, only output the commands', action='store_true') … … 97 98 parser.add_argument('tests', metavar='test', type=str, nargs='*', help='a list of tests to run') 98 99 99 options = parser.parse_args() 100 try: 101 options = parser.parse_args() 102 except: 103 print('ERROR: invalid arguments', file=sys.stderr) 104 parser.print_help(sys.stderr) 105 sys.exit(1) 100 106 101 107 # script must have at least some tests to run or be listing … … 166 172 167 173 if retcode == 0: 174 fixoutput(out_file) 168 175 if settings.generating : 169 176 # if we are ounly generating the output we still need to check that the test actually exists … … 176 183 else : 177 184 # fetch return code and error from the diff command 178 fixoutput(out_file)179 185 retcode, error = diff(cmp_file, out_file) 180 186 … … 285 291 286 292 else : 293 # check the build configuration works 294 settings.validate() 295 287 296 options.jobs, forceJobs = jobCount( options, tests ) 288 297 settings.updateMakeCmd(forceJobs, options.jobs)
Note:
See TracChangeset
for help on using the changeset viewer.