[FFmpeg-devel] [PATCH] tools: add update-ffprobe-tests

Stefano Sabatini stefasab at gmail.com
Mon Jun 9 12:29:40 CEST 2014


Help contributors to update ffprobe tests in an automated fashion.
---
 tools/update-ffprobe-tests | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100755 tools/update-ffprobe-tests

diff --git a/tools/update-ffprobe-tests b/tools/update-ffprobe-tests
new file mode 100755
index 0000000..e2dc4d5
--- /dev/null
+++ b/tools/update-ffprobe-tests
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+ffprobe_tests=$(make fate-list | grep ffprobe)
+
+for test in $ffprobe_tests; do
+    format=${test##*_}
+    ffprobe -show_streams -show_packets -show_format -show_frames -bitexact tests/data/ffprobe-test.nut -of $format > tests/ref/fate/ffprobe_$format
+done
-- 
1.8.3.2



More information about the ffmpeg-devel mailing list