Ignore:
Timestamp:
Jun 16, 2008 1:04:44 PM (16 years ago)
Author:
bennylp
Message:

More ticket #543: updated automated tests to run on Unix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/test-pjsua/runall.py

    r2025 r2028  
    22import os 
    33import sys 
     4 
     5# Usage: 
     6#  runall.py [test-to-resume] 
     7 
    48 
    59# Initialize test list 
     
    2933    tests = [t for t in tests if t.find(pat)==-1] 
    3034 
     35# Resume test? 
     36resume_script="" 
     37if len(sys.argv) > 1: 
     38    if sys.argv[1][0]=='-' or sys.argv[1][0]=='/': 
     39        print "Usage:" 
     40        print "  runall.py [RESUME]" 
     41        print "where" 
     42        print "  RESUME is string/substring to specify where to resume tests." 
     43        print "  If this argument is omited, tests will start from the beginning." 
     44        sys.exit(0) 
     45    resume_script=sys.argv[1] 
     46 
     47 
    3148# Now run the tests 
    3249for t in tests: 
     50        if resume_script!="" and t.find(resume_script)==-1: 
     51            print "Skipping " + t +".." 
     52            continue 
     53        resume_script="" 
    3354        cmdline = "python run.py " + t 
    3455        print "Running " + cmdline 
Note: See TracChangeset for help on using the changeset viewer.