Makefile.am 2.14 KB
Newer Older
1
#  FLAC - Free Lossless Audio Codec
2
#  Copyright (C) 2001-2009  Josh Coalson
3
#  Copyright (C) 2011-2014  Xiph.Org Foundation
4
#
Josh Coalson's avatar
Josh Coalson committed
5
#  This file is part the FLAC project.  FLAC is comprised of several
6
#  components distributed under different licenses.  The codec libraries
Josh Coalson's avatar
Josh Coalson committed
7
8
9
10
11
12
#  are distributed under Xiph.Org's BSD-like license (see the file
#  COPYING.Xiph in this distribution).  All other programs, libraries, and
#  plugins are distributed under the GPL (see COPYING.GPL).  The documentation
#  is distributed under the Gnu FDL (see COPYING.FDL).  Each file in the
#  FLAC distribution contains at the top the terms under which it may be
#  distributed.
13
#
Josh Coalson's avatar
Josh Coalson committed
14
15
16
17
#  Since this particular file is relevant to all components of FLAC,
#  it may be distributed under the Xiph.Org license, which is the least
#  restrictive of those mentioned above.  See the file COPYING.Xiph in this
#  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

Erik de Castro Lopo's avatar
Erik de Castro Lopo committed
23
24
25
26
27
28
check_SCRIPTS = \
	test_libFLAC.sh \
	test_libFLAC++.sh \
	test_grabbag.sh \
	test_flac.sh \
	test_metaflac.sh \
29
	test_replaygain.sh \
Erik de Castro Lopo's avatar
Erik de Castro Lopo committed
30
	test_seeking.sh \
31
32
	test_streams.sh \
	test_compression.sh
Erik de Castro Lopo's avatar
Erik de Castro Lopo committed
33

34
# This one should pass when building out-of-tree (e.g. 'make distcheck').
Erik de Castro Lopo's avatar
Erik de Castro Lopo committed
35
check: $(check_SCRIPTS)
36
	$(TESTS_ENVIRONMENT) $(srcdir)/test_libFLAC.sh
Erik de Castro Lopo's avatar
Erik de Castro Lopo committed
37
if FLaC__WITH_CPPLIBS
38
	$(TESTS_ENVIRONMENT) $(srcdir)/test_libFLAC++.sh
Erik de Castro Lopo's avatar
Erik de Castro Lopo committed
39
endif
40
41
42
43
	$(TESTS_ENVIRONMENT) $(srcdir)/test_grabbag.sh
	$(TESTS_ENVIRONMENT) $(srcdir)/test_flac.sh
	$(TESTS_ENVIRONMENT) $(srcdir)/test_metaflac.sh
	$(TESTS_ENVIRONMENT) $(srcdir)/test_replaygain.sh
44
45
46
	$(TESTS_ENVIRONMENT) $(srcdir)/test_seeking.sh
	$(TESTS_ENVIRONMENT) $(srcdir)/test_streams.sh
	$(TESTS_ENVIRONMENT) $(srcdir)/test_compression.sh
Erik de Castro Lopo's avatar
Erik de Castro Lopo committed
47
48
49
	@echo "----------------"
	@echo "All tests passed"
	@echo "----------------"
Josh Coalson's avatar
Josh Coalson committed
50

51
EXTRA_DIST = \
52
	Makefile.lite \
53
	cuesheet.ok \
54
55
	metaflac.flac.in \
	metaflac.flac.ok \
Josh Coalson's avatar
Josh Coalson committed
56
	picture.ok \
Erik de Castro Lopo's avatar
Erik de Castro Lopo committed
57
	$(check_SCRIPTS) \
58
	test_wrapper.sh \
Josh Coalson's avatar
Josh Coalson committed
59
60
	test_bins.sh \
	write_iff.pl
61

62
clean-local:
63
	-rm -f *.raw *.flac *.oga *.ogg *.cmp *.aiff *.wav *.w64 *.rf64 *.diff *.log *.cue core