blob: dcd911d9b8dcb67ece31e44add56105a875399dd [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +00001# FLAC - Free Lossless Audio Codec
Erik de Castro Lopob1982fb2013-05-25 17:11:19 +10002# Copyright (C) 2001-2009 Josh Coalson
Erik de Castro Lopo6a5fe432016-12-05 06:35:39 +11003# Copyright (C) 2011-2016 Xiph.Org Foundation
Josh Coalson6b05bc52001-06-08 00:13:21 +00004#
Josh Coalsone8a76012003-02-07 00:14:32 +00005# This file is part the FLAC project. FLAC is comprised of several
Ulrich Klauercd4ddab2013-05-26 22:53:43 +02006# components distributed under different licenses. The codec libraries
Josh Coalsone8a76012003-02-07 00:14:32 +00007# 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.
Josh Coalson6b05bc52001-06-08 00:13:21 +000013#
Josh Coalsone8a76012003-02-07 00:14:32 +000014# 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.
Josh Coalson6b05bc52001-06-08 00:13:21 +000018
Erik de Castro Lopoefaab3c2015-10-04 09:43:33 +110019TESTS_ENVIRONMENT = FLAC__TEST_LEVEL=@FLAC__TEST_LEVEL@ FLAC__TEST_WITH_VALGRIND=@FLAC__TEST_WITH_VALGRIND@ ECHO_N="@ECHO_N@" ECHO_C="@ECHO_C@"
Josh Coalson2b7cc172002-12-23 19:49:56 +000020
Josh Coalson0faeaa12006-09-24 07:17:58 +000021SUBDIRS = cuesheets flac-to-flac-metadata-test-files metaflac-test-files pictures
Josh Coalsoncb908a62002-11-23 02:21:48 +000022
Erik de Castro Lopoefffc252012-02-07 18:41:28 +110023check_SCRIPTS = \
24 test_libFLAC.sh \
25 test_libFLAC++.sh \
26 test_grabbag.sh \
27 test_flac.sh \
28 test_metaflac.sh \
Erik de Castro Lopob01e5682013-08-02 06:19:56 +100029 test_replaygain.sh \
Erik de Castro Lopoefffc252012-02-07 18:41:28 +110030 test_seeking.sh \
Erik de Castro Lopo1f0dacc2012-10-14 21:40:40 +110031 test_streams.sh \
32 test_compression.sh
Josh Coalson9f429ba2001-01-19 22:39:39 +000033
Karthik Periagarambc976402014-12-13 13:15:52 -080034# This one should pass when building out-of-tree (e.g. 'make distcheck').
Erik de Castro Lopoefffc252012-02-07 18:41:28 +110035check: $(check_SCRIPTS)
Martijn van Beurdendec61ce2013-04-21 22:05:26 +020036 $(TESTS_ENVIRONMENT) $(srcdir)/test_libFLAC.sh
Erik de Castro Lopoefffc252012-02-07 18:41:28 +110037if FLaC__WITH_CPPLIBS
Martijn van Beurdendec61ce2013-04-21 22:05:26 +020038 $(TESTS_ENVIRONMENT) $(srcdir)/test_libFLAC++.sh
Erik de Castro Lopoefffc252012-02-07 18:41:28 +110039endif
Erik de Castro Lopobd516182014-12-27 12:30:41 +110040 $(TESTS_ENVIRONMENT) $(srcdir)/test_grabbag.sh
41 $(TESTS_ENVIRONMENT) $(srcdir)/test_flac.sh
42 $(TESTS_ENVIRONMENT) $(srcdir)/test_metaflac.sh
43 $(TESTS_ENVIRONMENT) $(srcdir)/test_replaygain.sh
Martijn van Beurdendec61ce2013-04-21 22:05:26 +020044 $(TESTS_ENVIRONMENT) $(srcdir)/test_seeking.sh
45 $(TESTS_ENVIRONMENT) $(srcdir)/test_streams.sh
46 $(TESTS_ENVIRONMENT) $(srcdir)/test_compression.sh
Erik de Castro Lopoefffc252012-02-07 18:41:28 +110047 @echo "----------------"
48 @echo "All tests passed"
49 @echo "----------------"
50
Josh Coalson57ba6f42002-06-07 05:27:37 +000051EXTRA_DIST = \
Erik de Castro Lopo6d0e2222019-09-29 11:57:21 +100052 CMakeLists.txt \
Josh Coalson1f99eac2002-08-23 06:45:23 +000053 Makefile.lite \
Josh Coalsoncb908a62002-11-23 02:21:48 +000054 cuesheet.ok \
Josh Coalson4b08c0b2003-01-11 06:23:34 +000055 metaflac.flac.in \
56 metaflac.flac.ok \
Josh Coalson2824cec2006-11-21 01:40:44 +000057 picture.ok \
Erik de Castro Lopoefffc252012-02-07 18:41:28 +110058 $(check_SCRIPTS) \
Josh Coalson7617cac2008-09-09 07:24:23 +000059 write_iff.pl
Josh Coalson4c8f73a2001-07-22 07:27:45 +000060
Josh Coalson0f325b02007-09-11 06:29:04 +000061clean-local:
Josh Coalsond7f53442008-09-09 07:49:19 +000062 -rm -f *.raw *.flac *.oga *.ogg *.cmp *.aiff *.wav *.w64 *.rf64 *.diff *.log *.cue core