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.
This commit is contained in:
Erik de Castro Lopo
2012-02-07 18:41:28 +11:00
parent d7bfc779c8
commit efffc25c18
2 changed files with 37 additions and 22 deletions

View File

@@ -51,7 +51,7 @@ EXTRA_DIST = \
ltmain.sh \ ltmain.sh \
strip_non_asm_libtool_args.sh strip_non_asm_libtool_args.sh
fastcheck: fullcheck:
(cd test && make fastcheck) (cd test && make fullcheck)
CLEANFILES = *~ CLEANFILES = *~

View File

@@ -15,26 +15,47 @@
# restrictive of those mentioned above. See the file COPYING.Xiph in this # restrictive of those mentioned above. See the file COPYING.Xiph in this
# distribution. # 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@ 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 SUBDIRS = cuesheets flac-to-flac-metadata-test-files metaflac-test-files pictures
TESTS = \ check_SCRIPTS = \
./test_libFLAC.sh \ test_libFLAC.sh \
$(CPPLIBS_TESTS) \ test_libFLAC++.sh \
./test_grabbag.sh \ test_grabbag.sh \
./test_flac.sh \ test_flac.sh \
./test_metaflac.sh \ test_metaflac.sh \
./test_seeking.sh \ test_seeking.sh \
./test_streams.sh test_streams.sh
fastcheck: $(TESTS) # 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 "----------------"
# 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 ./test_libFLAC.sh
if FLaC__WITH_CPPLIBS
./test_libFLAC++.sh
endif
./test_grabbag.sh ./test_grabbag.sh
./test_flac.sh
./test_metaflac.sh
./test_seeking.sh
./test_streams.sh
@echo "----------------"
@echo "All tests passed"
@echo "----------------"
EXTRA_DIST = \ EXTRA_DIST = \
Makefile.lite \ Makefile.lite \
@@ -42,13 +63,7 @@ EXTRA_DIST = \
metaflac.flac.in \ metaflac.flac.in \
metaflac.flac.ok \ metaflac.flac.ok \
picture.ok \ picture.ok \
test_libFLAC.sh \ $(check_SCRIPTS) \
$(CPPLIBS_TESTS) \
test_flac.sh \
test_metaflac.sh \
test_grabbag.sh \
test_seeking.sh \
test_streams.sh \
test_wrapper.sh \ test_wrapper.sh \
test_bins.sh \ test_bins.sh \
write_iff.pl write_iff.pl