Rename seek_test.sh --> seek-regression.sh for greater consistency.
authorDiego Biurrun <diego@biurrun.de>
Sun, 29 Mar 2009 17:22:07 +0000 (17:22 +0000)
committerDiego Biurrun <diego@biurrun.de>
Sun, 29 Mar 2009 17:22:07 +0000 (17:22 +0000)
Originally committed as revision 18220 to svn://svn.ffmpeg.org/ffmpeg/trunk

Makefile
tests/seek-regression.sh [new file with mode: 0755]
tests/seek_test.sh [deleted file]

index e6d2ed9..2a48a59 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -275,7 +275,7 @@ $(LAVF_TESTS):
        $(SRC_PATH)/tests/regression.sh $@ lavf tests/vsynth1 b "$(TARGET_EXEC)" "$(TARGET_PATH)"
 
 seektest: codectest libavtest tests/seek_test$(EXESUF)
-       $(SRC_PATH)/tests/seek_test.sh $(SEEK_REFFILE) "$(TARGET_EXEC)" "$(TARGET_PATH)"
+       $(SRC_PATH)/tests/seek-regression.sh $(SEEK_REFFILE) "$(TARGET_EXEC)" "$(TARGET_PATH)"
 
 servertest: ffserver$(EXESUF) tests/vsynth1/00.pgm tests/asynth1.sw
        @echo
diff --git a/tests/seek-regression.sh b/tests/seek-regression.sh
new file mode 100755 (executable)
index 0000000..3074d70
--- /dev/null
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+target_exec=$2
+target_path=$3
+
+datadir="tests/data"
+
+logfile="$datadir/seek.regression"
+reffile="$1"
+
+list=`grep '^tests/data/[ab]-' "$reffile"`
+rm -f $logfile
+for i in $list ; do
+    echo ---------------- >> $logfile
+    echo $i >> $logfile
+    $target_exec $target_path/tests/seek_test $target_path/$i >> $logfile
+done
+
+if diff -u -w "$reffile" "$logfile" ; then
+    echo
+    echo seek regression test: success
+    exit 0
+else
+    echo
+    echo seek regression test: error
+    exit 1
+fi
diff --git a/tests/seek_test.sh b/tests/seek_test.sh
deleted file mode 100755 (executable)
index 3074d70..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-
-LC_ALL=C
-export LC_ALL
-
-target_exec=$2
-target_path=$3
-
-datadir="tests/data"
-
-logfile="$datadir/seek.regression"
-reffile="$1"
-
-list=`grep '^tests/data/[ab]-' "$reffile"`
-rm -f $logfile
-for i in $list ; do
-    echo ---------------- >> $logfile
-    echo $i >> $logfile
-    $target_exec $target_path/tests/seek_test $target_path/$i >> $logfile
-done
-
-if diff -u -w "$reffile" "$logfile" ; then
-    echo
-    echo seek regression test: success
-    exit 0
-else
-    echo
-    echo seek regression test: error
-    exit 1
-fi