Changeset b1848a0


Ignore:
Timestamp:
Aug 15, 2016, 4:13:49 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
7880579, 7b1bfc5
Parents:
e82aa9df (diff), 6603c1d (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' of plg2:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/test.py

    re82aa9df rb1848a0  
    9999                return False
    100100
    101 # find the test data for a given test name
    102 def filterTests(testname) :
    103         found = [test for test in allTests if test.name == testname]
    104         return (found[0] if len(found) == 1 else Test(testname, testname) )
    105 
    106101################################################################################
    107102#               running test functions
     
    141136                if not dry_run and fileContainsOnly(out_file, "make: *** No rule to make target `%s'.  Stop." % test.name) :
    142137                        retcode = 1;
    143                         error = "\t\tNo make target for test %s!" % test
     138                        error = "\t\tNo make target for test %s!" % test.name
    144139                        sh("rm %s" % out_file, False)
    145140
     
    252247        # already existing tests and create new info for the new tests
    253248        if options.regenerate_expected :
    254                 tests = map(filterTests, options.tests)
     249                for testname in options.tests :
     250                        if testname.endswith(".c") or testname.endswith(".cc") or testname.endswith(".cpp") :
     251                                print('ERROR: "%s", tests are not allowed to end with a C/C++/CFA extension, ignoring it' % testname, file=sys.stderr)
     252                        else :
     253                                found = [test for test in allTests if test.name == testname]
     254                                tests.append( found[0] if len(found) == 1 else Test(testname, testname) )
    255255
    256256        else :
Note: See TracChangeset for help on using the changeset viewer.