summaryrefslogtreecommitdiff
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2017-06-16 22:08:02 +0200
committerMarton Balint <cus@passwd.hu>2017-06-18 23:19:48 +0200
commit7ed6f9168b7fd13915e19b5cb1ed599c1a2d6d31 (patch)
tree60a400650ebfe05324e6d4061178b571f1c8f74d /tests/fate-run.sh
parent478a1949d92002969786d1422f9f860d8d6456de (diff)
fate: use do_md5sum instead of the md5 protocol for most md5 fate tests
The md5 protocol has no seek support, but some tests use seeks. This changes the fate tests to actually create the output files and calculate the md5 on the written files, which also makes the tests independent of the size of the output buffers and output buffering in general. A new md5pipe fate test method is also introduced to keep the old functionality for tests where using a non-seekable output was intentional, and matroska md5 tests are changed to use that. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 931150b5a6..9aa9a22395 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -142,10 +142,17 @@ crc(){
ffmpeg "$@" -f crc -
}
-md5(){
+md5pipe(){
ffmpeg "$@" md5:
}
+md5(){
+ encfile="${outdir}/${test}.out"
+ cleanfiles="$cleanfiles $encfile"
+ ffmpeg "$@" $encfile
+ do_md5sum $encfile | awk '{print $1}'
+}
+
pcm(){
ffmpeg "$@" -vn -f s16le -
}