split off some tests to new test_flac.sh script
[platform/upstream/flac.git] / test / Makefile.am
1 #  FLAC - Free Lossless Audio Codec
2 #  Copyright (C) 2001,2002  Josh Coalson
3 #
4 #  This program is part of FLAC; you can redistribute it and/or
5 #  modify it under the terms of the GNU General Public License
6 #  as published by the Free Software Foundation; either version 2
7 #  of the License, or (at your option) any later version.
8 #
9 #  This program is distributed in the hope that it will be useful,
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 #  GNU General Public License for more details.
13 #
14 #  You should have received a copy of the GNU General Public License
15 #  along with this program; if not, write to the Free Software
16 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17
18 if FLaC__EXHAUSTIVE_TESTS
19 TESTS_ENVIRONMENT = FLAC__EXHAUSTIVE_TESTS=yes
20 else
21 TESTS_ENVIRONMENT = FLAC__EXHAUSTIVE_TESTS=no
22 endif
23
24 if FLaC__VALGRIND_TESTING
25 TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT) FLAC__VALGRIND=yes
26 else
27 TESTS_ENVIRONMENT = $(TESTS_ENVIRONMENT) FLAC__VALGRIND=no
28 endif
29
30 SUBDIRS = cuesheets
31
32 if FLaC__HAS_OGG
33 OGG_TESTS = \
34         ./test_libOggFLAC.sh \
35         ./test_libOggFLAC++.sh
36 endif
37
38 TESTS = \
39         ./test_libFLAC.sh \
40         ./test_libFLAC++.sh \
41         $(OGG_TESTS) \
42         ./test_flac.sh \
43         ./test_metaflac.sh \
44         ./test_grabbag.sh \
45         ./test_streams.sh \
46         ./test_bins.sh
47
48 EXTRA_DIST = \
49         Makefile.lite \
50         cuesheet.ok \
51         test_libFLAC.sh \
52         test_libFLAC++.sh \
53         test_libOggFLAC.sh \
54         test_libOggFLAC++.sh \
55         test_flac.sh \
56         test_metaflac.sh \
57         test_grabbag.sh \
58         test_streams.sh \
59         test_bins.sh
60
61 CLEANFILES = \
62         $(wildcard *.raw) \
63         $(wildcard *.flac) \
64         $(wildcard *.ogg) \
65         $(wildcard *.cmp) \
66         $(wildcard *.wav) \
67         $(wildcard ../../test_files/bins/*.raw) \
68         $(wildcard ../../test_files/bins/*.flac) \
69         $(wildcard ../../test_files/bins/*.cmp) \
70         $(wildcard *.diff) \
71         $(wildcard *.log) \
72         $(wildcard *.cue) \
73         core