Fix 'make distcheck'.
[platform/upstream/flac.git] / test / Makefile.am
1 #  FLAC - Free Lossless Audio Codec
2 #  Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008,2009  Josh Coalson
3 #
4 #  This file is part the FLAC project.  FLAC is comprised of several
5 #  components distributed under difference licenses.  The codec libraries
6 #  are distributed under Xiph.Org's BSD-like license (see the file
7 #  COPYING.Xiph in this distribution).  All other programs, libraries, and
8 #  plugins are distributed under the GPL (see COPYING.GPL).  The documentation
9 #  is distributed under the Gnu FDL (see COPYING.FDL).  Each file in the
10 #  FLAC distribution contains at the top the terms under which it may be
11 #  distributed.
12 #
13 #  Since this particular file is relevant to all components of FLAC,
14 #  it may be distributed under the Xiph.Org license, which is the least
15 #  restrictive of those mentioned above.  See the file COPYING.Xiph in this
16 #  distribution.
17
18 TESTS_ENVIRONMENT = FLAC__TEST_LEVEL=@FLAC__TEST_LEVEL@ FLAC__TEST_WITH_VALRGIND=@FLAC__TEST_WITH_VALGRIND@
19
20 SUBDIRS = cuesheets flac-to-flac-metadata-test-files metaflac-test-files pictures
21
22 check_SCRIPTS = \
23         test_libFLAC.sh \
24         test_libFLAC++.sh \
25         test_grabbag.sh \
26         test_flac.sh \
27         test_metaflac.sh \
28         test_seeking.sh \
29         test_streams.sh
30
31 # This one should pass when building out-of-tree (eg 'make distcheck').
32 check: $(check_SCRIPTS)
33         $(srcdir)/test_libFLAC.sh
34 if FLaC__WITH_CPPLIBS
35         $(srcdir)/test_libFLAC++.sh
36 endif
37         $(srcdir)/test_seeking.sh
38         $(srcdir)/test_streams.sh
39         @echo "----------------"
40         @echo "All tests passed"
41         @echo "----------------"
42
43 # This is the full test suite, but only works correctly in-tree.
44 # In particular test_grabbag.sh, test_flac.sh and test_metaflac.sh will not
45 # run correctly out-of-tree.
46 fullcheck: $(check_SCRIPTS)
47         ./test_libFLAC.sh
48 if FLaC__WITH_CPPLIBS
49         ./test_libFLAC++.sh
50 endif
51         ./test_grabbag.sh
52         ./test_flac.sh
53         ./test_metaflac.sh
54         ./test_seeking.sh
55         ./test_streams.sh
56         @echo "----------------"
57         @echo "All tests passed"
58         @echo "----------------"
59
60 EXTRA_DIST = \
61         Makefile.lite \
62         cuesheet.ok \
63         metaflac.flac.in \
64         metaflac.flac.ok \
65         picture.ok \
66         $(check_SCRIPTS) \
67         test_wrapper.sh \
68         test_bins.sh \
69         write_iff.pl
70
71 clean-local:
72         -rm -f *.raw *.flac *.oga *.ogg *.cmp *.aiff *.wav *.w64 *.rf64 *.diff *.log *.cue core