Changeset ebcd82b for src/tests/test.py


Ignore:
Timestamp:
Jun 17, 2016, 4:53:09 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, 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:
0534c3c
Parents:
f6ed7fd
Message:

implemented some of the expected outputs, fixed printing in tests.py, added dummy main to limits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/test.py

    rf6ed7fd rebcd82b  
    6767
    6868        if generate :
    69                 print( "Regenerate tests for: ", end="" )
    70                 print( ", ".join( tests ) )
     69                print( "Regenerate tests for: " )
    7170
    7271        failed = False;
    7372        for t in tests:
    74                 if not generate :
    75                         print("%20s  " % t, end="")
     73                print("%20s  " % t, end="")
    7674                sys.stdout.flush()
    7775                test_failed = run_test_instance(t, generate, dry_run)
     
    8078                if not generate :
    8179                        print("FAILED" if test_failed else "PASSED")
     80                else :
     81                        print( "Done" )
    8282
    8383        sh('make clean > /dev/null 2>&1', dry_run)
    84 
    85         if generate :
    86                 print( "Done" )
    8784
    8885        return 0 if failed else 1
Note: See TracChangeset for help on using the changeset viewer.