1 ## Process this file with automake to produce Makefile.in
3 if ENABLE_TEST_COVERAGE
9 INCLUDES = -I$(top_srcdir)/src
11 check_PROGRAMS = sfversion floating_point_test write_read_test \
12 lossy_comp_test error_test ulaw_test alaw_test dwvw_test \
13 peak_chunk_test command_test stdin_test stdout_test stdio_test \
14 pcm_test headerless_test pipe_test benchmark header_test misc_test \
15 raw_test string_test multi_file_test dither_test \
16 scale_clip_test win32_test fix_this aiff_rw_test virtual_io_test \
17 locale_test largefile_test win32_ordinal_test ogg_test vorbis_test \
18 checksum_test external_libs_test rdwr_test format_check_test $(CPP_TEST)
20 noinst_HEADERS = dft_cmp.h utils.h generate.h
22 autogen_sources = write_read_test.tpl write_read_test.def \
23 pcm_test.tpl pcm_test.def \
24 header_test.tpl header_test.def \
26 scale_clip_test.tpl scale_clip_test.def \
27 pipe_test.tpl pipe_test.def \
28 rdwr_test.tpl rdwr_test.def \
29 floating_point_test.tpl floating_point_test.def \
30 benchmark.tpl benchmark.def
32 EXTRA_DIST = $(autogen_sources)
36 #===============================================================================
37 # If we're cross compiling from Linux to Windows and running the test suite
38 # under Wine, we need a symbolic link to the generated libsndfile DLL.
40 if LINUX_MINGW_CROSS_TEST
42 $(check_PROGRAMS) : libsndfile-1.dll
45 ln -s $(top_builddir)/src/.libs/$@ $@
48 -rm -f libsndfile-1.dll
52 #===============================================================================
54 check: test_wrapper.sh
57 # Need this target to force building of test programs.
58 checkprograms : $(check_PROGRAMS)
60 #===============================================================================
62 sfversion_SOURCES = sfversion.c
63 sfversion_LDADD = $(top_builddir)/src/libsndfile.la
65 write_read_test_SOURCES = utils.c generate.c write_read_test.c
66 write_read_test_LDADD = $(top_builddir)/src/libsndfile.la
68 lossy_comp_test_SOURCES = utils.c lossy_comp_test.c
69 lossy_comp_test_LDADD = $(top_builddir)/src/libsndfile.la
71 fix_this_SOURCES = utils.c fix_this.c
72 fix_this_LDADD = $(top_builddir)/src/libsndfile.la
74 error_test_SOURCES = error_test.c utils.c
75 error_test_LDADD = $(top_builddir)/src/libsndfile.la
77 ulaw_test_SOURCES = utils.c ulaw_test.c
78 ulaw_test_LDADD = $(top_builddir)/src/libsndfile.la
80 alaw_test_SOURCES = utils.c alaw_test.c
81 alaw_test_LDADD = $(top_builddir)/src/libsndfile.la
83 aiff_rw_test_SOURCES = utils.c aiff_rw_test.c
84 aiff_rw_test_LDADD = $(top_builddir)/src/libsndfile.la
86 command_test_SOURCES = command_test.c utils.c
87 command_test_LDADD = $(top_builddir)/src/libsndfile.la
89 locale_test_SOURCES = locale_test.c utils.c
90 locale_test_LDADD = $(top_builddir)/src/libsndfile.la
92 largefile_test_SOURCES = largefile_test.c utils.c
93 largefile_test_LDADD = $(top_builddir)/src/libsndfile.la
95 pcm_test_SOURCES = pcm_test.c utils.c
96 pcm_test_LDADD = $(top_builddir)/src/libsndfile.la
98 headerless_test_SOURCES = utils.c headerless_test.c
99 headerless_test_LDADD = $(top_builddir)/src/libsndfile.la
101 stdin_test_SOURCES = stdin_test.c utils.c
102 stdin_test_LDADD = $(top_builddir)/src/libsndfile.la
104 stdout_test_SOURCES = stdout_test.c
105 stdout_test_LDADD = $(top_builddir)/src/libsndfile.la
107 stdio_test_SOURCES = stdio_test.c utils.c
108 stdio_test_LDADD = $(top_builddir)/src/libsndfile.la
110 pipe_test_SOURCES = pipe_test.c utils.c
111 pipe_test_LDADD = $(top_builddir)/src/libsndfile.la
113 benchmark_SOURCES = benchmark.c
114 benchmark_LDADD = $(top_builddir)/src/libsndfile.la
116 header_test_SOURCES = header_test.c utils.c
117 header_test_LDADD = $(top_builddir)/src/libsndfile.la
119 misc_test_SOURCES = misc_test.c utils.c
120 misc_test_LDADD = $(top_builddir)/src/libsndfile.la
122 raw_test_SOURCES = raw_test.c utils.c
123 raw_test_LDADD = $(top_builddir)/src/libsndfile.la
125 string_test_SOURCES = string_test.c utils.c
126 string_test_LDADD = $(top_builddir)/src/libsndfile.la
128 dither_test_SOURCES = dither_test.c utils.c
129 dither_test_LDADD = $(top_builddir)/src/libsndfile.la
131 multi_file_test_SOURCES = multi_file_test.c utils.c
132 multi_file_test_LDADD = $(top_builddir)/src/libsndfile.la
134 virtual_io_test_SOURCES = virtual_io_test.c utils.c
135 virtual_io_test_LDADD = $(top_builddir)/src/libsndfile.la
137 ogg_test_SOURCES = ogg_test.c utils.c
138 ogg_test_LDADD = $(top_builddir)/src/libsndfile.la
140 vorbis_test_SOURCES = vorbis_test.c utils.c
141 vorbis_test_LDADD = $(top_builddir)/src/libsndfile.la
143 rdwr_test_SOURCES = rdwr_test.c utils.c
144 rdwr_test_LDADD = $(top_builddir)/src/libsndfile.la
146 win32_test_SOURCES = win32_test.c
147 # Link lib here so that generating the testsuite tarball works correctly.
148 win32_test_LDADD = $(top_builddir)/src/libsndfile.la
150 win32_ordinal_test_SOURCES = win32_ordinal_test.c utils.c
151 win32_ordinal_test_LDADD = $(top_builddir)/src/libsndfile.la
153 external_libs_test_SOURCES = external_libs_test.c utils.c
154 external_libs_test_LDADD = $(top_builddir)/src/libsndfile.la
156 format_check_test_SOURCES = format_check_test.c utils.c
157 format_check_test_LDADD = $(top_builddir)/src/libsndfile.la
159 cpp_test_SOURCES = cpp_test.cc utils.c
160 cpp_test_LDADD = $(top_builddir)/src/libsndfile.la
162 checksum_test_SOURCES = checksum_test.c utils.c
163 checksum_test_LDADD = $(top_builddir)/src/libsndfile.la
166 dwvw_test_SOURCES = utils.c dwvw_test.c
167 dwvw_test_LDADD = $(top_builddir)/src/libsndfile.la
169 floating_point_test_SOURCES = utils.c dft_cmp.c floating_point_test.c
170 floating_point_test_LDADD = $(top_builddir)/src/libsndfile.la
172 peak_chunk_test_SOURCES = peak_chunk_test.c utils.c
173 peak_chunk_test_LDADD = $(top_builddir)/src/libsndfile.la
175 scale_clip_test_SOURCES = scale_clip_test.c utils.c
176 scale_clip_test_LDADD = $(top_builddir)/src/libsndfile.la
179 #===============================================================================
181 write_read_test.c: write_read_test.def write_read_test.tpl
182 autogen --writable write_read_test.def
184 pcm_test.c: pcm_test.def pcm_test.tpl
185 autogen --writable pcm_test.def
187 header_test.c: header_test.def header_test.tpl
188 autogen --writable header_test.def
190 utils.c utils.h : utils.def utils.tpl
191 autogen --writable utils.def
193 scale_clip_test.c: scale_clip_test.def scale_clip_test.tpl
194 autogen --writable scale_clip_test.def
196 pipe_test.c: pipe_test.def pipe_test.tpl
197 autogen --writable pipe_test.def
199 rdwr_test.c: rdwr_test.def rdwr_test.tpl
200 autogen --writable rdwr_test.def
202 floating_point_test.c: floating_point_test.def floating_point_test.tpl
203 autogen --writable floating_point_test.def
205 benchmark.c: benchmark.def benchmark.tpl
206 autogen --writable benchmark.def
208 genfiles : write_read_test.c pcm_test.c header_test.c utils.c \
209 scale_clip_test.c pipe_test.c floating_point_test.c rdwr_test.c \