cannam@86: #!/bin/sh cannam@86: cannam@86: # FLAC - Free Lossless Audio Codec cannam@86: # Copyright (C) 2002,2003,2004,2005,2006,2007 Josh Coalson cannam@86: # cannam@86: # This file is part the FLAC project. FLAC is comprised of several cannam@86: # components distributed under difference licenses. The codec libraries cannam@86: # are distributed under Xiph.Org's BSD-like license (see the file cannam@86: # COPYING.Xiph in this distribution). All other programs, libraries, and cannam@86: # plugins are distributed under the GPL (see COPYING.GPL). The documentation cannam@86: # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the cannam@86: # FLAC distribution contains at the top the terms under which it may be cannam@86: # distributed. cannam@86: # cannam@86: # Since this particular file is relevant to all components of FLAC, cannam@86: # it may be distributed under the Xiph.Org license, which is the least cannam@86: # restrictive of those mentioned above. See the file COPYING.Xiph in this cannam@86: # distribution. cannam@86: cannam@86: die () cannam@86: { cannam@86: echo $* 1>&2 cannam@86: exit 1 cannam@86: } cannam@86: cannam@86: if [ x = x"$1" ] ; then cannam@86: BUILD=debug cannam@86: else cannam@86: BUILD="$1" cannam@86: fi cannam@86: cannam@86: LD_LIBRARY_PATH=../src/libFLAC/.libs:$LD_LIBRARY_PATH cannam@86: LD_LIBRARY_PATH=../src/libFLAC++/.libs:$LD_LIBRARY_PATH cannam@86: LD_LIBRARY_PATH=../src/share/grabbag/.libs:$LD_LIBRARY_PATH cannam@86: LD_LIBRARY_PATH=../src/share/replaygain_analysis/.libs:$LD_LIBRARY_PATH cannam@86: LD_LIBRARY_PATH=../obj/$BUILD/lib:$LD_LIBRARY_PATH cannam@86: export LD_LIBRARY_PATH cannam@86: PATH=../src/test_libFLAC++:$PATH cannam@86: PATH=../obj/$BUILD/bin:$PATH cannam@86: cannam@86: run_test_libFLACpp () cannam@86: { cannam@86: if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then cannam@86: valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --log-fd=4 test_libFLAC++ $* 4>>test_libFLAC++.valgrind.log cannam@86: else cannam@86: test_libFLAC++ $* cannam@86: fi cannam@86: } cannam@86: cannam@86: run_test_libFLACpp || die "ERROR during test_libFLAC++"