1 # FLAC - Free Lossless Audio Codec
2 # Copyright (C) 2001-2009 Josh Coalson
3 # Copyright (C) 2011-2013 Xiph.Org Foundation
5 # This file is part the FLAC project. FLAC is comprised of several
6 # components distributed under different 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
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
19 TESTS_ENVIRONMENT = FLAC__TEST_LEVEL=@FLAC__TEST_LEVEL@ FLAC__TEST_WITH_VALGRIND=@FLAC__TEST_WITH_VALGRIND@
21 SUBDIRS = cuesheets flac-to-flac-metadata-test-files metaflac-test-files pictures
34 # This one should pass when building out-of-tree (eg 'make distcheck').
35 check: $(check_SCRIPTS)
36 $(TESTS_ENVIRONMENT) $(srcdir)/test_libFLAC.sh
38 $(TESTS_ENVIRONMENT) $(srcdir)/test_libFLAC++.sh
40 $(TESTS_ENVIRONMENT) $(srcdir)/test_seeking.sh
41 $(TESTS_ENVIRONMENT) $(srcdir)/test_streams.sh
42 $(TESTS_ENVIRONMENT) $(srcdir)/test_compression.sh
43 @echo "----------------"
44 @echo "All tests passed"
45 @echo "----------------"
47 # This is the full test suite, but only works correctly in-tree.
48 # In particular test_grabbag.sh, test_flac.sh and test_metaflac.sh will not
49 # run correctly out-of-tree.
50 fullcheck: $(check_SCRIPTS)
51 $(TESTS_ENVIRONMENT) ./test_libFLAC.sh
53 $(TESTS_ENVIRONMENT) ./test_libFLAC++.sh
55 $(TESTS_ENVIRONMENT) ./test_grabbag.sh
56 $(TESTS_ENVIRONMENT) ./test_flac.sh
57 $(TESTS_ENVIRONMENT) ./test_metaflac.sh
58 $(TESTS_ENVIRONMENT) ./test_replaygain.sh
59 $(TESTS_ENVIRONMENT) ./test_seeking.sh
60 $(TESTS_ENVIRONMENT) ./test_streams.sh
61 $(TESTS_ENVIRONMENT) ./test_compression.sh
62 @echo "----------------"
63 @echo "All tests passed"
64 @echo "----------------"
78 -rm -f *.raw *.flac *.oga *.ogg *.cmp *.aiff *.wav *.w64 *.rf64 *.diff *.log *.cue core