tests: Move all test programs to a subdirectory
authorDiego Biurrun <diego@biurrun.de>
Wed, 20 Apr 2016 09:40:40 +0000 (11:40 +0200)
committerDiego Biurrun <diego@biurrun.de>
Fri, 13 May 2016 12:55:56 +0000 (14:55 +0200)
60 files changed:
.gitignore
common.mak
libavcodec/Makefile
libavcodec/tests/.gitignore [new file with mode: 0644]
libavcodec/tests/arm/dct.c [moved from libavcodec/arm/dct-test.c with 97% similarity]
libavcodec/tests/dct.c [moved from libavcodec/dct-test.c with 97% similarity]
libavcodec/tests/fft-fixed.c [moved from libavcodec/fft-fixed-test.c with 97% similarity]
libavcodec/tests/fft.c [moved from libavcodec/fft-test.c with 99% similarity]
libavcodec/tests/golomb.c [moved from libavcodec/golomb-test.c with 96% similarity]
libavcodec/tests/iirfilter.c [moved from libavcodec/iirfilter-test.c with 97% similarity]
libavcodec/tests/ppc/dct.c [moved from libavcodec/ppc/dct-test.c with 96% similarity]
libavcodec/tests/rangecoder.c [moved from libavcodec/rangecoder-test.c with 97% similarity]
libavcodec/tests/x86/dct.c [moved from libavcodec/x86/dct-test.c with 96% similarity]
libavdevice/tests/timefilter.c [moved from libavdevice/timefilter-test.c with 98% similarity]
libavfilter/tests/.gitignore [new file with mode: 0644]
libavfilter/tests/filtfmts.c [moved from libavfilter/filtfmts-test.c with 100% similarity]
libavformat/tests/.gitignore [new file with mode: 0644]
libavformat/tests/movenc.c [moved from libavformat/movenc-test.c with 99% similarity]
libavformat/tests/noproxy.c [moved from libavformat/noproxy-test.c with 97% similarity]
libavformat/tests/rtmpdh.c [moved from libavformat/rtmpdh-test.c with 99% similarity]
libavformat/tests/seek.c [moved from libavformat/seek-test.c with 99% similarity]
libavformat/tests/srtp.c [moved from libavformat/srtp-test.c with 98% similarity]
libavformat/tests/url.c [moved from libavformat/url-test.c with 98% similarity]
libavresample/tests/.gitignore [new file with mode: 0644]
libavresample/tests/avresample.c [moved from libavresample/avresample-test.c with 99% similarity]
libavutil/des.c
libavutil/tests/.gitignore [new file with mode: 0644]
libavutil/tests/adler32.c [moved from libavutil/adler32-test.c with 94% similarity]
libavutil/tests/aes.c [moved from libavutil/aes-test.c with 97% similarity]
libavutil/tests/atomic.c [moved from libavutil/atomic-test.c with 97% similarity]
libavutil/tests/avstring.c [moved from libavutil/avstring-test.c with 95% similarity]
libavutil/tests/base64.c [moved from libavutil/base64-test.c with 97% similarity]
libavutil/tests/blowfish.c [moved from libavutil/blowfish-test.c with 99% similarity]
libavutil/tests/cpu.c [moved from libavutil/cpu-test.c with 97% similarity]
libavutil/tests/crc.c [moved from libavutil/crc-test.c with 98% similarity]
libavutil/tests/des.c [moved from libavutil/des-test.c with 98% similarity]
libavutil/tests/eval.c [moved from libavutil/eval-test.c with 97% similarity]
libavutil/tests/fifo.c [moved from libavutil/fifo-test.c with 98% similarity]
libavutil/tests/float_dsp.c [moved from libavutil/float_dsp-test.c with 98% similarity]
libavutil/tests/hmac.c [moved from libavutil/hmac-test.c with 99% similarity]
libavutil/tests/lfg.c [moved from libavutil/lfg-test.c with 94% similarity]
libavutil/tests/lls.c [moved from libavutil/lls-test.c with 95% similarity]
libavutil/tests/md5.c [moved from libavutil/md5-test.c with 98% similarity]
libavutil/tests/opt.c [moved from libavutil/opt-test.c with 95% similarity]
libavutil/tests/parseutils.c [moved from libavutil/parseutils-test.c with 95% similarity]
libavutil/tests/sha.c [moved from libavutil/sha-test.c with 98% similarity]
libavutil/tests/tree.c [moved from libavutil/tree-test.c with 96% similarity]
libavutil/tests/xtea.c [moved from libavutil/xtea-test.c with 98% similarity]
library.mak
libswscale/tests/.gitignore [new file with mode: 0644]
libswscale/tests/colorspace.c [moved from libswscale/colorspace-test.c with 98% similarity]
libswscale/tests/swscale.c [moved from libswscale/swscale-test.c with 99% similarity]
tests/fate-run.sh
tests/fate/fft.mak
tests/fate/filter-video.mak
tests/fate/libavcodec.mak
tests/fate/libavdevice.mak
tests/fate/libavformat.mak
tests/fate/libavutil.mak
tests/fate/seek.mak

index a191731ee097f8a6a5703ad9e17c4126b6bf0a69..5464bba7e6f6f17a75e49865912e07f5e6511923 100644 (file)
@@ -17,7 +17,6 @@
 *.so.*
 *.swp
 *.ver
-*-test
 /.config
 /.version
 /avconv
index 832025d10cf649008b2aceef649bdd463df5c43d..d62f899dad83f0a68299377714579b7f7cc5920b 100644 (file)
@@ -15,8 +15,8 @@ LDLIBS       = $(FFLIBS:%=%$(BUILDSUF))
 FFEXTRALIBS := $(LDLIBS:%=$(LD_LIB)) $(EXTRALIBS)
 
 OBJS      := $(sort $(OBJS:%=$(SUBDIR)%))
-TESTOBJS  := $(TESTOBJS:%=$(SUBDIR)%) $(TESTPROGS:%=$(SUBDIR)%-test.o)
-TESTPROGS := $(TESTPROGS:%=$(SUBDIR)%-test$(EXESUF))
+TESTOBJS  := $(TESTOBJS:%=$(SUBDIR)tests/%) $(TESTPROGS:%=$(SUBDIR)tests/%.o)
+TESTPROGS := $(TESTPROGS:%=$(SUBDIR)tests/%$(EXESUF))
 HOSTOBJS  := $(HOSTPROGS:%=$(SUBDIR)%.o)
 HOSTPROGS := $(HOSTPROGS:%=$(SUBDIR)%$(HOSTEXESUF))
 TOOLS     += $(TOOLS-yes)
@@ -58,8 +58,7 @@ LIBSUFFIXES       = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a
 
 define RULES
 clean::
-       $(RM) $(HOSTPROGS)
-       $(RM) $(TOOLS)
+       $(RM) $(HOSTPROGS) $(TESTPROGS) $(TOOLS)
 endef
 
 $(eval $(RULES))
index d12c52e819dc7eae5d44ef29f194b4f0b1fcd5db..503ffd0eb426079800f66eba450d2464a85df4dd 100644 (file)
@@ -813,7 +813,7 @@ HOSTPROGS = aac_tablegen                                                \
 
 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
 
 TRIG_TABLES  = cos cos_fixed sin
diff --git a/libavcodec/tests/.gitignore b/libavcodec/tests/.gitignore
new file mode 100644 (file)
index 0000000..31fa59b
--- /dev/null
@@ -0,0 +1,6 @@
+/dct
+/fft
+/fft-fixed
+/golomb
+/iirfilter
+/rangecoder
similarity index 97%
rename from libavcodec/arm/dct-test.c
rename to libavcodec/tests/arm/dct.c
index 70e5c1cb8200fc211c3a4333f70868c704416aec..d18cb52b60ebce6c6da396f3477ca90bb387918e 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "config.h"
 
-#include "idct.h"
+#include "libavcodec/arm/idct.h"
 
 static const struct algo fdct_tab_arch[] = {
     { 0 }
similarity index 97%
rename from libavcodec/dct-test.c
rename to libavcodec/tests/dct.c
index 262319e1b4e4c1c5d8f63ecaae9e024758599ced..6c6a4e0d0d27f408c39790a907de505eb5ecdeb3 100644 (file)
 
 #include "libavutil/cpu.h"
 #include "libavutil/common.h"
+#include "libavutil/internal.h"
 #include "libavutil/lfg.h"
 #include "libavutil/time.h"
 
-#include "dct.h"
-#include "idctdsp.h"
-#include "simple_idct.h"
-#include "xvididct.h"
-#include "aandcttab.h"
-#include "faandct.h"
-#include "faanidct.h"
-#include "dctref.h"
+#include "libavcodec/aandcttab.h"
+#include "libavcodec/dct.h"
+#include "libavcodec/dctref.h"
+#include "libavcodec/faandct.h"
+#include "libavcodec/faanidct.h"
+#include "libavcodec/idctdsp.h"
+#include "libavcodec/simple_idct.h"
+#include "libavcodec/xvididct.h"
 
 struct algo {
     const char *name;
@@ -78,11 +79,11 @@ static const struct algo idct_tab[] = {
 };
 
 #if ARCH_ARM
-#include "arm/dct-test.c"
+#include "arm/dct.c"
 #elif ARCH_PPC
-#include "ppc/dct-test.c"
+#include "ppc/dct.c"
 #elif ARCH_X86
-#include "x86/dct-test.c"
+#include "x86/dct.c"
 #else
 static const struct algo fdct_tab_arch[] = { { 0 } };
 static const struct algo idct_tab_arch[] = { { 0 } };
similarity index 97%
rename from libavcodec/fft-fixed-test.c
rename to libavcodec/tests/fft-fixed.c
index d6ea987fa3f1ca551c0f2673ae32cf210d1e1aa6..6edd810b25e7e19f941f076900bd8e8c70cc7226 100644 (file)
@@ -17,4 +17,4 @@
  */
 
 #define FFT_FLOAT 0
-#include "fft-test.c"
+#include "fft.c"
similarity index 99%
rename from libavcodec/fft-test.c
rename to libavcodec/tests/fft.c
index 83b5546f0826e98594a82776898889fb70fc79cd..db1ce9807f937e8b1e858e7a13ee72eef725dd79 100644 (file)
 #include "libavutil/mathematics.h"
 #include "libavutil/time.h"
 
-#include "fft.h"
+#include "libavcodec/fft.h"
 #if FFT_FLOAT
-#include "dct.h"
-#include "rdft.h"
+#include "libavcodec/dct.h"
+#include "libavcodec/rdft.h"
 #endif
 
 /* reference fft */
similarity index 96%
rename from libavcodec/golomb-test.c
rename to libavcodec/tests/golomb.c
index e740a20aea77af2109a5cb9938e47bb4d3aa78d0..7587402e2483f13f26f3de45fae6bf041a702094 100644 (file)
@@ -21,9 +21,9 @@
 
 #include "libavutil/mem.h"
 
-#include "get_bits.h"
-#include "golomb.h"
-#include "put_bits.h"
+#include "libavcodec/get_bits.h"
+#include "libavcodec/put_bits.h"
+#include "libavcodec/golomb.h"
 
 #define COUNT 8191
 #define SIZE (COUNT * 4)
similarity index 97%
rename from libavcodec/iirfilter-test.c
rename to libavcodec/tests/iirfilter.c
index 5aa156cb905545be12779b884659c5c06a2908f3..a6001a3270e5f634f3f85d5c4c74afb260e32dd1 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "libavutil/libm.h"
 
-#include "iirfilter.h"
+#include "libavcodec/iirfilter.h"
 
 #define FILT_ORDER 4
 #define SIZE 1024
similarity index 96%
rename from libavcodec/ppc/dct-test.c
rename to libavcodec/tests/ppc/dct.c
index 2acbe2aeb04dcc49256d0f189abbe23b71fef063..3d160d33e0a9dc07a1c5198d77e2b1152261672d 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "config.h"
 
-#include "fdct.h"
+#include "libavcodec/ppc/fdct.h"
 
 static const struct algo fdct_tab_arch[] = {
 #if HAVE_ALTIVEC && HAVE_BIGENDIAN
similarity index 97%
rename from libavcodec/rangecoder-test.c
rename to libavcodec/tests/rangecoder.c
index f4c76c01f0e6f9e9cf39431697990b383db84767..26bb589928638fab7833708543629939b7871bee 100644 (file)
@@ -22,7 +22,7 @@
 #include "libavutil/lfg.h"
 #include "libavutil/log.h"
 
-#include "rangecoder.h"
+#include "libavcodec/rangecoder.h"
 
 #define SIZE 10240
 
similarity index 96%
rename from libavcodec/x86/dct-test.c
rename to libavcodec/tests/x86/dct.c
index 9d4aaf54155dfaab08e6851dcc4f0f5d219a4c5e..2ddb55510ea2df775e34c39fa4dca53435c4fafc 100644 (file)
@@ -18,9 +18,9 @@
 
 #include "config.h"
 
-#include "fdct.h"
-#include "xvididct.h"
-#include "simple_idct.h"
+#include "libavcodec/x86/fdct.h"
+#include "libavcodec/x86/xvididct.h"
+#include "libavcodec/x86/simple_idct.h"
 
 static const struct algo fdct_tab_arch[] = {
 #if HAVE_MMX_INLINE
similarity index 98%
rename from libavdevice/timefilter-test.c
rename to libavdevice/tests/timefilter.c
index 5e93f3c8d3a6e0f05237cb832daaaffc4fc763de..8c7cba2cac20514aecde71ef38d57f354ab9633d 100644 (file)
@@ -21,7 +21,7 @@
 #include "libavutil/common.h"
 #include "libavutil/lfg.h"
 
-#include "timefilter.h"
+#include "libavdevice/timefilter.h"
 
 #define LFG_MAX ((1LL << 32) - 1)
 
diff --git a/libavfilter/tests/.gitignore b/libavfilter/tests/.gitignore
new file mode 100644 (file)
index 0000000..a55b386
--- /dev/null
@@ -0,0 +1 @@
+/filtfmts
diff --git a/libavformat/tests/.gitignore b/libavformat/tests/.gitignore
new file mode 100644 (file)
index 0000000..cfd51f2
--- /dev/null
@@ -0,0 +1,5 @@
+/movenc
+/noproxy
+/seek
+/srtp
+/url
similarity index 99%
rename from libavformat/movenc-test.c
rename to libavformat/tests/movenc.c
index e7b67e1e7a0ecbe940a9b0855fef1a7357c3b5ba..711e1579b2b3bae5f1e86d41d2a918a40009802b 100644 (file)
@@ -24,7 +24,7 @@
 #include "libavutil/mathematics.h"
 #include "libavutil/md5.h"
 
-#include "avformat.h"
+#include "libavformat/avformat.h"
 
 #if HAVE_UNISTD_H
 #include <unistd.h>
similarity index 97%
rename from libavformat/noproxy-test.c
rename to libavformat/tests/noproxy.c
index e6cc4214137388ee649bc434b470f03888ccec9e..9daee052d9c15f85859193f3d3ab32757c969971 100644 (file)
@@ -18,7 +18,7 @@
  * 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)
 {
similarity index 99%
rename from libavformat/rtmpdh-test.c
rename to libavformat/tests/rtmpdh.c
index 603bb79ebcbf017dd79cce3974297b799e777192..c25ca91b7e05e4c8d334bcb919a90ff3dd4aca48 100644 (file)
@@ -16,7 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "rtmpdh.c"
+#include "libavformat/rtmpdh.c"
 
 #include <stdio.h>
 
similarity index 99%
rename from libavformat/seek-test.c
rename to libavformat/tests/seek.c
index 97062d5dfca304ddc091a133f03780ff5a741e5e..82da3744dbf196604367b82ca3cc17e0adb1d76f 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "libavutil/common.h"
 #include "libavutil/mathematics.h"
+
 #include "libavformat/avformat.h"
 
 static char buffer[20];
similarity index 98%
rename from libavformat/srtp-test.c
rename to libavformat/tests/srtp.c
index fe8749cb6608308f2073ce86b8248fc7571050e8..17031936204896b81cdd81f1e085cb7a77f205c7 100644 (file)
@@ -20,8 +20,8 @@
 #include <stdio.h>
 #include <string.h>
 
-#include "rtpdec.h"
-#include "srtp.h"
+#include "libavformat/rtpdec.h"
+#include "libavformat/srtp.h"
 
 static const char *aes128_80_key = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmn";
 
similarity index 98%
rename from libavformat/url-test.c
rename to libavformat/tests/url.c
index 503b36e5729746dacad46c179a66276f1ccb9101..ec33173e40908c870f8594a9b9e808595fdad8b2 100644 (file)
@@ -18,7 +18,7 @@
  * 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)
 {
diff --git a/libavresample/tests/.gitignore b/libavresample/tests/.gitignore
new file mode 100644 (file)
index 0000000..1e15871
--- /dev/null
@@ -0,0 +1 @@
+/avresample
similarity index 99%
rename from libavresample/avresample-test.c
rename to libavresample/tests/avresample.c
index 697b4ba799034ba44310a987e52b34f2a0bb85ad..77599960f829f886abb2fc3a6664f20b9b4b2d67 100644 (file)
@@ -30,7 +30,8 @@
 #include "libavutil/mem.h"
 #include "libavutil/opt.h"
 #include "libavutil/samplefmt.h"
-#include "avresample.h"
+
+#include "libavresample/avresample.h"
 
 static double dbl_rand(AVLFG *lfg)
 {
index 1dbedd92cd0f5e6d95a300ca61df8accb666172c..75a5d896fb16be827cadb5d205a61d934536cfd4 100644 (file)
@@ -111,7 +111,7 @@ static const uint8_t S_boxes[8][32] = {
 #else
 /**
  * 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] = {
     { 0x00808200, 0x00000000, 0x00008000, 0x00808202, 0x00808002, 0x00008202, 0x00000002, 0x00008000,
diff --git a/libavutil/tests/.gitignore b/libavutil/tests/.gitignore
new file mode 100644 (file)
index 0000000..c4d1d06
--- /dev/null
@@ -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
similarity index 94%
rename from libavutil/adler32-test.c
rename to libavutil/tests/adler32.c
index ab109f91753840c3494533c60aa4e1ea2dac46d4..323690056c7e08f09ae8938f16856cf65a1decde 100644 (file)
@@ -18,9 +18,9 @@
 
 #include <string.h>
 
-#include "log.h"
-#include "timer.h"
-#include "adler32.h"
+#include "libavutil/log.h"
+#include "libavutil/timer.h"
+#include "libavutil/adler32.h"
 
 #define LEN 7001
 
similarity index 97%
rename from libavutil/aes-test.c
rename to libavutil/tests/aes.c
index afb5ad3685be37cb90da0141e14c87de76bd5cb2..49ca553e0a12d11a90d14850a2e550fc55d3f4d7 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "aes.c"
+#include "libavutil/aes.c"
 
 #include <string.h>
 
-#include "lfg.h"
-#include "log.h"
+#include "libavutil/lfg.h"
+#include "libavutil/log.h"
 
 int main(int argc, char **argv)
 {
similarity index 97%
rename from libavutil/atomic-test.c
rename to libavutil/tests/atomic.c
index c0a89a461ea634ddf4860bf91e5d675f3a0cd7d5..70636f42fbbd10660385d7d22b4f94a4160f3e5e 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <assert.h>
 
-#include "atomic.h"
+#include "libavutil/atomic.h"
 
 int main(void)
 {
similarity index 95%
rename from libavutil/avstring-test.c
rename to libavutil/tests/avstring.c
index fc4f0a415e1f2a81cefa0a9de2f48067bb611f8e..2e5ee2d44af697fb622f4ca12cc0789dee751ef7 100644 (file)
@@ -18,9 +18,9 @@
 
 #include <stdio.h>
 
-#include "common.h"
-#include "mem.h"
-#include "avstring.h"
+#include "libavutil/common.h"
+#include "libavutil/mem.h"
+#include "libavutil/avstring.h"
 
 int main(void)
 {
similarity index 97%
rename from libavutil/base64-test.c
rename to libavutil/tests/base64.c
index 3ce0518a84ec5cbb99bf0dd76c8efb2cb291022f..16ea3997889c60e2a4b532fd387ad2be3387de38 100644 (file)
@@ -19,8 +19,8 @@
 #include <stdint.h>
 #include <stdio.h>
 
-#include "common.h"
-#include "base64.h"
+#include "libavutil/common.h"
+#include "libavutil/base64.h"
 
 #define MAX_DATA_SIZE    1024
 #define MAX_ENCODED_SIZE 2048
similarity index 99%
rename from libavutil/blowfish-test.c
rename to libavutil/tests/blowfish.c
index 4281ca29bd63fd657dc4aa679f52092f7acb25b7..acaab70aebc57e83b169662a8234dd3a8e6eebc8 100644 (file)
@@ -21,7 +21,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "blowfish.h"
+#include "libavutil/blowfish.h"
 
 #define NUM_VARIABLE_KEY_TESTS 34
 
similarity index 97%
rename from libavutil/cpu-test.c
rename to libavutil/tests/cpu.c
index a2c3b38c0d7fd2864bfa2f4703fc0a9165a21c2b..176b7eb030fda8ddead3413a630b08a54e267da4 100644 (file)
@@ -27,9 +27,9 @@
 #include <stdint.h>
 #include <stdio.h>
 
-#include "avstring.h"
-#include "common.h"
-#include "cpu.h"
+#include "libavutil/avstring.h"
+#include "libavutil/common.h"
+#include "libavutil/cpu.h"
 
 static const struct {
     int flag;
similarity index 98%
rename from libavutil/crc-test.c
rename to libavutil/tests/crc.c
index ef15fb56690ee09f9b3730cd82c47e0e4c277faa..c2c609fba86bf4fdeb6abf44d8f09dbc65fd087c 100644 (file)
@@ -19,7 +19,7 @@
 #include <stdint.h>
 #include <stdio.h>
 
-#include "crc.h"
+#include "libavutil/crc.h"
 
 int main(void)
 {
similarity index 98%
rename from libavutil/des-test.c
rename to libavutil/tests/des.c
index a372035a5479da9d68e267ee26b893de0b4f1474..1e7a2fa50a90c009bc98f0a706615780a1a9173b 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "des.c"
+#include "libavutil/des.c"
 
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 
-#include "time.h"
+#include "libavutil/time.h"
 
 static uint64_t rand64(void)
 {
similarity index 97%
rename from libavutil/eval-test.c
rename to libavutil/tests/eval.c
index 3551f17b207fb2c134b74099eca0839efa4132c6..818c59ccdb33e57045e5fde0b37d8099bd0c39d9 100644 (file)
@@ -20,9 +20,9 @@
 #include <stdio.h>
 #include <string.h>
 
-#include "libm.h"
-#include "timer.h"
-#include "eval.h"
+#include "libavutil/libm.h"
+#include "libavutil/timer.h"
+#include "libavutil/eval.h"
 
 static const double const_values[] = {
     M_PI,
similarity index 98%
rename from libavutil/fifo-test.c
rename to libavutil/tests/fifo.c
index f6615b1034096a948256873a8d2032a49ef4a3fa..4c4b37a50113311d4465e0876f2831ba31616fb1 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <stdio.h>
 
-#include "fifo.h"
+#include "libavutil/fifo.h"
 
 int main(void)
 {
similarity index 98%
rename from libavutil/float_dsp-test.c
rename to libavutil/tests/float_dsp.c
index e24018c07d5a799013c0dfb81140a23ae6143233..ab6bf6a569b00cf8beaf4aa72dc22bd1a2b79692 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
-#include "cpu.h"
-#include "internal.h"
-#include "lfg.h"
-#include "log.h"
-#include "random_seed.h"
-#include "float_dsp.h"
+#include "libavutil/cpu.h"
+#include "libavutil/internal.h"
+#include "libavutil/lfg.h"
+#include "libavutil/log.h"
+#include "libavutil/random_seed.h"
+#include "libavutil/float_dsp.h"
 
 #define LEN 240
 
similarity index 99%
rename from libavutil/hmac-test.c
rename to libavutil/tests/hmac.c
index f97c8a6ab3ef1c100e9be7684408a3e62029b6b7..600240fe9754c4dd9a4f47238e5f2f51fbc54989 100644 (file)
@@ -16,7 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "hmac.c"
+#include "libavutil/hmac.c"
 
 #include <stdio.h>
 #include <string.h>
similarity index 94%
rename from libavutil/lfg-test.c
rename to libavutil/tests/lfg.c
index 92b4259a3c55d6593e56d33e8eb883ba8f2fb349..9a0c47c4de5654e91f5594786dbc99007b0269a8 100644 (file)
@@ -16,9 +16,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "log.h"
-#include "timer.h"
-#include "lfg.h"
+#include "libavutil/log.h"
+#include "libavutil/timer.h"
+#include "libavutil/lfg.h"
 
 int main(void)
 {
similarity index 95%
rename from libavutil/lls-test.c
rename to libavutil/tests/lls.c
index f9814b38636174564f926b5a0c7a62cf4f9c9695..7866b389988c6a2c2a413a48b870f0529b2f566e 100644 (file)
@@ -19,9 +19,9 @@
 #include <limits.h>
 #include <stdio.h>
 
-#include "internal.h"
-#include "lfg.h"
-#include "lls.h"
+#include "libavutil/internal.h"
+#include "libavutil/lfg.h"
+#include "libavutil/lls.h"
 
 int main(void)
 {
similarity index 98%
rename from libavutil/md5-test.c
rename to libavutil/tests/md5.c
index 8d5dd1e104f2ddf7480c3665af031478f7082ea3..9fb7006dd8f247cd350b77cf93df38df3a049959 100644 (file)
@@ -19,7 +19,7 @@
 #include <stdint.h>
 #include <stdio.h>
 
-#include "md5.h"
+#include "libavutil/md5.h"
 
 static void print_md5(uint8_t *md5)
 {
similarity index 95%
rename from libavutil/opt-test.c
rename to libavutil/tests/opt.c
index 6262b77e5bafe955acaaab68bb969111267e345d..350ce3d8202f42b739833916a240d514439a51a7 100644 (file)
 #include <limits.h>
 #include <stdio.h>
 
-#include "common.h"
-#include "error.h"
-#include "log.h"
-#include "mem.h"
-#include "rational.h"
-#include "opt.h"
+#include "libavutil/common.h"
+#include "libavutil/error.h"
+#include "libavutil/log.h"
+#include "libavutil/mem.h"
+#include "libavutil/rational.h"
+#include "libavutil/opt.h"
 
 typedef struct TestContext {
     const AVClass *class;
similarity index 95%
rename from libavutil/parseutils-test.c
rename to libavutil/tests/parseutils.c
index 149861f1d531b3a63f02efb41ef527f936c3786a..805c01ff5a8d45bdc1ea1ddc5858c89a9c0fe671 100644 (file)
 #include <stdint.h>
 #include <stdio.h>
 
-#include "common.h"
-#include "log.h"
-#include "rational.h"
-#include "parseutils.h"
+#include "libavutil/common.h"
+#include "libavutil/log.h"
+#include "libavutil/rational.h"
+#include "libavutil/parseutils.h"
 
 int main(void)
 {
similarity index 98%
rename from libavutil/sha-test.c
rename to libavutil/tests/sha.c
index 5f62a98ea38431b0b49099f891b175a2125e2c83..0f1d514b445644f8278be53ac14b59dd139aec07 100644 (file)
@@ -16,7 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "sha.c"
+#include "libavutil/sha.c"
 
 #include <stdio.h>
 
similarity index 96%
rename from libavutil/tree-test.c
rename to libavutil/tests/tree.c
index f93e53409d9a7ed437b412a8a1178daeaad6bc18..fb19b2789610c010bbc11a6016e3e1682c9e4eec 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include "tree.c"
+#include "libavutil/tree.c"
 
 #include <stdint.h>
 
-#include "common.h"
-#include "lfg.h"
-#include "log.h"
+#include "libavutil/common.h"
+#include "libavutil/lfg.h"
+#include "libavutil/log.h"
 
 static int check(AVTreeNode *t)
 {
similarity index 98%
rename from libavutil/xtea-test.c
rename to libavutil/tests/xtea.c
index 98445760ebab7db9f76a50899db16bd0824da626..326f2714a92a2f083c58db9457e4eea985133eea 100644 (file)
@@ -21,8 +21,8 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "intreadwrite.h"
-#include "xtea.h"
+#include "libavutil/intreadwrite.h"
+#include "libavutil/xtea.h"
 
 #define XTEA_NUM_TESTS 6
 
index c980c3dbe30481c8cefdd8ea97cf4d35aabc55d7..712b7e1c6ea5e09923e3530f3d7f23bdbc30086c 100644 (file)
@@ -44,11 +44,12 @@ $(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS) $(SUBDIR)lib$(NAME).ver $(DEP_LIBS)
        $(SLIB_EXTRA_CMD)
 
 clean::
-       $(RM) $(addprefix $(SUBDIR),*-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
-           $(CLEANSUFFIXES:%=$(SUBDIR)$(ARCH)/%)
+       $(RM) $(addprefix $(SUBDIR),$(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
+           $(CLEANSUFFIXES:%=$(SUBDIR)$(ARCH)/%) $(CLEANSUFFIXES:%=$(SUBDIR)tests/%)
 
 distclean:: clean
-       $(RM) $(DISTCLEANSUFFIXES:%=$(SUBDIR)%) $(DISTCLEANSUFFIXES:%=$(SUBDIR)$(ARCH)/%)
+       $(RM) $(DISTCLEANSUFFIXES:%=$(SUBDIR)%) $(DISTCLEANSUFFIXES:%=$(SUBDIR)$(ARCH)/%) \
+            $(DISTCLEANSUFFIXES:%=$(SUBDIR)tests/%)
 
 install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
        $(Q)mkdir -p "$(SHLIBDIR)"
diff --git a/libswscale/tests/.gitignore b/libswscale/tests/.gitignore
new file mode 100644 (file)
index 0000000..0ac3691
--- /dev/null
@@ -0,0 +1,2 @@
+/colorspace
+/swscale
similarity index 98%
rename from libswscale/colorspace-test.c
rename to libswscale/tests/colorspace.c
index fbf595d4c1a6a026f5a7da677f96e67afc70535d..962b11a8570891996d966b7132a8a48dee6ee29d 100644 (file)
 #include <stdlib.h>
 #include <inttypes.h>
 
-#include "swscale.h"
-#include "rgb2rgb.h"
 #include "libavutil/mem.h"
 
+#include "libswscale/rgb2rgb.h"
+#include "libswscale/swscale.h"
+
 #define SIZE    1000
 #define srcByte 0x55
 #define dstByte 0xBB
similarity index 99%
rename from libswscale/swscale-test.c
rename to libswscale/tests/swscale.c
index 8063519be15f45bfd3684abe57db82427057fca7..309ef812c7adf17727c8dcdedfb38835ec291e71 100644 (file)
@@ -31,7 +31,8 @@
 #include "libavutil/crc.h"
 #include "libavutil/pixdesc.h"
 #include "libavutil/lfg.h"
-#include "swscale.h"
+
+#include "libswscale/swscale.h"
 
 /* HACK Duplicated from swscale_internal.h.
  * Should be removed when a cleaner pixel format system exists. */
index 9edfa9aeb68147b882ecb3670436a0424262f270..d11ca3c1f7c23af230219fe0e3a8022d4ad35493 100755 (executable)
@@ -167,7 +167,7 @@ pixfmts(){
     filter=${test#filter-pixfmts-}
     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
     out_fmts=${outfile}${filter}_out_fmts
 
index 6349e5ac75aca322e2ab6a818d18a26788a19a1c..3360a07e662077e7f9836468d833011fac38ba00 100644 (file)
@@ -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): libavcodec/fft-test$(EXESUF)
-$(FATE_FFT_ALL): CMD = run libavcodec/fft-test $(CPUFLAGS:%=-c%) $(ARGS)
+$(FATE_FFT_ALL): libavcodec/tests/fft$(EXESUF)
+$(FATE_FFT_ALL): CMD = run libavcodec/tests/fft $(CPUFLAGS:%=-c%) $(ARGS)
 
 define DEF_FFT_FIXED
 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): libavcodec/fft-fixed-test$(EXESUF)
-$(FATE_FFT_FIXED_ALL): CMD = run libavcodec/fft-fixed-test $(CPUFLAGS:%=-c%) $(ARGS)
+$(FATE_FFT_FIXED_ALL): libavcodec/tests/fft-fixed$(EXESUF)
+$(FATE_FFT_FIXED_ALL): CMD = run libavcodec/tests/fft-fixed $(CPUFLAGS:%=-c%) $(ARGS)
 
 $(FATE_FFT_ALL) $(FATE_FFT_FIXED_ALL): REF = /dev/null
 
index 42fb0635473caebf6d6964f6c16c3e24f3336676..d9315480e422c015a096c586ccceec9a7fce064f 100644 (file)
@@ -160,7 +160,7 @@ fate-filter-pixfmts-scale: CMD = pixfmts "200:100"
 FATE_FILTER_PIXFMTS += fate-filter-pixfmts-vflip
 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)
 
 
index 138a1b2dcf52602f5df9fcaa225d4eb804147992..d656acefb773d9f9baf52e2ca3a881e404f741d1 100644 (file)
@@ -1,21 +1,21 @@
 FATE_LIBAVCODEC-$(CONFIG_GOLOMB) += fate-golomb
-fate-golomb: libavcodec/golomb-test$(EXESUF)
-fate-golomb: CMD = run libavcodec/golomb-test
+fate-golomb: libavcodec/tests/golomb$(EXESUF)
+fate-golomb: CMD = run libavcodec/tests/golomb
 fate-golomb: REF = /dev/null
 
 FATE_LIBAVCODEC-$(CONFIG_IDCTDSP) += fate-idct8x8
-fate-idct8x8: libavcodec/dct-test$(EXESUF)
-fate-idct8x8: CMD = run libavcodec/dct-test -i
+fate-idct8x8: libavcodec/tests/dct$(EXESUF)
+fate-idct8x8: CMD = run libavcodec/tests/dct -i
 fate-idct8x8: CMP = null
 fate-idct8x8: REF = /dev/null
 
 FATE_LIBAVCODEC-$(CONFIG_IIRFILTER) += fate-iirfilter
-fate-iirfilter: libavcodec/iirfilter-test$(EXESUF)
-fate-iirfilter: CMD = run libavcodec/iirfilter-test
+fate-iirfilter: libavcodec/tests/iirfilter$(EXESUF)
+fate-iirfilter: CMD = run libavcodec/tests/iirfilter
 
 FATE_LIBAVCODEC-$(CONFIG_RANGECODER) += fate-rangecoder
-fate-rangecoder: libavcodec/rangecoder-test$(EXESUF)
-fate-rangecoder: CMD = run libavcodec/rangecoder-test
+fate-rangecoder: libavcodec/tests/rangecoder$(EXESUF)
+fate-rangecoder: CMD = run libavcodec/tests/rangecoder
 fate-rangecoder: CMP = null
 fate-rangecoder: REF = /dev/null
 
index b30ae99779cf2322f9be33d9e48a1cdf111a0cf0..e983327a50233f363e25ed53882f113153ba3ee0 100644 (file)
@@ -1,6 +1,6 @@
 FATE_LIBAVDEVICE-$(CONFIG_JACK_INDEV) += fate-timefilter
-fate-timefilter: libavdevice/timefilter-test$(EXESUF)
-fate-timefilter: CMD = run libavdevice/timefilter-test
+fate-timefilter: libavdevice/tests/timefilter$(EXESUF)
+fate-timefilter: CMD = run libavdevice/tests/timefilter
 
 FATE-$(CONFIG_AVDEVICE) += $(FATE_LIBAVDEVICE-yes)
 fate-libavdevice: $(FATE_LIBAVDEVICE-yes)
index e98e0eee1e7a322411ab0b4047341c1004646b4a..30f0e03cb85b65619a187a866824ad742510b2b2 100644 (file)
@@ -1,22 +1,22 @@
 FATE_LIBAVFORMAT-$(CONFIG_NETWORK) += fate-noproxy
-fate-noproxy: libavformat/noproxy-test$(EXESUF)
-fate-noproxy: CMD = run libavformat/noproxy-test
+fate-noproxy: libavformat/tests/noproxy$(EXESUF)
+fate-noproxy: CMD = run libavformat/tests/noproxy
 
 FATE_LIBAVFORMAT-$(CONFIG_FFRTMPCRYPT_PROTOCOL) += fate-rtmpdh
-fate-rtmpdh: libavformat/rtmpdh-test$(EXESUF)
-fate-rtmpdh: CMD = run libavformat/rtmpdh-test
+fate-rtmpdh: libavformat/tests/rtmpdh$(EXESUF)
+fate-rtmpdh: CMD = run libavformat/tests/rtmpdh
 
 FATE_LIBAVFORMAT-$(CONFIG_SRTP) += fate-srtp
-fate-srtp: libavformat/srtp-test$(EXESUF)
-fate-srtp: CMD = run libavformat/srtp-test
+fate-srtp: libavformat/tests/srtp$(EXESUF)
+fate-srtp: CMD = run libavformat/tests/srtp
 
 FATE_LIBAVFORMAT-yes += fate-url
-fate-url: libavformat/url-test$(EXESUF)
-fate-url: CMD = run libavformat/url-test
+fate-url: libavformat/tests/url$(EXESUF)
+fate-url: CMD = run libavformat/tests/url
 
 FATE_LIBAVFORMAT-$(CONFIG_MOV_MUXER) += fate-movenc
-fate-movenc: libavformat/movenc-test$(EXESUF)
-fate-movenc: CMD = run libavformat/movenc-test
+fate-movenc: libavformat/tests/movenc$(EXESUF)
+fate-movenc: CMD = run libavformat/tests/movenc
 
 FATE-$(CONFIG_AVFORMAT) += $(FATE_LIBAVFORMAT-yes)
 fate-libavformat: $(FATE_LIBAVFORMAT)
index 7f3329b1d5c2500896f31f5c6a424ac9da4b1055..69e4042a8bf5949f71dd83a17f341e03c4ee73f7 100644 (file)
@@ -1,82 +1,82 @@
 FATE_LIBAVUTIL += fate-adler32
-fate-adler32: libavutil/adler32-test$(EXESUF)
-fate-adler32: CMD = run libavutil/adler32-test
+fate-adler32: libavutil/tests/adler32$(EXESUF)
+fate-adler32: CMD = run libavutil/tests/adler32
 fate-adler32: REF = /dev/null
 
 FATE_LIBAVUTIL += fate-aes
-fate-aes: libavutil/aes-test$(EXESUF)
-fate-aes: CMD = run libavutil/aes-test
+fate-aes: libavutil/tests/aes$(EXESUF)
+fate-aes: CMD = run libavutil/tests/aes
 fate-aes: REF = /dev/null
 
 FATE_LIBAVUTIL += fate-atomic
-fate-atomic: libavutil/atomic-test$(EXESUF)
-fate-atomic: CMD = run libavutil/atomic-test
+fate-atomic: libavutil/tests/atomic$(EXESUF)
+fate-atomic: CMD = run libavutil/tests/atomic
 fate-atomic: REF = /dev/null
 
 FATE_LIBAVUTIL += fate-avstring
-fate-avstring: libavutil/avstring-test$(EXESUF)
-fate-avstring: CMD = run libavutil/avstring-test
+fate-avstring: libavutil/tests/avstring$(EXESUF)
+fate-avstring: CMD = run libavutil/tests/avstring
 
 FATE_LIBAVUTIL += fate-base64
-fate-base64: libavutil/base64-test$(EXESUF)
-fate-base64: CMD = run libavutil/base64-test
+fate-base64: libavutil/tests/base64$(EXESUF)
+fate-base64: CMD = run libavutil/tests/base64
 
 FATE_LIBAVUTIL += fate-blowfish
-fate-blowfish: libavutil/blowfish-test$(EXESUF)
-fate-blowfish: CMD = run libavutil/blowfish-test
+fate-blowfish: libavutil/tests/blowfish$(EXESUF)
+fate-blowfish: CMD = run libavutil/tests/blowfish
 
 FATE_LIBAVUTIL += fate-cpu
-fate-cpu: libavutil/cpu-test$(EXESUF)
-fate-cpu: CMD = run libavutil/cpu-test $(CPUFLAGS:%=-c%) $(THREADS:%=-t%)
+fate-cpu: libavutil/tests/cpu$(EXESUF)
+fate-cpu: CMD = run libavutil/tests/cpu $(CPUFLAGS:%=-c%) $(THREADS:%=-t%)
 fate-cpu: REF = /dev/null
 
 FATE_LIBAVUTIL += fate-crc
-fate-crc: libavutil/crc-test$(EXESUF)
-fate-crc: CMD = run libavutil/crc-test
+fate-crc: libavutil/tests/crc$(EXESUF)
+fate-crc: CMD = run libavutil/tests/crc
 
 FATE_LIBAVUTIL += fate-des
-fate-des: libavutil/des-test$(EXESUF)
-fate-des: CMD = run libavutil/des-test
+fate-des: libavutil/tests/des$(EXESUF)
+fate-des: CMD = run libavutil/tests/des
 fate-des: REF = /dev/null
 
 FATE_LIBAVUTIL += fate-eval
-fate-eval: libavutil/eval-test$(EXESUF)
-fate-eval: CMD = run libavutil/eval-test
+fate-eval: libavutil/tests/eval$(EXESUF)
+fate-eval: CMD = run libavutil/tests/eval
 
 FATE_LIBAVUTIL += fate-fifo
-fate-fifo: libavutil/fifo-test$(EXESUF)
-fate-fifo: CMD = run libavutil/fifo-test
+fate-fifo: libavutil/tests/fifo$(EXESUF)
+fate-fifo: CMD = run libavutil/tests/fifo
 
 FATE_LIBAVUTIL += fate-float-dsp
-fate-float-dsp: libavutil/float_dsp-test$(EXESUF)
-fate-float-dsp: CMD = run libavutil/float_dsp-test
+fate-float-dsp: libavutil/tests/float_dsp$(EXESUF)
+fate-float-dsp: CMD = run libavutil/tests/float_dsp
 fate-float-dsp: CMP = null
 fate-float-dsp: REF = /dev/null
 
 FATE_LIBAVUTIL += fate-hmac
-fate-hmac: libavutil/hmac-test$(EXESUF)
-fate-hmac: CMD = run libavutil/hmac-test
+fate-hmac: libavutil/tests/hmac$(EXESUF)
+fate-hmac: CMD = run libavutil/tests/hmac
 
 FATE_LIBAVUTIL += fate-md5
-fate-md5: libavutil/md5-test$(EXESUF)
-fate-md5: CMD = run libavutil/md5-test
+fate-md5: libavutil/tests/md5$(EXESUF)
+fate-md5: CMD = run libavutil/tests/md5
 
 FATE_LIBAVUTIL += fate-parseutils
-fate-parseutils: libavutil/parseutils-test$(EXESUF)
-fate-parseutils: CMD = run libavutil/parseutils-test
+fate-parseutils: libavutil/tests/parseutils$(EXESUF)
+fate-parseutils: CMD = run libavutil/tests/parseutils
 
 FATE_LIBAVUTIL += fate-sha
-fate-sha: libavutil/sha-test$(EXESUF)
-fate-sha: CMD = run libavutil/sha-test
+fate-sha: libavutil/tests/sha$(EXESUF)
+fate-sha: CMD = run libavutil/tests/sha
 
 FATE_LIBAVUTIL += fate-tree
-fate-tree: libavutil/tree-test$(EXESUF)
-fate-tree: CMD = run libavutil/tree-test
+fate-tree: libavutil/tests/tree$(EXESUF)
+fate-tree: CMD = run libavutil/tests/tree
 fate-tree: REF = /dev/null
 
 FATE_LIBAVUTIL += fate-xtea
-fate-xtea: libavutil/xtea-test$(EXESUF)
-fate-xtea: CMD = run libavutil/xtea-test
+fate-xtea: libavutil/tests/xtea$(EXESUF)
+fate-xtea: CMD = run libavutil/tests/xtea
 
 FATE-$(CONFIG_AVUTIL) += $(FATE_LIBAVUTIL)
 fate-libavutil: $(FATE_LIBAVUTIL)
index 88555f7e553d2e589e5cfc14accd9fe116dd469a..60adab2085f37a8ae7cad111c861cc46b7af0d07 100644 (file)
@@ -218,8 +218,8 @@ fate-seek-lavf-yuv4mpeg: SRC = lavf/lavf.y4m
 
 FATE_SEEK += $(FATE_SEEK_LAVF-yes:%=fate-seek-lavf-%)
 
-$(FATE_SEEK): libavformat/seek-test$(EXESUF)
-$(FATE_SEEK): CMD = run libavformat/seek-test$(EXESUF) $(TARGET_PATH)/tests/data/$(SRC)
+$(FATE_SEEK): libavformat/tests/seek$(EXESUF)
+$(FATE_SEEK): CMD = run libavformat/tests/seek$(EXESUF) $(TARGET_PATH)/tests/data/$(SRC)
 $(FATE_SEEK): fate-seek-%: fate-%
 fate-seek-%: REF = $(SRC_PATH)/tests/ref/seek/$(@:fate-seek-%=%)