Diego Biurrun
a6a750c7ef
tests: Move all test programs to a subdirectory
9 years ago
Luca Barbato
2fb02ecfd1
fate: Reduce the number of frames used to test video filters
...
Use 5 frames for video filter tests and a single one for the
pixelformat tests.
Greatly reduces the test duration without reducing coverage.
10 years ago
Timothy Gu
358b7ec309
fate: Fix test name for pixfmts tests
...
The last pixel format gets leaked as `$test` further down the pipeline.
See for example https://fate.libav.org/x86_32-netbsd-clang-no-inline-asm/20150420020104
Note the odd test names like “yuvj444p.”
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Timothy Gu
3b1e35d46d
fate: Omit the results if the test passed
...
The FATE server does not report this information anyway and omitting
it makes the successful run send much less data.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Anton Khirnov
96a06dbaf2
FATE: add support for testing hwaccels
10 years ago
Clément Bœsch
a982c5d74f
tests: drop bc dependency
...
We already have a dependency on awk and bc is sometimes not found in the
base system.
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Diego Biurrun
706208ef47
fate: Split fate-pixdesc tests and dispatch them through Make
...
This allows running all the tests individually and/or in parallel.
10 years ago
Anton Khirnov
0c1959b056
lavf: add AVFMT_FLAG_BITEXACT.
...
Use it instead of checking CODEC_FLAG_BITEXACT in the first stream's
codec context.
Using codec options inside lavf is fragile and can easily break when the
muxing codec context is not the encoding context.
11 years ago
Diego Biurrun
bd392785a7
fate-run: Drop unnecessary regtest() indirection
...
The indirection was used to abstract from the different -regression.sh
scripts. Now that only one remains, this indirection is pointless.
12 years ago
Diego Biurrun
b963f021b6
fate: Invoke pixfmts lavfi tests through fate-run.sh
12 years ago
Diego Biurrun
28663511c9
fate: Invoke pixdesc lavfi tests through fate-run.sh
12 years ago
Diego Biurrun
03b052c023
fate: Invoke standard lavfi tests through fate-run.sh
12 years ago
Luca Barbato
b01b60a29d
fate: add an option to generate the references
...
Useful to add or update fate tests.
12 years ago
Luca Barbato
9146e872c6
Revert "fate: Use wmv2 IDCT for wmv2 tests"
...
This reverts commit ce378f0dd0
.
12 years ago
Ronald S. Bultje
ce378f0dd0
fate: Use wmv2 IDCT for wmv2 tests
12 years ago
Mans Rullgard
da025d115a
fate: workaround for slighly broken 'test' shell builtin
...
Some shells, e.g. minix3, have a broken 'test' builtin which fails
if the first operand of a binary operator looks like a unary operator.
Prefixing the values with 'x' prevents this from happening.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Janne Grunau
abab0435d4
fate: split dependencies for fate-seek tests
...
Each fate-seek test depends now only on the corresponding fate-acodec,
fate-vsynth2 or fate-lavf test which creates the file seek-tests
operates on. The tests and references are renamed to match the test they
depend on.
12 years ago
Anton Khirnov
8d18bc550e
fate-run: make avconv() properly deal with multiple inputs.
13 years ago
Mans Rullgard
7263cd5544
fate: convert codec-regression.sh to makefile rules
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
47b5996bb0
fate: allow tests to specify unit size for psnr comparison
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
11e33402ca
fate: use standard diff options
...
diff -w is not a standard option. This fixes the reference files
to match what the tests actually output and switches to using the
standard diff -b which is sufficient to handle different line ending
styles.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
0ff0af731c
fate: use diff -b in oneline comparison
...
This is simpler and should take care of any problems with mixed
line ending styles.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Ronald S. Bultje
4bfa67bdad
Add probe fate tests to test for regressions in detecting media types.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Mans Rullgard
40fa14f775
fate: Add oneline comparison method
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago
Justin Ruggles
9cc338b1de
FATE: pass the decoded output format and audio source file to enc_dec_pcm
...
This will allow decoding to md5 and doing a diff comparison to a reference
checksum instead of a fuzzy stddev or oneoff comparison.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Justin Ruggles
c755b1fbbc
FATE: specify the input format when decoding in enc_dec_pcm()
...
The output format is not always the same as the file extension,
which is sometimes required for correct probing. We can avoid
probing by specifying the format since it is already known.
13 years ago
Mans Rullgard
a56fba502e
fate: make compare() function compatible with POSIX bc
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
b1740cb00a
fate: fix enc_dec_pcm tests with remote target
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Justin Ruggles
90e5b58a53
FATE: add capability for audio encode/decode tests with fuzzy psnr comparison
...
This allows for testing floating-point audio encoders across different
platforms where exact comparisons are unreliable due to float rounding
differences.
13 years ago
Justin Ruggles
cffd7580bb
FATE: allow a tolerance in the size comparison in do_tiny_psnr()
...
This will allow for comparing decoded output to the original source when the
decoded size is not exactly the same as the original size.
13 years ago
Justin Ruggles
bb6842966e
FATE: use absolute difference from a target value in do_tiny_psnr()
...
This will allow comparison to original pre-encoded content instead of
comparing to expected decoded output.
13 years ago
Justin Ruggles
5ecadc6620
FATE: allow tests to set CMP_SHIFT to pass to tiny_psnr
...
This will allow adjusting for any encoder or decoder delay when doing
comparisons.
13 years ago
Justin Ruggles
0720d263ea
FATE: use $fuzz directly in do_tiny_psnr() instead of passing it around
13 years ago
Anton Khirnov
018f39ef49
FATE: add CPUFLAGS variable, mapping to -cpuflags avconv option.
13 years ago
Mans Rullgard
0836d48a16
fate: run avconv with -nostats flag
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Mans Rullgard
dec4b4705f
fate: use 'run' helper for seek-test
...
This is simpler, and the actual seek-test command is printed with V=1.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
bc5acfa7af
fate: use +frame+slice named constants instead of '3'
13 years ago
Anton Khirnov
6291d7e416
Make a copy of ffmpeg under a new name -- avconv.
...
It will be further developed with a few incompatible changes.
ffmpeg.c will stay as is for some time, so any scripts using it won't be
broken.
13 years ago
Diego Biurrun
191c5f8ff3
build: move tests/seek_test.c to libavformat and reuse generic build rules
14 years ago
Mans Rullgard
84757de0f5
fate: add 'null' comparison method
...
Setting CMP=null uses stdout from the test as the diff record in
the report without further inspection. This can be useful when
the exit status of the test itself determines success while the
output is informative.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
ea57502c82
fate: remove output redirections from old regtest scripts
...
All tests are run through the fate-run.sh script which already
sets up redirections. Using the outputs set there simplifies
things somewhat.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Ronald S. Bultje
3283f274fd
FATE: allow forcing thread-type when doing threaded fate runs.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Luca Barbato
7851eb68c6
fate: add support for multithread testing
...
Add a THREADS variable to fate calls.
14 years ago
Måns Rullgård
c4795e8069
fate: print commands being executed with V=1
...
Originally committed as revision 25161 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
078ae66b4b
fate: set LC_ALL=C to avoid locale interference
...
Originally committed as revision 24889 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
b42c483f07
fate-run: use 'run' function in 'ffmpeg' function
...
Originally committed as revision 24837 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
91de2c0a73
fate: add -v 0 to ffmpeg flags
...
Originally committed as revision 24836 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
dff1fc51b2
fate-run: add helper to run things on target
...
Originally committed as revision 24694 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Måns Rullgård
61a187b081
fate: fix non-standard use of bc
...
Originally committed as revision 24651 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
5b60c29339
fate: fix signal name translation
...
Originally committed as revision 24650 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago