diff options
author | Diego Biurrun <diego@biurrun.de> | 2019-02-02 15:49:53 +0300 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2019-02-16 20:15:22 +0300 |
commit | eb8a8115994434b548523cf0bca6a4a74784e79c (patch) | |
tree | 76c5ec1ede8cb64d118d770d885f95b668a475f8 /tests/fate-run.sh | |
parent | a70eac7a9b193e8434b5bed90bd72aa4cb688363 (diff) |
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-x | tests/fate-run.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 0221e5c1dc..b20e013d6b 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}" |