diff options
author | Marton Balint <cus@passwd.hu> | 2022-03-30 00:55:14 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2022-04-10 20:12:23 +0200 |
commit | 80e997b0818a36b1b28e39d745c466d01038aa1f (patch) | |
tree | 8db337e1f9d1b518812beff2e842442c40c2d2d3 /tests/refcmp-metadata.awk | |
parent | 072101bd52f7f092ee976f4e6e41c19812ad32fd (diff) | |
download | ffmpeg-80e997b0818a36b1b28e39d745c466d01038aa1f.tar.gz |
fate/filter-refcmp-*: make refcmp_metadata fail on empty or truncated input
On empty input the awk script was always successful which caused the
filter-refcmp tests to always succeed.
Also fix the command lines for refcmp_metadata compare function because it
needs auto conversion filters, and update reference of test
filter-refcmp-psnr-rgb because it was missed in
a7fc78c1a638a32c3695c06f727774c740d675c2 but was never noticed due to the
original issue...
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'tests/refcmp-metadata.awk')
-rw-r--r-- | tests/refcmp-metadata.awk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/refcmp-metadata.awk b/tests/refcmp-metadata.awk index fa21aad0e0..850aaac5a3 100644 --- a/tests/refcmp-metadata.awk +++ b/tests/refcmp-metadata.awk @@ -50,13 +50,16 @@ BEGIN { } END { + result = result && (NR == ref_nr); if (result) { for (i = 1; i <= ref_nr; i++) print ref_lines[i]; } else { for (i = 1; i <= NR; i++) print cmp_lines[i]; - if (NR != ref_nr) + if (NR == 0) + print "[refcmp] no input" > "/dev/stderr"; + else if (NR != ref_nr) print "[refcmp] lines: " NR " != " ref_nr > "/dev/stderr"; if (delta_max >= fuzz) print "[refcmp] delta_max: " delta_max " >= " fuzz > "/dev/stderr"; |