Michael Niedermayer
1d0bad421c
avutil/tests/lfg: Remove debugging start/stop timer
...
Fixes code with qemu ARM
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Thomas Turner
a50ccbd240
avutil/tests/lfg.c: added proper normality test
...
The Chen-Shapiro(CS) test was used to test normality for
Lagged Fibonacci PRNG.
Normality Hypothesis Test:
The null hypothesis formally tests if the population
the sample represents is normally-distributed. For
CS, when the normality hypothesis is True, the
distribution of QH will have a mean close to 1.
Information on CS can be found here:
http://www.stata-journal.com/sjpdf.html?articlenum=st0264
http://www.originlab.com/doc/Origin-Help/NormalityTest-Algorithm
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Micah Galizia
489c09ad4b
add locale month names to av_small_strptime
...
Signed-off-by: Micah Galizia <micahgalizia@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Matthieu Bouron
adf5dc90a9
avutil/tests: add aes_ctr, audio_fifo and imgutils to .gitignore
8 years ago
Thomas Turner
08fdf965c9
avutil/tests/audio_fifo.c: pass by reference for efficiency and change datatype to const
...
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Thomas Turner
3126ca2825
avutil/tests: added selftest for aes_ctr.c
...
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Thomas Turner
b7a6d28e5e
avutil/tests: improved code coverage for atomic
...
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Thomas Turner
1bfb4587a2
avutil/tests/audio_fifo.c: Memory leak and tab space fixes
...
Prevents memory leak when read_samples_from_audio_fifo() is
called more than once by deallocating before reallocating
more memory.
Fixes space indentation for contents in ERROR().
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Thomas Turner
11b7cad3dc
avutil/tests/audio_fifo.c: use av_malloc() family of functions
...
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Thomas Turner
d7a3c7427f
avutil/tests/audio_fifo.c: Corrected test error messages
...
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
James Almer
94eb600f35
tests/audio_fifo: fix buffer allocation for non planar formats
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Michael Niedermayer
c193132ce5
avutil/tests/random_seed: eliminate goto
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Thomas Turner
8dcb28cf6d
avutil/tests: Improved code coverage for random_seed
...
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
James Almer
0abcebe3d6
tests/avstring: free the pointer after calls to av_d2str()
...
Fixes memleaks.
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Thomas Turner
9f76ad2a46
avutil: Added selftest for libavutil/audio_fifo.c
...
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Thomas Turner
e303e3d4b9
avutil: Improved test coverage for avstring.c
...
Signed-off-by: Thomas Turner <thomastdt@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
4cf3def805
avutil/tests/imgutils: Remove unused variable
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Wan-Teh Chang
3703f13333
avutil/tests: run the cpu_init.c test conditionally on HAVE_THREADS
...
Suggested by Diego Biurrun and James Almer.
Signed-off-by: Wan-Teh Chang <wtc@google.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Wan-Teh Chang
8986885801
avutil/cpu_init: remove unnecessary arguments to the main() function
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Michael Niedermayer
1b39a30247
fate: add av_image_check_size() test
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Wan-Teh Chang
048b46b4e2
avutil/tests: add cpu_init to .gitignore and tests/fate
...
This is a follow-up to commit d84a21207e
,
which added the libavutil/tests/cpu_init.c.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Wan-Teh Chang
d84a21207e
avutil/tests: Add cpu_init.c to check whether the one-time initialization in av_get_cpu_flags() has data races.
...
Co-author: Dmitry Vyukov of Google
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Thomas Turner
09d39177dc
avutil: Improved selftest coverage for libavutil/fifo.c
...
Tested functions: av_fifo_generic_peek(), av_fifo_grow()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Anton Khirnov
5cc0057f49
lavu: remove the custom atomic API
...
It has been replaced by C11 stdatomic.h and is now unused.
8 years ago
Diego Biurrun
ded4a6543d
xtea-test: Use struct allocation functions from the API
9 years ago
Diego Biurrun
8131bd4c22
blowfish-test: Use struct allocation functions from the API
9 years ago
Diego Biurrun
a86ef80494
blowfish-test: Return different values for different errors
9 years ago
Diego Biurrun
a6a750c7ef
tests: Move all test programs to a subdirectory
9 years ago