Ignore:
Timestamp:
Aug 17, 2009 8:29:47 AM (15 years ago)
Author:
bennylp
Message:

Misc (#915): several fixes on the python unit tests on Linux:

  • added Makefile for cmp_wav and modified the test script
  • test 999: MESSAGE without body is now allowed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/tests/pjsua/mod_media_playrec.py

    r2083 r2884  
    2121 
    2222# WAV similarity calculator 
    23 COMPARE_WAV_EXE = "tools/cmp_wav.exe" 
     23COMPARE_WAV_EXE = "" 
     24if sys.platform.find("win32")!=-1: 
     25    COMPARE_WAV_EXE = "tools/cmp_wav.exe" 
     26    G_INUNIX = False 
     27else: 
     28    COMPARE_WAV_EXE = "tools/cmp_wav" 
     29    G_INUNIX = True 
     30 
    2431 
    2532# Threshold to declare degradation is too high when result is lower than this value 
     
    7986        fullcmd = COMPARE_WAV_EXE + " " + input_filename + " " + output_filename + " " + "3000" 
    8087        endpt.trace("Popen " + fullcmd) 
    81         cmp_proc = subprocess.Popen(fullcmd, stdout=subprocess.PIPE, universal_newlines=True) 
     88        cmp_proc = subprocess.Popen(fullcmd, shell=G_INUNIX, stdout=subprocess.PIPE, universal_newlines=True) 
    8289 
    8390        # Parse similarity ouput 
Note: See TracChangeset for help on using the changeset viewer.