NGINX: Upstream update to version 1.4.4
[tomato.git] / release / src / router / flac / test / test_libFLAC++.sh
blob550c6bd3efba7e0fd200d027109db52c90126699
1 #!/bin/sh
3 # FLAC - Free Lossless Audio Codec
4 # Copyright (C) 2002,2003,2004,2005,2006,2007 Josh Coalson
6 # This file is part the FLAC project. FLAC is comprised of several
7 # components distributed under difference licenses. The codec libraries
8 # are distributed under Xiph.Org's BSD-like license (see the file
9 # COPYING.Xiph in this distribution). All other programs, libraries, and
10 # plugins are distributed under the GPL (see COPYING.GPL). The documentation
11 # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
12 # FLAC distribution contains at the top the terms under which it may be
13 # distributed.
15 # Since this particular file is relevant to all components of FLAC,
16 # it may be distributed under the Xiph.Org license, which is the least
17 # restrictive of those mentioned above. See the file COPYING.Xiph in this
18 # distribution.
20 die ()
22 echo $* 1>&2
23 exit 1
26 if [ x = x"$1" ] ; then
27 BUILD=debug
28 else
29 BUILD="$1"
32 LD_LIBRARY_PATH=../src/libFLAC/.libs:$LD_LIBRARY_PATH
33 LD_LIBRARY_PATH=../src/libFLAC++/.libs:$LD_LIBRARY_PATH
34 LD_LIBRARY_PATH=../src/share/grabbag/.libs:$LD_LIBRARY_PATH
35 LD_LIBRARY_PATH=../src/share/replaygain_analysis/.libs:$LD_LIBRARY_PATH
36 LD_LIBRARY_PATH=../obj/$BUILD/lib:$LD_LIBRARY_PATH
37 export LD_LIBRARY_PATH
38 PATH=../src/test_libFLAC++:$PATH
39 PATH=../obj/$BUILD/bin:$PATH
41 run_test_libFLACpp ()
43 if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then
44 valgrind --leak-check=yes --show-reachable=yes --num-callers=100 --log-fd=4 test_libFLAC++ $* 4>>test_libFLAC++.valgrind.log
45 else
46 test_libFLAC++ $*
50 run_test_libFLACpp || die "ERROR during test_libFLAC++"