Changeset 2884 for pjproject


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
Location:
pjproject/trunk/tests/pjsua
Files:
1 added
3 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 
  • pjproject/trunk/tests/pjsua/scripts-sendto/999_message_no_body.py

    r2086 r2884  
    33import inc_sdp as sdp 
    44 
    5 # There's some report that incoming MESSAGE without body will crash pjsua 
     5# Incoming MESSAGE without body is now accepted 
    66# 
    77complete_msg = \ 
     
    2121 
    2222sendto_cfg = sip.SendtoCfg( "empty MESSAGE", "--null-audio --auto-answer 200",  
    23                             "", 488, complete_msg=complete_msg) 
     23                            "", 200, complete_msg=complete_msg) 
    2424 
  • pjproject/trunk/tests/pjsua/tools

    • Property svn:ignore
      •  

        old new  
        11pe* 
         2cmp_wav 
Note: See TracChangeset for help on using the changeset viewer.