Changeset 2051


Ignore:
Timestamp:
Jun 25, 2008 3:05:21 PM (11 years ago)
Author:
nanang
Message:

Ticket #543: added mod pesq & mod media playrec to runall.py, also added some more wav files

Location:
pjproject/trunk/pjsip-apps/src/test-pjsua
Files:
4 added
2 edited

Legend:

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

    r2036 r2051  
    2121# WAV similarity calculator 
    2222COMPARE_WAV_EXE = "tools/cmp_wav.exe" 
     23 
     24# Threshold to declare degradation is too high when result is lower than this value 
     25COMPARE_THRESHOLD = 2 
    2326 
    2427# UserData 
     
    8790        # Evaluate the similarity value 
    8891        sim_val = mo_sim_val.group(1) 
    89         if (sim_val > 0): 
     92        if (sim_val >= COMPARE_THRESHOLD): 
    9093                endpt.trace("WAV similarity = " + sim_val) 
    9194        else: 
    92                 raise TestError("Degraded WAV heavily distorted") 
     95                raise TestError("WAV degraded heavily, similarity = " + sim_val) 
    9396 
    9497 
  • pjproject/trunk/pjsip-apps/src/test-pjsua/runall.py

    r2033 r2051  
    1313excluded_tests = [ "svn", 
    1414                   "pyc", 
    15                    #"scripts-call/150_srtp_1_2", 
    16                    "scripts-call/150_srtp_2_1" 
     15                   "scripts-call/150_srtp_2_1",                         # SRTP optional 'cannot' call SRTP mandatory 
     16                   "scripts-media-playrec/100_resample_lf_8_11.py",     # related to clock-rate 11 kHz problem 
     17                   "scripts-media-playrec/100_resample_lf_8_22.py",     # related to clock-rate 22 kHz problem 
     18                   "scripts-media-playrec/100_resample_lf_11"           # related to clock-rate 11 kHz problem 
    1719                   ] 
    1820 
     
    3234for f in os.listdir("scripts-sendto"): 
    3335    tests.append("mod_sendto.py scripts-sendto/" + f) 
     36 
     37# Add mod_media_playrec tests 
     38for f in os.listdir("scripts-media-playrec"): 
     39    tests.append("mod_media_playrec.py scripts-media-playrec/" + f) 
     40 
     41# Add mod_pesq tests 
     42for f in os.listdir("scripts-pesq"): 
     43    tests.append("mod_pesq.py scripts-pesq/" + f) 
    3444 
    3545# Filter-out excluded tests 
Note: See TracChangeset for help on using the changeset viewer.