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

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2051 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjsip-apps/src/test-pjsua/mod_media_playrec.py b/pjsip-apps/src/test-pjsua/mod_media_playrec.py
index 30f2f6d..2fe260d 100644
--- a/pjsip-apps/src/test-pjsua/mod_media_playrec.py
+++ b/pjsip-apps/src/test-pjsua/mod_media_playrec.py
@@ -21,6 +21,9 @@
 # WAV similarity calculator
 COMPARE_WAV_EXE = "tools/cmp_wav.exe"
 
+# Threshold to declare degradation is too high when result is lower than this value
+COMPARE_THRESHOLD = 2
+
 # UserData
 class mod_media_playrec_user_data:
 	input_filename = ""
@@ -86,10 +89,10 @@
 
 	# Evaluate the similarity value
 	sim_val = mo_sim_val.group(1)
-	if (sim_val > 0):
+	if (sim_val >= COMPARE_THRESHOLD):
 		endpt.trace("WAV similarity = " + sim_val)
 	else:
-		raise TestError("Degraded WAV heavily distorted")
+		raise TestError("WAV degraded heavily, similarity = " + sim_val)
 
 
 # Here where it all comes together