summaryrefslogtreecommitdiff
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-01 14:24:51 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-02 02:27:05 +0200
commit4fb8741c4670965eaf1f78d6122c6bdfdf1f3358 (patch)
tree10351c603702234b4544f7faf6a9d91ad969f0c2 /tests/fate-run.sh
parentdb9fd78bd7562da7cd5d91f268b28b78a1824d03 (diff)
downloadffmpeg-4fb8741c4670965eaf1f78d6122c6bdfdf1f3358.tar.gz
tests/fate-run: Allow to skip file checksums for lavf_image
The output file (even the filesize) of the recently added EXR tests depends on the endianness; therefore checksums of these files must not be part of the ref file. Therefore this commit adds an option (unused for now) to disable these checksums on a per-test basis. In order to avoid having to check twice, the checksum and the filesize info are moved to immediately follow one another; this results into updates to the ref files of all lavf-image tests. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 525e8e5499..4008bcbc16 100755
--- a/tests/fate-run.sh
+++ b/tests/fate-run.sh
@@ -362,6 +362,7 @@ lavf_container_fate()
}
lavf_image(){
+ no_file_checksums="$3"
nb_frames=13
t="${test#lavf-}"
outdir="tests/data/images/$t"
@@ -374,9 +375,11 @@ lavf_image(){
done
fi
run_avconv $DEC_OPTS -f image2 -c:v pgmyuv -i $raw_src $1 "$ENC_OPTS -metadata title=lavftest" -vf scale -frames $nb_frames -y -qscale 10 $target_path/$file
- do_md5sum ${outdir}/02.$t
+ if [ -z "$no_file_checksums" ]; then
+ do_md5sum ${outdir}/02.$t
+ echo $(wc -c ${outdir}/02.$t)
+ fi
do_avconv_crc $file -auto_conversion_filters $DEC_OPTS $2 -i $target_path/$file $2
- echo $(wc -c ${outdir}/02.$t)
}
lavf_image2pipe(){