[asterisk-commits] trunk r23154 - /trunk/pbx/ael/ael-test/runtests

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Apr 28 08:51:32 MST 2006


Author: rizzo
Date: Fri Apr 28 10:51:31 2006
New Revision: 23154

URL: http://svn.digium.com/view/asterisk?rev=23154&view=rev
Log:
make the 'runtest' filter less strict on line numbers.


Modified:
    trunk/pbx/ael/ael-test/runtests

Modified: trunk/pbx/ael/ael-test/runtests
URL: http://svn.digium.com/view/asterisk/trunk/pbx/ael/ael-test/runtests?rev=23154&r1=23153&r2=23154&view=diff
==============================================================================
--- trunk/pbx/ael/ael-test/runtests (original)
+++ trunk/pbx/ael/ael-test/runtests Fri Apr 28 10:51:31 2006
@@ -1,17 +1,23 @@
 #!/bin/bash
 ORIG=`mktemp /tmp/mytest.XXXXXX`
 NEW=`mktemp /tmp/mytest.XXXXXX`
+
+do_filter() {
+	sed 's/line:[0-9]*//; /^Executed.*/d; s/column=[0-9]*/ /; s/Cols: [0-9]*-[0-9]*/___/'
+}
+
 for i in ael-test*; do
 	echo -n Test: $i..................
 	(cd $i; ../../../../utils/aelparse -n -d | grep -v -i 'seconds' > ../res.$i)
-	sed 's/line:[0-9]*//; /^Executed.*/d' < res.$i > $NEW
-	sed 's/line:[0-9]*//; /^Executed.*/d' < ref.$i > $ORIG
+	do_filter < res.$i > $NEW
+	do_filter < ref.$i > $ORIG
 	if (diff -q $NEW $ORIG > /dev/null 2>&1 ) then
 		echo PASSED
 		rm res.$i
 	else
 		echo %%%%%%FAILED%%%%%%
-		diff -u ref.$i res.$i
+		# diff -u ref.$i res.$i
+		diff -u $ORIG $NEW
 	fi
 
 done



More information about the asterisk-commits mailing list