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