#vorbis_selftests = test_codebook test_sharedbook
vorbis_selftests = test_sharedbook
-TESTS = $(vorbis_selftests)
noinst_PROGRAMS = $(vorbis_selftests)
-test_codebook_SOURCES = codebook.c
-test_codebook_CFLAGS = -D_V_SELFTEST
+check: $(noinst_PROGRAMS)
+ ./test_sharedbook$(EXEEXT)
+
+#test_codebook_SOURCES = codebook.c
+#test_codebook_CFLAGS = -D_V_SELFTEST
test_sharedbook_SOURCES = sharedbook.c
test_sharedbook_CFLAGS = -D_V_SELFTEST
INCLUDES = -I$(top_srcdir)/include @OGG_CFLAGS@
-TESTS = test
-
noinst_PROGRAMS = test
+check: $(noinst_PROGRAMS)
+ ./test$(EXEEXT)
+
test_SOURCES = util.c util.h write_read.c write_read.h test.c
test_LDADD = ../lib/libvorbisenc.la ../lib/libvorbis.la @OGG_LIBS@