Debian Codegraph @

src/tests/Makemodule.am

raw
1 # Module for non-recursive mpg123 build system.
2
3 if BUILD_LIBMPG123
4 if BUILD_PROGRAMS
5 if HAVE_LFS_WRAP
6 TESTS += \
7 src/tests/decode_fixed.sh
8 endif
9 endif
10 TESTS += \
11 src/tests/seek_whence.sh \
12 src/tests/seek_accuracy.sh \
13 src/tests/resample_total \
14 src/tests/text \
15 src/tests/textprint \
16 src/tests/plain_id3.sh
17 endif
18
19 if !HAVE_SYNTH16
20 XFAIL_TESTS += src/tests/decode_fixed.sh
21 endif
22
23 # Those are created by test scrips. Could add targets?
24 clean-local: clean-local-check
25 .PHONY: clean-local-check
26 clean-local-check:
27 rm -f src/tests/sweepsweep.mp3 src/tests/stripsweep.mp3 src/tests/plain_id3.out.txt
28
29 # Why do I have to repeat the test scripts here?
30 EXTRA_DIST += \
31 src/tests/testtext.sh \
32 src/tests/decode_fixed.sh \
33 src/tests/seek_whence.sh \
34 src/tests/seek_accuracy.sh \
35 src/tests/plain_id3.sh \
36 src/tests/plain_id3.txt \
37 src/tests/sweep.mp3
38
39 if BUILD_LIBMPG123
40 check_PROGRAMS += \
41 src/tests/decode_fixed \
42 src/tests/seek_whence \
43 src/tests/seek_accuracy \
44 src/tests/resample_total \
45 src/tests/text \
46 src/tests/textprint \
47 src/tests/plain_id3
48
49 EXTRA_PROGRAMS += \
50 src/tests/volume \
51 src/tests/decode_fixed \
52 src/tests/seek_whence \
53 src/tests/seek_accuracy \
54 src/tests/noise \
55 src/tests/sweeper
56 endif
57
58 src_tests_volume_SOURCES = \
59 src/tests/volume.c
60 src_tests_volume_LDADD = \
61 $(LIBSYN123)
62
63 src_tests_decode_fixed_SOURCES = \
64 src/tests/decode_fixed.c
65 src_tests_decode_fixed_LDADD = \
66 src/compat/libcompat.la \
67 $(LIBMPG123)
68
69 src_tests_seek_whence_SOURCES = \
70 src/tests/seek_whence.c
71 src_tests_seek_whence_LDADD = \
72 src/compat/libcompat.la \
73 $(LIBMPG123)
74
75 src_tests_seek_accuracy_SOURCES = \
76 src/tests/seek_accuracy.c
77 src_tests_seek_accuracy_LDADD = \
78 src/compat/libcompat.la \
79 $(LIBMPG123)
80
81 src_tests_noise_SOURCES = \
82 src/tests/noise.c \
83 src/libmpg123/dither.h \
84 src/libmpg123/dither_impl.h
85 src_tests_noise_LDADD = \
86 src/compat/libcompat.la
87
88 src_tests_sweeper_SOURCES = \
89 src/tests/sweeper.c
90 src_tests_sweeper_LDADD = \
91 src/compat/libcompat.la \
92 $(LIBSYN123) \
93 $(LIBOUT123)
94
95 src_tests_resample_total_SOURCES = \
96 src/tests/resample_total.c
97 src_tests_resample_total_LDADD = \
98 $(LIBSYN123)
99
100 src_tests_text_SOURCES = \
101 src/tests/text.c \
102 src/tests/testtext.h
103 src_tests_text_LDADD = \
104 src/compat/libcompat.la \
105 $(LIBMPG123)
106
107 src_tests_textprint_SOURCES =\
108 src/tests/textprint.c \
109 src/local.c \
110 src/genre.c
111
112 src_tests_textprint_LDADD = \
113 src/compat/libcompat.la \
114 $(LIBMPG123)
115
116 src_tests_plain_id3_SOURCES = \
117 src/tests/plain_id3.c
118 src_tests_plain_id3_LDADD = \
119 src/compat/libcompat.la \
120 $(LIBMPG123)