summaryrefslogtreecommitdiffstats
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2019-03-14 14:19:03 -0300
committerJames Almer <jamrial@gmail.com>2019-03-14 14:19:03 -0300
commit29929fc8e2449d2db8bd144b2badc8d1e6347412 (patch)
tree873fc9615b24b887b9bdbafc944d1e7502d1f9cc /tests/fate-run.sh
parentd0c43e32427ec1efac364be0987a6aafa695527f (diff)
parenteb8a8115994434b548523cf0bca6a4a74784e79c (diff)
downloadffmpeg-streaming-29929fc8e2449d2db8bd144b2badc8d1e6347412.zip
ffmpeg-streaming-29929fc8e2449d2db8bd144b2badc8d1e6347412.tar.gz
Merge commit 'eb8a8115994434b548523cf0bca6a4a74784e79c'
* commit 'eb8a8115994434b548523cf0bca6a4a74784e79c': tests: Convert audio-only lavf tests to non-legacy test scripts Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 2d5dbf2..e65184b 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -247,6 +247,7 @@ stream_remux(){
# functions above and below that should be refactored.
ffmpeg2="$target_exec ${target_path}/ffmpeg"
raw_src="${target_path}/tests/vsynth1/%02d.pgm"
+pcm_src="${target_path}/tests/data/asynth1.sw"
crcfile="tests/data/$test.lavf.crc"
target_crcfile="${target_path}/$crcfile"
@@ -281,6 +282,14 @@ do_avconv_crc(){
echo "$f $(cat $crcfile)"
}
+lavf_audio(){
+ t="${test#lavf-}"
+ outdir="tests/data/lavf"
+ file=${outdir}/lavf.$t
+ do_avconv $file $DEC_OPTS $1 -ar 44100 -f s16le -i $pcm_src "$ENC_OPTS -metadata title=lavftest" -t 1 -qscale 10 $2
+ do_avconv_crc $file $DEC_OPTS $3 -i $target_path/$file
+}
+
lavf_image2pipe(){
t="${test#lavf-}"
t="${t%pipe}"
OpenPOWER on IntegriCloud