fix problem with recursive use of TESTS_ENVIRONMENT
[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 FLAC__EXHAUSTIVE_TESTS = yes
20 else
21 FLAC__EXHAUSTIVE_TESTS = no
22 endif
23
24 if FLaC__VALGRIND_TESTING
25 FLAC__VALGRIND = yes
26 else
27 FLAC__VALGRIND = no
28 endif
29
30 TESTS_ENVIRONMENT = FLAC__EXHAUSTIVE_TESTS=$(FLAC__EXHAUSTIVE_TESTS) FLAC__VALGRIND=$(FLAC__VALGRIND)
31
32 SUBDIRS = cuesheets
33
34 if FLaC__HAS_OGG
35 OGG_TESTS = \
36         ./test_libOggFLAC.sh \
37         ./test_libOggFLAC++.sh
38 endif
39
40 TESTS = \
41         ./test_libFLAC.sh \
42         ./test_libFLAC++.sh \
43         $(OGG_TESTS) \
44         ./test_flac.sh \
45         ./test_metaflac.sh \
46         ./test_grabbag.sh \
47         ./test_streams.sh \
48         ./test_bins.sh
49
50 EXTRA_DIST = \
51         Makefile.lite \
52         cuesheet.ok \
53         test_libFLAC.sh \
54         test_libFLAC++.sh \
55         test_libOggFLAC.sh \
56         test_libOggFLAC++.sh \
57         test_flac.sh \
58         test_metaflac.sh \
59         test_grabbag.sh \
60         test_streams.sh \
61         test_bins.sh
62
63 CLEANFILES = \
64         $(wildcard *.raw) \
65         $(wildcard *.flac) \
66         $(wildcard *.ogg) \
67         $(wildcard *.cmp) \
68         $(wildcard *.aiff) \
69         $(wildcard *.wav) \
70         $(wildcard ../../test_files/bins/*.raw) \
71         $(wildcard ../../test_files/bins/*.flac) \
72         $(wildcard ../../test_files/bins/*.cmp) \
73         $(wildcard *.diff) \
74         $(wildcard *.log) \
75         $(wildcard *.cue) \
76         core