X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=test%2FMakefile.am;h=9bc3b1eb24623fbe8d1ddb726949537750957c7c;hb=3c84f9e86b40b64bb42af6dff8c61521c5439ecd;hp=8b68139813cad06b2292a088626def91fe34c249;hpb=0faeaa1b6b1a85d50c391ebbf2b25fa15d181e0f;p=platform%2Fupstream%2Fflac.git diff --git a/test/Makefile.am b/test/Makefile.am index 8b68139..9bc3b1e 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,5 +1,5 @@ # FLAC - Free Lossless Audio Codec -# Copyright (C) 2001,2002,2003,2004,2005,2006 Josh Coalson +# Copyright (C) 2001,2002,2003,2004,2005,2006,2007,2008,2009 Josh Coalson # # This file is part the FLAC project. FLAC is comprised of several # components distributed under difference licenses. The codec libraries @@ -19,46 +19,57 @@ TESTS_ENVIRONMENT = FLAC__TEST_LEVEL=@FLAC__TEST_LEVEL@ FLAC__TEST_WITH_VALRGIND SUBDIRS = cuesheets flac-to-flac-metadata-test-files metaflac-test-files pictures -if FLaC__HAS_OGG -OGG_TESTS = \ - ./test_libOggFLAC.sh \ - ./test_libOggFLAC++.sh +check_SCRIPTS = \ + test_libFLAC.sh \ + test_libFLAC++.sh \ + test_grabbag.sh \ + test_flac.sh \ + test_metaflac.sh \ + test_seeking.sh \ + test_streams.sh \ + test_compression.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 + $(srcdir)/test_compression.sh + @echo "----------------" + @echo "All tests passed" + @echo "----------------" -TESTS = \ - ./test_libFLAC.sh \ - ./test_libFLAC++.sh \ - $(OGG_TESTS) \ - ./test_flac.sh \ - ./test_metaflac.sh \ - ./test_grabbag.sh \ - ./test_seeking.sh \ +# 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 + ./test_compression.sh + @echo "----------------" + @echo "All tests passed" + @echo "----------------" EXTRA_DIST = \ Makefile.lite \ cuesheet.ok \ metaflac.flac.in \ metaflac.flac.ok \ - test_libFLAC.sh \ - test_libFLAC++.sh \ - test_libOggFLAC.sh \ - test_libOggFLAC++.sh \ - test_flac.sh \ - test_metaflac.sh \ - test_grabbag.sh \ - test_seeking.sh \ - test_streams.sh \ - test_bins.sh + picture.ok \ + $(check_SCRIPTS) \ + test_wrapper.sh \ + test_bins.sh \ + write_iff.pl -CLEANFILES = \ - $(wildcard *.raw) \ - $(wildcard *.flac) \ - $(wildcard *.ogg) \ - $(wildcard *.cmp) \ - $(wildcard *.aiff) \ - $(wildcard *.wav) \ - $(wildcard *.diff) \ - $(wildcard *.log) \ - $(wildcard *.cue) \ - core +clean-local: + -rm -f *.raw *.flac *.oga *.ogg *.cmp *.aiff *.wav *.w64 *.rf64 *.diff *.log *.cue core