Changeset 2068


Ignore:
Timestamp:
Jun 26, 2008 10:17:33 PM (16 years ago)
Author:
bennylp
Message:

Added test duration in runall.py output, and add public ICE in excluded tests

File:
1 edited

Legend:

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

    r2059 r2068  
    22import os 
    33import sys 
     4import time 
    45 
    56# Usage: 
     
    1415                   "pyc", 
    1516                   "scripts-call/150_srtp_2_1",                         # SRTP optional 'cannot' call SRTP mandatory 
     17                   "scripts-call/301_ice_public_a.py",                  # Unreliable, proxy returns 408 sometimes 
    1618                   "scripts-call/301_ice_public_b.py",                  # Doesn't work because OpenSER modifies SDP 
    1719                   "scripts-media-playrec/100_resample_lf_8_11.py",     # related to clock-rate 11 kHz problem 
     
    6870        resume_script="" 
    6971        cmdline = "python run.py " + t 
    70         print "Running " + cmdline 
     72        t0 = time.time() 
     73        print "Running " + cmdline + "...", 
    7174        ret = os.system(cmdline + " > output.log") 
     75        t1 = time.time() 
    7276        if ret != 0: 
    73                 print "Test " + t + " failed." 
     77                dur = int(t1 - t0) 
     78                print " failed!! [" + str(dur) + "s]" 
    7479                print "Please see 'output.log' for the test log." 
    7580                sys.exit(1) 
     81        else: 
     82                dur = int(t1 - t0) 
     83                print " ok [" + str(dur) + "s]" 
    7684 
    7785print "All tests completed successfully" 
Note: See TracChangeset for help on using the changeset viewer.