summaryrefslogtreecommitdiffstats
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2019-02-02 13:49:53 +0100
committerDiego Biurrun <diego@biurrun.de>2019-02-16 18:15:22 +0100
commiteb8a8115994434b548523cf0bca6a4a74784e79c (patch)
tree76c5ec1ede8cb64d118d770d885f95b668a475f8 /tests/fate-run.sh
parenta70eac7a9b193e8434b5bed90bd72aa4cb688363 (diff)
downloadffmpeg-streaming-eb8a8115994434b548523cf0bca6a4a74784e79c.zip
ffmpeg-streaming-eb8a8115994434b548523cf0bca6a4a74784e79c.tar.gz
tests: Convert audio-only lavf tests to non-legacy test scripts
Rename some tests in the process for consistency and simplicity.
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 0221e5c..b20e013 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -156,6 +156,7 @@ enc_dec(){
# functions above and below that should be refactored.
avconv2="$target_exec ${target_path}/avconv"
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"
@@ -188,6 +189,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 -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