2007-05-14 09:55:24 +00:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2006-10-15 11:05:45 +00:00
|
|
|
if ENABLE_TEST_COVERAGE
|
2007-08-10 11:37:39 +00:00
|
|
|
CPP_TEST =
|
2006-10-15 11:05:45 +00:00
|
|
|
else
|
2006-10-17 11:28:32 +00:00
|
|
|
CPP_TEST = cpp_test
|
2006-10-15 11:05:45 +00:00
|
|
|
endif
|
|
|
|
|
2008-10-20 12:05:09 +00:00
|
|
|
INCLUDES = -I$(top_srcdir)/src
|
|
|
|
|
2011-05-17 20:34:39 +00:00
|
|
|
check_PROGRAMS = sfversion floating_point_test write_read_test \
|
2007-05-14 09:55:24 +00:00
|
|
|
lossy_comp_test error_test ulaw_test alaw_test dwvw_test \
|
|
|
|
peak_chunk_test command_test stdin_test stdout_test stdio_test \
|
2004-05-19 13:23:52 +00:00
|
|
|
pcm_test headerless_test pipe_test benchmark header_test misc_test \
|
2011-12-31 09:04:06 +00:00
|
|
|
raw_test string_test multi_file_test dither_test chunk_test \
|
2005-09-20 08:51:50 +00:00
|
|
|
scale_clip_test win32_test fix_this aiff_rw_test virtual_io_test \
|
2012-06-19 09:53:39 +00:00
|
|
|
locale_test largefile_test win32_ordinal_test ogg_test compression_size_test \
|
2011-04-25 10:07:36 +00:00
|
|
|
checksum_test external_libs_test rdwr_test format_check_test $(CPP_TEST)
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2007-06-10 21:50:24 +00:00
|
|
|
noinst_HEADERS = dft_cmp.h utils.h generate.h
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
autogen_sources = write_read_test.tpl write_read_test.def \
|
|
|
|
pcm_test.tpl pcm_test.def \
|
2004-05-19 13:23:52 +00:00
|
|
|
header_test.tpl header_test.def \
|
2007-05-14 09:55:24 +00:00
|
|
|
utils.tpl utils.def \
|
|
|
|
scale_clip_test.tpl scale_clip_test.def \
|
2004-04-03 06:42:33 +00:00
|
|
|
pipe_test.tpl pipe_test.def \
|
2010-02-28 02:52:11 +00:00
|
|
|
rdwr_test.tpl rdwr_test.def \
|
2004-09-30 12:46:02 +00:00
|
|
|
floating_point_test.tpl floating_point_test.def \
|
2007-05-14 09:55:24 +00:00
|
|
|
benchmark.tpl benchmark.def
|
|
|
|
|
|
|
|
EXTRA_DIST = $(autogen_sources)
|
|
|
|
|
2010-10-06 11:16:41 +00:00
|
|
|
CLEANFILES = *~
|
|
|
|
|
2011-07-07 09:47:51 +00:00
|
|
|
#===============================================================================
|
|
|
|
# If we're cross compiling from Linux to Windows and running the test suite
|
|
|
|
# under Wine, we need a symbolic link to the generated libsndfile DLL.
|
|
|
|
|
|
|
|
if LINUX_MINGW_CROSS_TEST
|
|
|
|
|
|
|
|
$(check_PROGRAMS) : libsndfile-1.dll
|
|
|
|
|
|
|
|
libsndfile-1.dll :
|
|
|
|
ln -s $(top_builddir)/src/.libs/$@ $@
|
|
|
|
|
|
|
|
clean-local :
|
|
|
|
-rm -f libsndfile-1.dll
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
#===============================================================================
|
|
|
|
|
|
|
|
check: test_wrapper.sh
|
|
|
|
sh test_wrapper.sh
|
|
|
|
|
|
|
|
# Need this target to force building of test programs.
|
|
|
|
checkprograms : $(check_PROGRAMS)
|
|
|
|
|
2007-05-14 09:55:24 +00:00
|
|
|
#===============================================================================
|
|
|
|
|
|
|
|
sfversion_SOURCES = sfversion.c
|
2008-09-25 11:46:49 +00:00
|
|
|
sfversion_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2007-06-10 02:17:28 +00:00
|
|
|
write_read_test_SOURCES = utils.c generate.c write_read_test.c
|
2008-09-25 11:46:49 +00:00
|
|
|
write_read_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
lossy_comp_test_SOURCES = utils.c lossy_comp_test.c
|
2008-09-25 11:46:49 +00:00
|
|
|
lossy_comp_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
fix_this_SOURCES = utils.c fix_this.c
|
2008-09-25 11:46:49 +00:00
|
|
|
fix_this_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2005-12-10 02:43:03 +00:00
|
|
|
error_test_SOURCES = error_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
error_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
ulaw_test_SOURCES = utils.c ulaw_test.c
|
2008-09-25 11:46:49 +00:00
|
|
|
ulaw_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
alaw_test_SOURCES = utils.c alaw_test.c
|
2008-09-25 11:46:49 +00:00
|
|
|
alaw_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
aiff_rw_test_SOURCES = utils.c aiff_rw_test.c
|
2008-09-25 11:46:49 +00:00
|
|
|
aiff_rw_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
command_test_SOURCES = command_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
command_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2005-09-20 08:51:50 +00:00
|
|
|
locale_test_SOURCES = locale_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
locale_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2005-09-20 08:51:50 +00:00
|
|
|
|
2006-01-19 09:05:37 +00:00
|
|
|
largefile_test_SOURCES = largefile_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
largefile_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2006-01-19 09:05:37 +00:00
|
|
|
|
2007-05-14 09:55:24 +00:00
|
|
|
pcm_test_SOURCES = pcm_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
pcm_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
headerless_test_SOURCES = utils.c headerless_test.c
|
2008-09-25 11:46:49 +00:00
|
|
|
headerless_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
stdin_test_SOURCES = stdin_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
stdin_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
stdout_test_SOURCES = stdout_test.c
|
2008-09-25 11:46:49 +00:00
|
|
|
stdout_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
stdio_test_SOURCES = stdio_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
stdio_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
pipe_test_SOURCES = pipe_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
pipe_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
benchmark_SOURCES = benchmark.c
|
2008-09-25 11:46:49 +00:00
|
|
|
benchmark_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2004-05-19 13:23:52 +00:00
|
|
|
header_test_SOURCES = header_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
header_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2004-05-19 13:23:52 +00:00
|
|
|
|
2007-05-14 09:55:24 +00:00
|
|
|
misc_test_SOURCES = misc_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
misc_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
raw_test_SOURCES = raw_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
raw_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
string_test_SOURCES = string_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
string_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
dither_test_SOURCES = dither_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
dither_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2011-12-31 09:04:06 +00:00
|
|
|
chunk_test_SOURCES = chunk_test.c utils.c
|
|
|
|
chunk_test_LDADD = $(top_builddir)/src/libsndfile.la
|
|
|
|
|
2007-05-14 09:55:24 +00:00
|
|
|
multi_file_test_SOURCES = multi_file_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
multi_file_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2005-06-11 06:27:27 +00:00
|
|
|
virtual_io_test_SOURCES = virtual_io_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
virtual_io_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2005-06-11 06:27:27 +00:00
|
|
|
|
2007-08-10 11:37:39 +00:00
|
|
|
ogg_test_SOURCES = ogg_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
ogg_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-08-10 11:37:39 +00:00
|
|
|
|
2012-06-19 09:53:39 +00:00
|
|
|
compression_size_test_SOURCES = compression_size_test.c utils.c
|
|
|
|
compression_size_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-08-21 04:18:52 +00:00
|
|
|
|
2010-02-28 02:52:11 +00:00
|
|
|
rdwr_test_SOURCES = rdwr_test.c utils.c
|
|
|
|
rdwr_test_LDADD = $(top_builddir)/src/libsndfile.la
|
|
|
|
|
2007-05-14 09:55:24 +00:00
|
|
|
win32_test_SOURCES = win32_test.c
|
2011-03-21 22:41:04 +00:00
|
|
|
# Link lib here so that generating the testsuite tarball works correctly.
|
|
|
|
win32_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2006-03-08 21:57:18 +00:00
|
|
|
|
|
|
|
win32_ordinal_test_SOURCES = win32_ordinal_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
win32_ordinal_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2008-05-21 10:55:53 +00:00
|
|
|
external_libs_test_SOURCES = external_libs_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
external_libs_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2008-05-21 10:55:53 +00:00
|
|
|
|
2011-04-25 10:07:36 +00:00
|
|
|
format_check_test_SOURCES = format_check_test.c utils.c
|
|
|
|
format_check_test_LDADD = $(top_builddir)/src/libsndfile.la
|
|
|
|
|
2006-07-27 10:39:08 +00:00
|
|
|
cpp_test_SOURCES = cpp_test.cc utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
cpp_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2006-07-27 10:39:08 +00:00
|
|
|
|
2008-10-05 04:05:26 +00:00
|
|
|
checksum_test_SOURCES = checksum_test.c utils.c
|
|
|
|
checksum_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2006-07-27 10:39:08 +00:00
|
|
|
|
2007-05-14 09:55:24 +00:00
|
|
|
# Lite remove start
|
|
|
|
dwvw_test_SOURCES = utils.c dwvw_test.c
|
2008-09-25 11:46:49 +00:00
|
|
|
dwvw_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
floating_point_test_SOURCES = utils.c dft_cmp.c floating_point_test.c
|
2008-09-25 11:46:49 +00:00
|
|
|
floating_point_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
peak_chunk_test_SOURCES = peak_chunk_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
peak_chunk_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
scale_clip_test_SOURCES = scale_clip_test.c utils.c
|
2008-09-25 11:46:49 +00:00
|
|
|
scale_clip_test_LDADD = $(top_builddir)/src/libsndfile.la
|
2007-05-14 09:55:24 +00:00
|
|
|
# Lite remove end
|
|
|
|
|
|
|
|
#===============================================================================
|
|
|
|
|
|
|
|
write_read_test.c: write_read_test.def write_read_test.tpl
|
2006-03-17 07:56:00 +00:00
|
|
|
autogen --writable write_read_test.def
|
2007-05-14 09:55:24 +00:00
|
|
|
|
|
|
|
pcm_test.c: pcm_test.def pcm_test.tpl
|
2006-03-17 07:56:00 +00:00
|
|
|
autogen --writable pcm_test.def
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2004-05-19 13:23:52 +00:00
|
|
|
header_test.c: header_test.def header_test.tpl
|
2006-03-17 07:56:00 +00:00
|
|
|
autogen --writable header_test.def
|
2004-05-19 13:23:52 +00:00
|
|
|
|
2007-12-13 18:01:39 +00:00
|
|
|
utils.c utils.h : utils.def utils.tpl
|
2006-03-17 07:56:00 +00:00
|
|
|
autogen --writable utils.def
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2004-01-21 07:46:34 +00:00
|
|
|
scale_clip_test.c: scale_clip_test.def scale_clip_test.tpl
|
2006-03-17 07:56:00 +00:00
|
|
|
autogen --writable scale_clip_test.def
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2004-04-03 06:42:33 +00:00
|
|
|
pipe_test.c: pipe_test.def pipe_test.tpl
|
2006-03-17 07:56:00 +00:00
|
|
|
autogen --writable pipe_test.def
|
2004-04-03 06:42:33 +00:00
|
|
|
|
2010-02-28 02:52:11 +00:00
|
|
|
rdwr_test.c: rdwr_test.def rdwr_test.tpl
|
|
|
|
autogen --writable rdwr_test.def
|
|
|
|
|
2004-09-30 12:46:02 +00:00
|
|
|
floating_point_test.c: floating_point_test.def floating_point_test.tpl
|
2006-03-17 07:56:00 +00:00
|
|
|
autogen --writable floating_point_test.def
|
2004-09-30 12:46:02 +00:00
|
|
|
|
2007-05-14 09:55:24 +00:00
|
|
|
benchmark.c: benchmark.def benchmark.tpl
|
2006-03-17 07:56:00 +00:00
|
|
|
autogen --writable benchmark.def
|
2007-05-14 09:55:24 +00:00
|
|
|
|
2005-10-23 07:32:04 +00:00
|
|
|
genfiles : write_read_test.c pcm_test.c header_test.c utils.c \
|
2010-02-28 02:52:11 +00:00
|
|
|
scale_clip_test.c pipe_test.c floating_point_test.c rdwr_test.c \
|
|
|
|
benchmark.c
|
2005-02-07 23:42:36 +00:00
|
|
|
|