summaryrefslogtreecommitdiff
path: root/test/Makefile.am
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2012-02-07 18:41:28 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2012-02-07 18:41:28 +1100
commitefffc25c18b8d4c4b60cbe76559eefb00d61aa71 (patch)
tree76d7147f121521dafc4b85fd07abe21abe1f667c /test/Makefile.am
parentd7bfc779c8dff37dfde310f7ef732616656cafbb (diff)
downloadflac-efffc25c18b8d4c4b60cbe76559eefb00d61aa71.tar.gz
Fix 'make distcheck'.
This disables the tests that don't run correctly out-of-tree from the 'make check' target. Also add a new 'make fullcheck' target which is the full old test suite.
Diffstat (limited to 'test/Makefile.am')
-rw-r--r--test/Makefile.am55
1 files changed, 35 insertions, 20 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index c2aa164c..d423c0b9 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -15,26 +15,47 @@
# restrictive of those mentioned above. See the file COPYING.Xiph in this
# distribution.
-if FLaC__WITH_CPPLIBS
-CPPLIBS_TESTS = test_libFLAC++.sh
-endif
-
TESTS_ENVIRONMENT = FLAC__TEST_LEVEL=@FLAC__TEST_LEVEL@ FLAC__TEST_WITH_VALRGIND=@FLAC__TEST_WITH_VALGRIND@
SUBDIRS = cuesheets flac-to-flac-metadata-test-files metaflac-test-files pictures
-TESTS = \
- ./test_libFLAC.sh \
- $(CPPLIBS_TESTS) \
- ./test_grabbag.sh \
- ./test_flac.sh \
- ./test_metaflac.sh \
- ./test_seeking.sh \
- ./test_streams.sh
+check_SCRIPTS = \
+ test_libFLAC.sh \
+ test_libFLAC++.sh \
+ test_grabbag.sh \
+ test_flac.sh \
+ test_metaflac.sh \
+ test_seeking.sh \
+ test_streams.sh
+
+# This one should pass when building out-of-tree (eg 'make distcheck').
+check: $(check_SCRIPTS)
+ $(srcdir)/test_libFLAC.sh
+if FLaC__WITH_CPPLIBS
+ $(srcdir)/test_libFLAC++.sh
+endif
+ $(srcdir)/test_seeking.sh
+ $(srcdir)/test_streams.sh
+ @echo "----------------"
+ @echo "All tests passed"
+ @echo "----------------"
-fastcheck: $(TESTS)
+# This is the full test suite, but only works correctly in-tree.
+# In particular test_grabbag.sh, test_flac.sh and test_metaflac.sh will not
+# run correctly out-of-tree.
+fullcheck: $(check_SCRIPTS)
./test_libFLAC.sh
+if FLaC__WITH_CPPLIBS
+ ./test_libFLAC++.sh
+endif
./test_grabbag.sh
+ ./test_flac.sh
+ ./test_metaflac.sh
+ ./test_seeking.sh
+ ./test_streams.sh
+ @echo "----------------"
+ @echo "All tests passed"
+ @echo "----------------"
EXTRA_DIST = \
Makefile.lite \
@@ -42,13 +63,7 @@ EXTRA_DIST = \
metaflac.flac.in \
metaflac.flac.ok \
picture.ok \
- test_libFLAC.sh \
- $(CPPLIBS_TESTS) \
- test_flac.sh \
- test_metaflac.sh \
- test_grabbag.sh \
- test_seeking.sh \
- test_streams.sh \
+ $(check_SCRIPTS) \
test_wrapper.sh \
test_bins.sh \
write_iff.pl