annotate src/flac-1.2.1/test/test_libFLAC.sh @ 94:d278df1123f9

Add liblo
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 20 Mar 2013 15:25:02 +0000
parents 98c1576536ae
children
rev   line source
cannam@86 1 #!/bin/sh
cannam@86 2
cannam@86 3 # FLAC - Free Lossless Audio Codec
cannam@86 4 # Copyright (C) 2001,2002,2003,2004,2005,2006,2007 Josh Coalson
cannam@86 5 #
cannam@86 6 # This file is part the FLAC project. FLAC is comprised of several
cannam@86 7 # components distributed under difference licenses. The codec libraries
cannam@86 8 # are distributed under Xiph.Org's BSD-like license (see the file
cannam@86 9 # COPYING.Xiph in this distribution). All other programs, libraries, and
cannam@86 10 # plugins are distributed under the GPL (see COPYING.GPL). The documentation
cannam@86 11 # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
cannam@86 12 # FLAC distribution contains at the top the terms under which it may be
cannam@86 13 # distributed.
cannam@86 14 #
cannam@86 15 # Since this particular file is relevant to all components of FLAC,
cannam@86 16 # it may be distributed under the Xiph.Org license, which is the least
cannam@86 17 # restrictive of those mentioned above. See the file COPYING.Xiph in this
cannam@86 18 # distribution.
cannam@86 19
cannam@86 20 die ()
cannam@86 21 {
cannam@86 22 echo $* 1>&2
cannam@86 23 exit 1
cannam@86 24 }
cannam@86 25
cannam@86 26 if [ x = x"$1" ] ; then
cannam@86 27 BUILD=debug
cannam@86 28 else
cannam@86 29 BUILD="$1"
cannam@86 30 fi
cannam@86 31
cannam@86 32 LD_LIBRARY_PATH=../src/libFLAC/.libs:$LD_LIBRARY_PATH
cannam@86 33 LD_LIBRARY_PATH=../src/share/grabbag/.libs:$LD_LIBRARY_PATH
cannam@86 34 LD_LIBRARY_PATH=../src/share/replaygain_analysis/.libs:$LD_LIBRARY_PATH
cannam@86 35 LD_LIBRARY_PATH=../obj/$BUILD/lib:$LD_LIBRARY_PATH
cannam@86 36 export LD_LIBRARY_PATH
cannam@86 37 PATH=../src/test_libFLAC:$PATH
cannam@86 38 PATH=../obj/$BUILD/bin:$PATH
cannam@86 39
cannam@86 40 run_test_libFLAC ()
cannam@86 41 {
cannam@86 42 if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then
cannam@86 43 valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --log-fd=4 test_libFLAC $* 4>>test_libFLAC.valgrind.log
cannam@86 44 else
cannam@86 45 test_libFLAC $*
cannam@86 46 fi
cannam@86 47 }
cannam@86 48
cannam@86 49 run_test_libFLAC || die "ERROR during test_libFLAC"