tests: Move all test programs to a subdirectory

pull/221/head
Diego Biurrun 9 years ago
parent 257f00ec1a
commit a6a750c7ef
  1. 1
      .gitignore
  2. 7
      common.mak
  3. 2
      libavcodec/Makefile
  4. 6
      libavcodec/tests/.gitignore
  5. 2
      libavcodec/tests/arm/dct.c
  6. 23
      libavcodec/tests/dct.c
  7. 2
      libavcodec/tests/fft-fixed.c
  8. 6
      libavcodec/tests/fft.c
  9. 6
      libavcodec/tests/golomb.c
  10. 2
      libavcodec/tests/iirfilter.c
  11. 2
      libavcodec/tests/ppc/dct.c
  12. 2
      libavcodec/tests/rangecoder.c
  13. 6
      libavcodec/tests/x86/dct.c
  14. 2
      libavdevice/tests/timefilter.c
  15. 1
      libavfilter/tests/.gitignore
  16. 0
      libavfilter/tests/filtfmts.c
  17. 5
      libavformat/tests/.gitignore
  18. 2
      libavformat/tests/movenc.c
  19. 2
      libavformat/tests/noproxy.c
  20. 2
      libavformat/tests/rtmpdh.c
  21. 1
      libavformat/tests/seek.c
  22. 4
      libavformat/tests/srtp.c
  23. 2
      libavformat/tests/url.c
  24. 1
      libavresample/tests/.gitignore
  25. 3
      libavresample/tests/avresample.c
  26. 2
      libavutil/des.c
  27. 21
      libavutil/tests/.gitignore
  28. 6
      libavutil/tests/adler32.c
  29. 6
      libavutil/tests/aes.c
  30. 2
      libavutil/tests/atomic.c
  31. 6
      libavutil/tests/avstring.c
  32. 4
      libavutil/tests/base64.c
  33. 2
      libavutil/tests/blowfish.c
  34. 6
      libavutil/tests/cpu.c
  35. 2
      libavutil/tests/crc.c
  36. 4
      libavutil/tests/des.c
  37. 6
      libavutil/tests/eval.c
  38. 2
      libavutil/tests/fifo.c
  39. 12
      libavutil/tests/float_dsp.c
  40. 2
      libavutil/tests/hmac.c
  41. 6
      libavutil/tests/lfg.c
  42. 6
      libavutil/tests/lls.c
  43. 2
      libavutil/tests/md5.c
  44. 12
      libavutil/tests/opt.c
  45. 8
      libavutil/tests/parseutils.c
  46. 2
      libavutil/tests/sha.c
  47. 8
      libavutil/tests/tree.c
  48. 4
      libavutil/tests/xtea.c
  49. 7
      library.mak
  50. 2
      libswscale/tests/.gitignore
  51. 5
      libswscale/tests/colorspace.c
  52. 3
      libswscale/tests/swscale.c
  53. 2
      tests/fate-run.sh
  54. 8
      tests/fate/fft.mak
  55. 2
      tests/fate/filter-video.mak
  56. 16
      tests/fate/libavcodec.mak
  57. 4
      tests/fate/libavdevice.mak
  58. 20
      tests/fate/libavformat.mak
  59. 72
      tests/fate/libavutil.mak
  60. 4
      tests/fate/seek.mak

1
.gitignore vendored

@ -17,7 +17,6 @@
*.so.* *.so.*
*.swp *.swp
*.ver *.ver
*-test
/.config /.config
/.version /.version
/avconv /avconv

@ -15,8 +15,8 @@ LDLIBS = $(FFLIBS:%=%$(BUILDSUF))
FFEXTRALIBS := $(LDLIBS:%=$(LD_LIB)) $(EXTRALIBS) FFEXTRALIBS := $(LDLIBS:%=$(LD_LIB)) $(EXTRALIBS)
OBJS := $(sort $(OBJS:%=$(SUBDIR)%)) OBJS := $(sort $(OBJS:%=$(SUBDIR)%))
TESTOBJS := $(TESTOBJS:%=$(SUBDIR)%) $(TESTPROGS:%=$(SUBDIR)%-test.o) TESTOBJS := $(TESTOBJS:%=$(SUBDIR)tests/%) $(TESTPROGS:%=$(SUBDIR)tests/%.o)
TESTPROGS := $(TESTPROGS:%=$(SUBDIR)%-test$(EXESUF)) TESTPROGS := $(TESTPROGS:%=$(SUBDIR)tests/%$(EXESUF))
HOSTOBJS := $(HOSTPROGS:%=$(SUBDIR)%.o) HOSTOBJS := $(HOSTPROGS:%=$(SUBDIR)%.o)
HOSTPROGS := $(HOSTPROGS:%=$(SUBDIR)%$(HOSTEXESUF)) HOSTPROGS := $(HOSTPROGS:%=$(SUBDIR)%$(HOSTEXESUF))
TOOLS += $(TOOLS-yes) TOOLS += $(TOOLS-yes)
@ -58,8 +58,7 @@ LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a
define RULES define RULES
clean:: clean::
$(RM) $(HOSTPROGS) $(RM) $(HOSTPROGS) $(TESTPROGS) $(TOOLS)
$(RM) $(TOOLS)
endef endef
$(eval $(RULES)) $(eval $(RULES))

@ -813,7 +813,7 @@ HOSTPROGS = aac_tablegen \
CLEANFILES = *_tables.c *_tables.h *_tablegen$(HOSTEXESUF) CLEANFILES = *_tables.c *_tables.h *_tablegen$(HOSTEXESUF)
$(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dctref.o $(SUBDIR)aandcttab.o $(SUBDIR)tests/dct$(EXESUF): $(SUBDIR)dctref.o $(SUBDIR)aandcttab.o
$(SUBDIR)dv_tablegen$(HOSTEXESUF): $(SUBDIR)dvdata_host.o $(SUBDIR)dv_tablegen$(HOSTEXESUF): $(SUBDIR)dvdata_host.o
TRIG_TABLES = cos cos_fixed sin TRIG_TABLES = cos cos_fixed sin

@ -0,0 +1,6 @@
/dct
/fft
/fft-fixed
/golomb
/iirfilter
/rangecoder

@ -18,7 +18,7 @@
#include "config.h" #include "config.h"
#include "idct.h" #include "libavcodec/arm/idct.h"
static const struct algo fdct_tab_arch[] = { static const struct algo fdct_tab_arch[] = {
{ 0 } { 0 }

@ -36,17 +36,18 @@
#include "libavutil/cpu.h" #include "libavutil/cpu.h"
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "libavutil/time.h" #include "libavutil/time.h"
#include "dct.h" #include "libavcodec/aandcttab.h"
#include "idctdsp.h" #include "libavcodec/dct.h"
#include "simple_idct.h" #include "libavcodec/dctref.h"
#include "xvididct.h" #include "libavcodec/faandct.h"
#include "aandcttab.h" #include "libavcodec/faanidct.h"
#include "faandct.h" #include "libavcodec/idctdsp.h"
#include "faanidct.h" #include "libavcodec/simple_idct.h"
#include "dctref.h" #include "libavcodec/xvididct.h"
struct algo { struct algo {
const char *name; const char *name;
@ -78,11 +79,11 @@ static const struct algo idct_tab[] = {
}; };
#if ARCH_ARM #if ARCH_ARM
#include "arm/dct-test.c" #include "arm/dct.c"
#elif ARCH_PPC #elif ARCH_PPC
#include "ppc/dct-test.c" #include "ppc/dct.c"
#elif ARCH_X86 #elif ARCH_X86
#include "x86/dct-test.c" #include "x86/dct.c"
#else #else
static const struct algo fdct_tab_arch[] = { { 0 } }; static const struct algo fdct_tab_arch[] = { { 0 } };
static const struct algo idct_tab_arch[] = { { 0 } }; static const struct algo idct_tab_arch[] = { { 0 } };

@ -17,4 +17,4 @@
*/ */
#define FFT_FLOAT 0 #define FFT_FLOAT 0
#include "fft-test.c" #include "fft.c"

@ -39,10 +39,10 @@
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"
#include "libavutil/time.h" #include "libavutil/time.h"
#include "fft.h" #include "libavcodec/fft.h"
#if FFT_FLOAT #if FFT_FLOAT
#include "dct.h" #include "libavcodec/dct.h"
#include "rdft.h" #include "libavcodec/rdft.h"
#endif #endif
/* reference fft */ /* reference fft */

@ -21,9 +21,9 @@
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "get_bits.h" #include "libavcodec/get_bits.h"
#include "golomb.h" #include "libavcodec/put_bits.h"
#include "put_bits.h" #include "libavcodec/golomb.h"
#define COUNT 8191 #define COUNT 8191
#define SIZE (COUNT * 4) #define SIZE (COUNT * 4)

@ -22,7 +22,7 @@
#include "libavutil/libm.h" #include "libavutil/libm.h"
#include "iirfilter.h" #include "libavcodec/iirfilter.h"
#define FILT_ORDER 4 #define FILT_ORDER 4
#define SIZE 1024 #define SIZE 1024

@ -18,7 +18,7 @@
#include "config.h" #include "config.h"
#include "fdct.h" #include "libavcodec/ppc/fdct.h"
static const struct algo fdct_tab_arch[] = { static const struct algo fdct_tab_arch[] = {
#if HAVE_ALTIVEC && HAVE_BIGENDIAN #if HAVE_ALTIVEC && HAVE_BIGENDIAN

@ -22,7 +22,7 @@
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "libavutil/log.h" #include "libavutil/log.h"
#include "rangecoder.h" #include "libavcodec/rangecoder.h"
#define SIZE 10240 #define SIZE 10240

@ -18,9 +18,9 @@
#include "config.h" #include "config.h"
#include "fdct.h" #include "libavcodec/x86/fdct.h"
#include "xvididct.h" #include "libavcodec/x86/xvididct.h"
#include "simple_idct.h" #include "libavcodec/x86/simple_idct.h"
static const struct algo fdct_tab_arch[] = { static const struct algo fdct_tab_arch[] = {
#if HAVE_MMX_INLINE #if HAVE_MMX_INLINE

@ -21,7 +21,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "timefilter.h" #include "libavdevice/timefilter.h"
#define LFG_MAX ((1LL << 32) - 1) #define LFG_MAX ((1LL << 32) - 1)

@ -0,0 +1 @@
/filtfmts

@ -0,0 +1,5 @@
/movenc
/noproxy
/seek
/srtp
/url

@ -24,7 +24,7 @@
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"
#include "libavutil/md5.h" #include "libavutil/md5.h"
#include "avformat.h" #include "libavformat/avformat.h"
#if HAVE_UNISTD_H #if HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>

@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "network.h" #include "libavformat/network.h"
static void test(const char *pattern, const char *host) static void test(const char *pattern, const char *host)
{ {

@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "rtmpdh.c" #include "libavformat/rtmpdh.c"
#include <stdio.h> #include <stdio.h>

@ -26,6 +26,7 @@
#include "libavutil/common.h" #include "libavutil/common.h"
#include "libavutil/mathematics.h" #include "libavutil/mathematics.h"
#include "libavformat/avformat.h" #include "libavformat/avformat.h"
static char buffer[20]; static char buffer[20];

@ -20,8 +20,8 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "rtpdec.h" #include "libavformat/rtpdec.h"
#include "srtp.h" #include "libavformat/srtp.h"
static const char *aes128_80_key = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn"; static const char *aes128_80_key = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn";

@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "url.h" #include "libavformat/url.h"
static void test(const char *base, const char *rel) static void test(const char *base, const char *rel)
{ {

@ -0,0 +1 @@
/avresample

@ -30,7 +30,8 @@
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/samplefmt.h" #include "libavutil/samplefmt.h"
#include "avresample.h"
#include "libavresample/avresample.h"
static double dbl_rand(AVLFG *lfg) static double dbl_rand(AVLFG *lfg)
{ {

@ -111,7 +111,7 @@ static const uint8_t S_boxes[8][32] = {
#else #else
/** /**
* This table contains the results of applying both the S-box and P-shuffle. * This table contains the results of applying both the S-box and P-shuffle.
* It can be regenerated by compiling des-test.c with "-DCONFIG_SMALL -DGENTABLES". * It can be regenerated by compiling tests/des.c with "-DCONFIG_SMALL -DGENTABLES".
*/ */
static const uint32_t S_boxes_P_shuffle[8][64] = { static const uint32_t S_boxes_P_shuffle[8][64] = {
{ 0x00808200, 0x00000000, 0x00008000, 0x00808202, 0x00808002, 0x00008202, 0x00000002, 0x00008000, { 0x00808200, 0x00000000, 0x00008000, 0x00808202, 0x00808002, 0x00008202, 0x00000002, 0x00008000,

@ -0,0 +1,21 @@
/adler32
/aes
/atomic
/avstring
/base64
/blowfish
/cpu
/crc
/des
/eval
/fifo
/float_dsp
/hmac
/lfg
/lls
/md5
/opt
/parseutils
/sha
/tree
/xtea

@ -18,9 +18,9 @@
#include <string.h> #include <string.h>
#include "log.h" #include "libavutil/log.h"
#include "timer.h" #include "libavutil/timer.h"
#include "adler32.h" #include "libavutil/adler32.h"
#define LEN 7001 #define LEN 7001

@ -16,12 +16,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "aes.c" #include "libavutil/aes.c"
#include <string.h> #include <string.h>
#include "lfg.h" #include "libavutil/lfg.h"
#include "log.h" #include "libavutil/log.h"
int main(int argc, char **argv) int main(int argc, char **argv)
{ {

@ -18,7 +18,7 @@
#include <assert.h> #include <assert.h>
#include "atomic.h" #include "libavutil/atomic.h"
int main(void) int main(void)
{ {

@ -18,9 +18,9 @@
#include <stdio.h> #include <stdio.h>
#include "common.h" #include "libavutil/common.h"
#include "mem.h" #include "libavutil/mem.h"
#include "avstring.h" #include "libavutil/avstring.h"
int main(void) int main(void)
{ {

@ -19,8 +19,8 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include "common.h" #include "libavutil/common.h"
#include "base64.h" #include "libavutil/base64.h"
#define MAX_DATA_SIZE 1024 #define MAX_DATA_SIZE 1024
#define MAX_ENCODED_SIZE 2048 #define MAX_ENCODED_SIZE 2048

@ -21,7 +21,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "blowfish.h" #include "libavutil/blowfish.h"
#define NUM_VARIABLE_KEY_TESTS 34 #define NUM_VARIABLE_KEY_TESTS 34

@ -27,9 +27,9 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include "avstring.h" #include "libavutil/avstring.h"
#include "common.h" #include "libavutil/common.h"
#include "cpu.h" #include "libavutil/cpu.h"
static const struct { static const struct {
int flag; int flag;

@ -19,7 +19,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include "crc.h" #include "libavutil/crc.h"
int main(void) int main(void)
{ {

@ -16,14 +16,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "des.c" #include "libavutil/des.c"
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "time.h" #include "libavutil/time.h"
static uint64_t rand64(void) static uint64_t rand64(void)
{ {

@ -20,9 +20,9 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "libm.h" #include "libavutil/libm.h"
#include "timer.h" #include "libavutil/timer.h"
#include "eval.h" #include "libavutil/eval.h"
static const double const_values[] = { static const double const_values[] = {
M_PI, M_PI,

@ -18,7 +18,7 @@
#include <stdio.h> #include <stdio.h>
#include "fifo.h" #include "libavutil/fifo.h"
int main(void) int main(void)
{ {

@ -21,12 +21,12 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "cpu.h" #include "libavutil/cpu.h"
#include "internal.h" #include "libavutil/internal.h"
#include "lfg.h" #include "libavutil/lfg.h"
#include "log.h" #include "libavutil/log.h"
#include "random_seed.h" #include "libavutil/random_seed.h"
#include "float_dsp.h" #include "libavutil/float_dsp.h"
#define LEN 240 #define LEN 240

@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "hmac.c" #include "libavutil/hmac.c"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

@ -16,9 +16,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "log.h" #include "libavutil/log.h"
#include "timer.h" #include "libavutil/timer.h"
#include "lfg.h" #include "libavutil/lfg.h"
int main(void) int main(void)
{ {

@ -19,9 +19,9 @@
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include "internal.h" #include "libavutil/internal.h"
#include "lfg.h" #include "libavutil/lfg.h"
#include "lls.h" #include "libavutil/lls.h"
int main(void) int main(void)
{ {

@ -19,7 +19,7 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include "md5.h" #include "libavutil/md5.h"
static void print_md5(uint8_t *md5) static void print_md5(uint8_t *md5)
{ {

@ -19,12 +19,12 @@
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include "common.h" #include "libavutil/common.h"
#include "error.h" #include "libavutil/error.h"
#include "log.h" #include "libavutil/log.h"
#include "mem.h" #include "libavutil/mem.h"
#include "rational.h" #include "libavutil/rational.h"
#include "opt.h" #include "libavutil/opt.h"
typedef struct TestContext { typedef struct TestContext {
const AVClass *class; const AVClass *class;

@ -19,10 +19,10 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include "common.h" #include "libavutil/common.h"
#include "log.h" #include "libavutil/log.h"
#include "rational.h" #include "libavutil/rational.h"
#include "parseutils.h" #include "libavutil/parseutils.h"
int main(void) int main(void)
{ {

@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "sha.c" #include "libavutil/sha.c"
#include <stdio.h> #include <stdio.h>

@ -16,13 +16,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "tree.c" #include "libavutil/tree.c"
#include <stdint.h> #include <stdint.h>
#include "common.h" #include "libavutil/common.h"
#include "lfg.h" #include "libavutil/lfg.h"
#include "log.h" #include "libavutil/log.h"
static int check(AVTreeNode *t) static int check(AVTreeNode *t)
{ {

@ -21,8 +21,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "xtea.h" #include "libavutil/xtea.h"
#define XTEA_NUM_TESTS 6 #define XTEA_NUM_TESTS 6

@ -44,11 +44,12 @@ $(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS) $(SUBDIR)lib$(NAME).ver $(DEP_LIBS)
$(SLIB_EXTRA_CMD) $(SLIB_EXTRA_CMD)
clean:: clean::
$(RM) $(addprefix $(SUBDIR),*-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \ $(RM) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
$(CLEANSUFFIXES:%=$(SUBDIR)$(ARCH)/%) $(CLEANSUFFIXES:%=$(SUBDIR)$(ARCH)/%) $(CLEANSUFFIXES:%=$(SUBDIR)tests/%)
distclean:: clean distclean:: clean
$(RM) $(DISTCLEANSUFFIXES:%=$(SUBDIR)%) $(DISTCLEANSUFFIXES:%=$(SUBDIR)$(ARCH)/%) $(RM) $(DISTCLEANSUFFIXES:%=$(SUBDIR)%) $(DISTCLEANSUFFIXES:%=$(SUBDIR)$(ARCH)/%) \
$(DISTCLEANSUFFIXES:%=$(SUBDIR)tests/%)
install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME) install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
$(Q)mkdir -p "$(SHLIBDIR)" $(Q)mkdir -p "$(SHLIBDIR)"

@ -0,0 +1,2 @@
/colorspace
/swscale

@ -23,10 +23,11 @@
#include <stdlib.h> #include <stdlib.h>
#include <inttypes.h> #include <inttypes.h>
#include "swscale.h"
#include "rgb2rgb.h"
#include "libavutil/mem.h" #include "libavutil/mem.h"
#include "libswscale/rgb2rgb.h"
#include "libswscale/swscale.h"
#define SIZE 1000 #define SIZE 1000
#define srcByte 0x55 #define srcByte 0x55
#define dstByte 0xBB #define dstByte 0xBB

@ -31,7 +31,8 @@
#include "libavutil/crc.h" #include "libavutil/crc.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "libavutil/lfg.h" #include "libavutil/lfg.h"
#include "swscale.h"
#include "libswscale/swscale.h"
/* HACK Duplicated from swscale_internal.h. /* HACK Duplicated from swscale_internal.h.
* Should be removed when a cleaner pixel format system exists. */ * Should be removed when a cleaner pixel format system exists. */

@ -167,7 +167,7 @@ pixfmts(){
filter=${test#filter-pixfmts-} filter=${test#filter-pixfmts-}
filter_args=$1 filter_args=$1
showfiltfmts="$target_exec $target_path/libavfilter/filtfmts-test" showfiltfmts="$target_exec $target_path/libavfilter/tests/filtfmts"
exclude_fmts=${outfile}${filter}_exclude_fmts exclude_fmts=${outfile}${filter}_exclude_fmts
out_fmts=${outfile}${filter}_out_fmts out_fmts=${outfile}${filter}_out_fmts

@ -23,8 +23,8 @@ fate-rdft-float: $(FATE_RDFT-yes)
FATE_FFT_ALL = $(FATE_DCT-yes) $(FATE_FFT-yes) $(FATE_MDCT-yes) $(FATE_RDFT-yes) FATE_FFT_ALL = $(FATE_DCT-yes) $(FATE_FFT-yes) $(FATE_MDCT-yes) $(FATE_RDFT-yes)
$(FATE_FFT_ALL): libavcodec/fft-test$(EXESUF) $(FATE_FFT_ALL): libavcodec/tests/fft$(EXESUF)
$(FATE_FFT_ALL): CMD = run libavcodec/fft-test $(CPUFLAGS:%=-c%) $(ARGS) $(FATE_FFT_ALL): CMD = run libavcodec/tests/fft $(CPUFLAGS:%=-c%) $(ARGS)
define DEF_FFT_FIXED define DEF_FFT_FIXED
FATE_FFT_FIXED-$(CONFIG_FFT) += fate-fft-fixed-$(1) fate-ifft-fixed-$(1) FATE_FFT_FIXED-$(CONFIG_FFT) += fate-fft-fixed-$(1) fate-ifft-fixed-$(1)
@ -43,8 +43,8 @@ fate-mdct-fixed: $(FATE_MDCT_FIXED-yes)
FATE_FFT_FIXED_ALL = $(FATE_FFT_FIXED-yes) $(FATE_MDCT_FIXED-yes) FATE_FFT_FIXED_ALL = $(FATE_FFT_FIXED-yes) $(FATE_MDCT_FIXED-yes)
$(FATE_FFT_FIXED_ALL): libavcodec/fft-fixed-test$(EXESUF) $(FATE_FFT_FIXED_ALL): libavcodec/tests/fft-fixed$(EXESUF)
$(FATE_FFT_FIXED_ALL): CMD = run libavcodec/fft-fixed-test $(CPUFLAGS:%=-c%) $(ARGS) $(FATE_FFT_FIXED_ALL): CMD = run libavcodec/tests/fft-fixed $(CPUFLAGS:%=-c%) $(ARGS)
$(FATE_FFT_ALL) $(FATE_FFT_FIXED_ALL): REF = /dev/null $(FATE_FFT_ALL) $(FATE_FFT_FIXED_ALL): REF = /dev/null

@ -160,7 +160,7 @@ fate-filter-pixfmts-scale: CMD = pixfmts "200:100"
FATE_FILTER_PIXFMTS += fate-filter-pixfmts-vflip FATE_FILTER_PIXFMTS += fate-filter-pixfmts-vflip
fate-filter-pixfmts-vflip: CMD = pixfmts fate-filter-pixfmts-vflip: CMD = pixfmts
$(FATE_FILTER_PIXFMTS): libavfilter/filtfmts-test$(EXESUF) $(FATE_FILTER_PIXFMTS): libavfilter/tests/filtfmts$(EXESUF)
FATE_FILTER_VSYNTH-$(CONFIG_FORMAT_FILTER) += $(FATE_FILTER_PIXFMTS) FATE_FILTER_VSYNTH-$(CONFIG_FORMAT_FILTER) += $(FATE_FILTER_PIXFMTS)

@ -1,21 +1,21 @@
FATE_LIBAVCODEC-$(CONFIG_GOLOMB) += fate-golomb FATE_LIBAVCODEC-$(CONFIG_GOLOMB) += fate-golomb
fate-golomb: libavcodec/golomb-test$(EXESUF) fate-golomb: libavcodec/tests/golomb$(EXESUF)
fate-golomb: CMD = run libavcodec/golomb-test fate-golomb: CMD = run libavcodec/tests/golomb
fate-golomb: REF = /dev/null fate-golomb: REF = /dev/null
FATE_LIBAVCODEC-$(CONFIG_IDCTDSP) += fate-idct8x8 FATE_LIBAVCODEC-$(CONFIG_IDCTDSP) += fate-idct8x8
fate-idct8x8: libavcodec/dct-test$(EXESUF) fate-idct8x8: libavcodec/tests/dct$(EXESUF)
fate-idct8x8: CMD = run libavcodec/dct-test -i fate-idct8x8: CMD = run libavcodec/tests/dct -i
fate-idct8x8: CMP = null fate-idct8x8: CMP = null
fate-idct8x8: REF = /dev/null fate-idct8x8: REF = /dev/null
FATE_LIBAVCODEC-$(CONFIG_IIRFILTER) += fate-iirfilter FATE_LIBAVCODEC-$(CONFIG_IIRFILTER) += fate-iirfilter
fate-iirfilter: libavcodec/iirfilter-test$(EXESUF) fate-iirfilter: libavcodec/tests/iirfilter$(EXESUF)
fate-iirfilter: CMD = run libavcodec/iirfilter-test fate-iirfilter: CMD = run libavcodec/tests/iirfilter
FATE_LIBAVCODEC-$(CONFIG_RANGECODER) += fate-rangecoder FATE_LIBAVCODEC-$(CONFIG_RANGECODER) += fate-rangecoder
fate-rangecoder: libavcodec/rangecoder-test$(EXESUF) fate-rangecoder: libavcodec/tests/rangecoder$(EXESUF)
fate-rangecoder: CMD = run libavcodec/rangecoder-test fate-rangecoder: CMD = run libavcodec/tests/rangecoder
fate-rangecoder: CMP = null fate-rangecoder: CMP = null
fate-rangecoder: REF = /dev/null fate-rangecoder: REF = /dev/null

@ -1,6 +1,6 @@
FATE_LIBAVDEVICE-$(CONFIG_JACK_INDEV) += fate-timefilter FATE_LIBAVDEVICE-$(CONFIG_JACK_INDEV) += fate-timefilter
fate-timefilter: libavdevice/timefilter-test$(EXESUF) fate-timefilter: libavdevice/tests/timefilter$(EXESUF)
fate-timefilter: CMD = run libavdevice/timefilter-test fate-timefilter: CMD = run libavdevice/tests/timefilter
FATE-$(CONFIG_AVDEVICE) += $(FATE_LIBAVDEVICE-yes) FATE-$(CONFIG_AVDEVICE) += $(FATE_LIBAVDEVICE-yes)
fate-libavdevice: $(FATE_LIBAVDEVICE-yes) fate-libavdevice: $(FATE_LIBAVDEVICE-yes)

@ -1,22 +1,22 @@
FATE_LIBAVFORMAT-$(CONFIG_NETWORK) += fate-noproxy FATE_LIBAVFORMAT-$(CONFIG_NETWORK) += fate-noproxy
fate-noproxy: libavformat/noproxy-test$(EXESUF) fate-noproxy: libavformat/tests/noproxy$(EXESUF)
fate-noproxy: CMD = run libavformat/noproxy-test fate-noproxy: CMD = run libavformat/tests/noproxy
FATE_LIBAVFORMAT-$(CONFIG_FFRTMPCRYPT_PROTOCOL) += fate-rtmpdh FATE_LIBAVFORMAT-$(CONFIG_FFRTMPCRYPT_PROTOCOL) += fate-rtmpdh
fate-rtmpdh: libavformat/rtmpdh-test$(EXESUF) fate-rtmpdh: libavformat/tests/rtmpdh$(EXESUF)
fate-rtmpdh: CMD = run libavformat/rtmpdh-test fate-rtmpdh: CMD = run libavformat/tests/rtmpdh
FATE_LIBAVFORMAT-$(CONFIG_SRTP) += fate-srtp FATE_LIBAVFORMAT-$(CONFIG_SRTP) += fate-srtp
fate-srtp: libavformat/srtp-test$(EXESUF) fate-srtp: libavformat/tests/srtp$(EXESUF)
fate-srtp: CMD = run libavformat/srtp-test fate-srtp: CMD = run libavformat/tests/srtp
FATE_LIBAVFORMAT-yes += fate-url FATE_LIBAVFORMAT-yes += fate-url
fate-url: libavformat/url-test$(EXESUF) fate-url: libavformat/tests/url$(EXESUF)
fate-url: CMD = run libavformat/url-test fate-url: CMD = run libavformat/tests/url
FATE_LIBAVFORMAT-$(CONFIG_MOV_MUXER) += fate-movenc FATE_LIBAVFORMAT-$(CONFIG_MOV_MUXER) += fate-movenc
fate-movenc: libavformat/movenc-test$(EXESUF) fate-movenc: libavformat/tests/movenc$(EXESUF)
fate-movenc: CMD = run libavformat/movenc-test fate-movenc: CMD = run libavformat/tests/movenc
FATE-$(CONFIG_AVFORMAT) += $(FATE_LIBAVFORMAT-yes) FATE-$(CONFIG_AVFORMAT) += $(FATE_LIBAVFORMAT-yes)
fate-libavformat: $(FATE_LIBAVFORMAT) fate-libavformat: $(FATE_LIBAVFORMAT)

@ -1,82 +1,82 @@
FATE_LIBAVUTIL += fate-adler32 FATE_LIBAVUTIL += fate-adler32
fate-adler32: libavutil/adler32-test$(EXESUF) fate-adler32: libavutil/tests/adler32$(EXESUF)
fate-adler32: CMD = run libavutil/adler32-test fate-adler32: CMD = run libavutil/tests/adler32
fate-adler32: REF = /dev/null fate-adler32: REF = /dev/null
FATE_LIBAVUTIL += fate-aes FATE_LIBAVUTIL += fate-aes
fate-aes: libavutil/aes-test$(EXESUF) fate-aes: libavutil/tests/aes$(EXESUF)
fate-aes: CMD = run libavutil/aes-test fate-aes: CMD = run libavutil/tests/aes
fate-aes: REF = /dev/null fate-aes: REF = /dev/null
FATE_LIBAVUTIL += fate-atomic FATE_LIBAVUTIL += fate-atomic
fate-atomic: libavutil/atomic-test$(EXESUF) fate-atomic: libavutil/tests/atomic$(EXESUF)
fate-atomic: CMD = run libavutil/atomic-test fate-atomic: CMD = run libavutil/tests/atomic
fate-atomic: REF = /dev/null fate-atomic: REF = /dev/null
FATE_LIBAVUTIL += fate-avstring FATE_LIBAVUTIL += fate-avstring
fate-avstring: libavutil/avstring-test$(EXESUF) fate-avstring: libavutil/tests/avstring$(EXESUF)
fate-avstring: CMD = run libavutil/avstring-test fate-avstring: CMD = run libavutil/tests/avstring
FATE_LIBAVUTIL += fate-base64 FATE_LIBAVUTIL += fate-base64
fate-base64: libavutil/base64-test$(EXESUF) fate-base64: libavutil/tests/base64$(EXESUF)
fate-base64: CMD = run libavutil/base64-test fate-base64: CMD = run libavutil/tests/base64
FATE_LIBAVUTIL += fate-blowfish FATE_LIBAVUTIL += fate-blowfish
fate-blowfish: libavutil/blowfish-test$(EXESUF) fate-blowfish: libavutil/tests/blowfish$(EXESUF)
fate-blowfish: CMD = run libavutil/blowfish-test fate-blowfish: CMD = run libavutil/tests/blowfish
FATE_LIBAVUTIL += fate-cpu FATE_LIBAVUTIL += fate-cpu
fate-cpu: libavutil/cpu-test$(EXESUF) fate-cpu: libavutil/tests/cpu$(EXESUF)
fate-cpu: CMD = run libavutil/cpu-test $(CPUFLAGS:%=-c%) $(THREADS:%=-t%) fate-cpu: CMD = run libavutil/tests/cpu $(CPUFLAGS:%=-c%) $(THREADS:%=-t%)
fate-cpu: REF = /dev/null fate-cpu: REF = /dev/null
FATE_LIBAVUTIL += fate-crc FATE_LIBAVUTIL += fate-crc
fate-crc: libavutil/crc-test$(EXESUF) fate-crc: libavutil/tests/crc$(EXESUF)
fate-crc: CMD = run libavutil/crc-test fate-crc: CMD = run libavutil/tests/crc
FATE_LIBAVUTIL += fate-des FATE_LIBAVUTIL += fate-des
fate-des: libavutil/des-test$(EXESUF) fate-des: libavutil/tests/des$(EXESUF)
fate-des: CMD = run libavutil/des-test fate-des: CMD = run libavutil/tests/des
fate-des: REF = /dev/null fate-des: REF = /dev/null
FATE_LIBAVUTIL += fate-eval FATE_LIBAVUTIL += fate-eval
fate-eval: libavutil/eval-test$(EXESUF) fate-eval: libavutil/tests/eval$(EXESUF)
fate-eval: CMD = run libavutil/eval-test fate-eval: CMD = run libavutil/tests/eval
FATE_LIBAVUTIL += fate-fifo FATE_LIBAVUTIL += fate-fifo
fate-fifo: libavutil/fifo-test$(EXESUF) fate-fifo: libavutil/tests/fifo$(EXESUF)
fate-fifo: CMD = run libavutil/fifo-test fate-fifo: CMD = run libavutil/tests/fifo
FATE_LIBAVUTIL += fate-float-dsp FATE_LIBAVUTIL += fate-float-dsp
fate-float-dsp: libavutil/float_dsp-test$(EXESUF) fate-float-dsp: libavutil/tests/float_dsp$(EXESUF)
fate-float-dsp: CMD = run libavutil/float_dsp-test fate-float-dsp: CMD = run libavutil/tests/float_dsp
fate-float-dsp: CMP = null fate-float-dsp: CMP = null
fate-float-dsp: REF = /dev/null fate-float-dsp: REF = /dev/null
FATE_LIBAVUTIL += fate-hmac FATE_LIBAVUTIL += fate-hmac
fate-hmac: libavutil/hmac-test$(EXESUF) fate-hmac: libavutil/tests/hmac$(EXESUF)
fate-hmac: CMD = run libavutil/hmac-test fate-hmac: CMD = run libavutil/tests/hmac
FATE_LIBAVUTIL += fate-md5 FATE_LIBAVUTIL += fate-md5
fate-md5: libavutil/md5-test$(EXESUF) fate-md5: libavutil/tests/md5$(EXESUF)
fate-md5: CMD = run libavutil/md5-test fate-md5: CMD = run libavutil/tests/md5
FATE_LIBAVUTIL += fate-parseutils FATE_LIBAVUTIL += fate-parseutils
fate-parseutils: libavutil/parseutils-test$(EXESUF) fate-parseutils: libavutil/tests/parseutils$(EXESUF)
fate-parseutils: CMD = run libavutil/parseutils-test fate-parseutils: CMD = run libavutil/tests/parseutils
FATE_LIBAVUTIL += fate-sha FATE_LIBAVUTIL += fate-sha
fate-sha: libavutil/sha-test$(EXESUF) fate-sha: libavutil/tests/sha$(EXESUF)
fate-sha: CMD = run libavutil/sha-test fate-sha: CMD = run libavutil/tests/sha
FATE_LIBAVUTIL += fate-tree FATE_LIBAVUTIL += fate-tree
fate-tree: libavutil/tree-test$(EXESUF) fate-tree: libavutil/tests/tree$(EXESUF)
fate-tree: CMD = run libavutil/tree-test fate-tree: CMD = run libavutil/tests/tree
fate-tree: REF = /dev/null fate-tree: REF = /dev/null
FATE_LIBAVUTIL += fate-xtea FATE_LIBAVUTIL += fate-xtea
fate-xtea: libavutil/xtea-test$(EXESUF) fate-xtea: libavutil/tests/xtea$(EXESUF)
fate-xtea: CMD = run libavutil/xtea-test fate-xtea: CMD = run libavutil/tests/xtea
FATE-$(CONFIG_AVUTIL) += $(FATE_LIBAVUTIL) FATE-$(CONFIG_AVUTIL) += $(FATE_LIBAVUTIL)
fate-libavutil: $(FATE_LIBAVUTIL) fate-libavutil: $(FATE_LIBAVUTIL)

@ -218,8 +218,8 @@ fate-seek-lavf-yuv4mpeg: SRC = lavf/lavf.y4m
FATE_SEEK += $(FATE_SEEK_LAVF-yes:%=fate-seek-lavf-%) FATE_SEEK += $(FATE_SEEK_LAVF-yes:%=fate-seek-lavf-%)
$(FATE_SEEK): libavformat/seek-test$(EXESUF) $(FATE_SEEK): libavformat/tests/seek$(EXESUF)
$(FATE_SEEK): CMD = run libavformat/seek-test$(EXESUF) $(TARGET_PATH)/tests/data/$(SRC) $(FATE_SEEK): CMD = run libavformat/tests/seek$(EXESUF) $(TARGET_PATH)/tests/data/$(SRC)
$(FATE_SEEK): fate-seek-%: fate-% $(FATE_SEEK): fate-seek-%: fate-%
fate-seek-%: REF = $(SRC_PATH)/tests/ref/seek/$(@:fate-seek-%=%) fate-seek-%: REF = $(SRC_PATH)/tests/ref/seek/$(@:fate-seek-%=%)

Loading…
Cancel
Save