Changeset 5e44ac2 for tests/test.py


Ignore:
Timestamp:
Aug 15, 2018, 1:58:02 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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.
Message:

Merge branch 'master' into demangler

File:
1 moved

Legend:

Unmodified
Added
Removed
  • tests/test.py

    rd7d63e5 r5e44ac2  
    8585        # create a parser with the arguments for the tests script
    8686        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')
    8889        parser.add_argument('--arch', help='Test for specific architecture', type=str, default='')
    8990        parser.add_argument('--dry-run', help='Don\'t run the tests, only output the commands', action='store_true')
     
    9798        parser.add_argument('tests', metavar='test', type=str, nargs='*', help='a list of tests to run')
    9899
    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)
    100106
    101107        # script must have at least some tests to run or be listing
     
    166172
    167173        if retcode == 0:
     174                fixoutput(out_file)
    168175                if settings.generating :
    169176                        # if we are ounly generating the output we still need to check that the test actually exists
     
    176183                else :
    177184                        # fetch return code and error from the diff command
    178                         fixoutput(out_file)
    179185                        retcode, error = diff(cmp_file, out_file)
    180186
     
    285291
    286292        else :
     293                # check the build configuration works
     294                settings.validate()
     295
    287296                options.jobs, forceJobs = jobCount( options, tests )
    288297                settings.updateMakeCmd(forceJobs, options.jobs)
Note: See TracChangeset for help on using the changeset viewer.