Pierre-Anthony Lemieux
7c2f029ede
avutil/tests/uuid: add uuid tests
3 years ago
James Almer
f51e169d2b
fate: add a channel_layout API test
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Carl Eugen Hoyos
96fc0cbfde
tests: Add EXESUF to program calls.
...
Fixes fate in Windows subsystem for Linux.
6 years ago
James Almer
7ca892b7e5
fate: remove unnecessary reference file for fate-encryption-info
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Jacob Trimble
69bd73b3ff
libavutil/encryption_info: Add unit tests.
...
Signed-off-by: Jacob Trimble <modmaker@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
7 years ago
James Almer
72bb955625
avutil/integer: move the test to the corresponding subdirectory
...
And actually enable it.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Anton Khirnov
89b84cb18b
It has been replaced by C11 stdatomic.h and is now unused.
...
(cherry picked from commit 5cc0057f49
)
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
Mark Thompson
3192821237
pixdesc: Add a test for av_find_best_pix_fmt_of_2()
8 years ago
James Almer
e53c9065ca
avutil/tests: remove float_dsp test
...
It's been ported to checkasm.
Signed-off-by: James Almer <jamrial@gmail.com>
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
Diego Biurrun
698ac8f9ca
fate: Make null comparison method more useful
...
This allows dropping /dev/null as reference value when no output is generated.
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
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
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
Michael Niedermayer
1b39a30247
fate: add av_image_check_size() test
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Wan-Teh Chang
2170017a1c
avutil: fix data race in av_get_cpu_flags()
...
Make the one-time initialization in av_get_cpu_flags() thread-safe. The
static variables |flags|, |cpuflags_mask|, and |checked| in
libavutil/cpu.c are read and written using normal load and store
operations. These are considered as data races. The fix is to use atomic
load and store operations.
Remove the |checked| variable because the invalid value of -1 for
|flags| can be used to indicate the same condition. Rename |flags| to
|cpu_flags| and move it to file scope.
The fix can be verified by running the libavutil/tests/cpu_init.c test
program under ThreadSanitizer:
./configure --toolchain=clang-tsan
make libavutil/tests/cpu_init
libavutil/tests/cpu_init
There should be no warnings from ThreadSanitizer.
Co-author: Dmitry Vyukov of Google, who suggested the data race fix.
Signed-off-by: Wan-Teh Chang <wtc@google.com>
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
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
a6a750c7ef
tests: Move all test programs to a subdirectory
9 years ago
Petru Rares Sincraian
124526ba1a
Added a selftest to libavutil/display.c
...
- Check if av_display_rotation_get() gets the correct degrees
- Check if av_display_rotation_set() sets the correct matrix
- Check if av_display_matrix_flip() changes correct the matrix
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
NagaChaitanya Vellanki
285fda0937
Add tests for functions in hash.c
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
NagaChaitanya Vellanki
df4b5f076e
Add test for avpriv_get_trc_function_from_trc function
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Vesselin Bontchev
323ec6b5e2
Add support for TEA (Tiny Encryption Algorithm)
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Lukasz Marek
0bf980919e
fate: add AVDictionary tests
...
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
10 years ago
Supraja Meedinti
4b7c26843c
tests: fate: adding fate-test for twofish
...
Signed-off-by: Supraja Meedinti <supraja0493@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
James Almer
f4f0619327
fate: add Camellia test
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
Lukasz Marek
db6be5416c
fate: add opt-test
10 years ago
Supraja Meedinti
0eabbe2101
libavutil: Add CAST128 symmetric block cipher
...
Only ECB mode is supported at the moment
Signed-off-by: Supraja Meedinti <supraja0493@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
James Almer
5402d1bce5
float_dsp-test: allow forcing cpuflags
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
Michael Niedermayer
a8689ba872
tests/fate/libavutil: switch cpu-test back to runecho so its results are vissible
...
(needs next commt too)
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Clément Bœsch
28a2107a8d
avutil: add pixelutils API
11 years ago
Janne Grunau
caf5ef852b
cpu-test: test av_cpu_count
...
Add CPU count and number threads as informative values for fate.
11 years ago
Janne Grunau
07d8fa5812
fate: add informative cpu test
...
libavutil/cpu-test prints raw and effective cpu flags to STDERR. Detected
cpu flags can be useful for debugging fate errors.
No comparison of the result against a expected result since that would
require fate config specific references.
11 years ago
Michael Niedermayer
565c321cd0
tests/fate/libavutil: run cpu test and display the cpus detected feature set
...
With this the fate clients runtime cpu feature set should be visible
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Janne Grunau
f0f687446e
float_dsp: add test program and use it as fate test
11 years ago
Diego Biurrun
711c4da1af
fate: Add tree test
12 years ago
James Almer
99b8cd0c81
lavu: Add RIPEMD hashing
...
Includes RIPEMD-128, RIPEMD-160, RIPEMD-256 and RIPEMD-320
Signed-off-by: James Almer <jamrial@gmail.com>
12 years ago
James Almer
682b2273e8
lavu: Add SHA-2 512 hashing
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Reimar Döffinger
86215c326e
Add 128 bit murmur3 hash function.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years ago
Ronald S. Bultje
65f1d45dcc
lavu: add support for atomic operations.
...
These could be used for reference counting, or for keeping track of
decoding progress in references in multithreaded decoders.
Support is provided by gcc/msvc/suncc intrinsics, with a fallback using
pthread mutexes.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Martin Storsjö
3130fa51a5
lavu: Add a fate test for the HMAC API
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Diego Biurrun
47e7fb8815
fate: Do not unconditionally run libavutil tests
...
Now that libavutil can be disabled, this should be conditional.
12 years ago
Diego Biurrun
9e6ea3cef9
fate: add avstring test
12 years ago
Diego Biurrun
76f644d9f7
fate: Add parseutils test
12 years ago
Samuel Pitoiset
8c14f7a593
Add XTEA encryption support in libavutil
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Samuel Pitoiset
bc3dbcc8e5
Add Blowfish encryption support in libavutil
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Nicolas George
7a2b429175
fate: add bprint test.
13 years ago
Mans Rullgard
f7c2dca0d9
fate: improve dependencies
...
This makes only tests actually using avconv depend on it.
The remaining tests already depend on what they need.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
63e01c2f19
fate: add convenient shorthands for ea-vp6, libavcodec, libavutil tests
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Nicolas George
9246896f77
parseutils: add FATE test.
13 years ago