Blame test/test_libFLAC++.sh

Packit 8f7830
#!/bin/sh -e
Packit 8f7830
Packit 8f7830
#  FLAC - Free Lossless Audio Codec
Packit 8f7830
#  Copyright (C) 2002-2009  Josh Coalson
Packit 8f7830
#  Copyright (C) 2011-2016  Xiph.Org Foundation
Packit 8f7830
#
Packit 8f7830
#  This file is part the FLAC project.  FLAC is comprised of several
Packit 8f7830
#  components distributed under different licenses.  The codec libraries
Packit 8f7830
#  are distributed under Xiph.Org's BSD-like license (see the file
Packit 8f7830
#  COPYING.Xiph in this distribution).  All other programs, libraries, and
Packit 8f7830
#  plugins are distributed under the GPL (see COPYING.GPL).  The documentation
Packit 8f7830
#  is distributed under the Gnu FDL (see COPYING.FDL).  Each file in the
Packit 8f7830
#  FLAC distribution contains at the top the terms under which it may be
Packit 8f7830
#  distributed.
Packit 8f7830
#
Packit 8f7830
#  Since this particular file is relevant to all components of FLAC,
Packit 8f7830
#  it may be distributed under the Xiph.Org license, which is the least
Packit 8f7830
#  restrictive of those mentioned above.  See the file COPYING.Xiph in this
Packit 8f7830
#  distribution.
Packit 8f7830
Packit 8f7830
. ./common.sh
Packit 8f7830
Packit 8f7830
PATH=../src/test_libFLAC++:$PATH
Packit 8f7830
PATH=../objs/$BUILD/bin:$PATH
Packit 8f7830
Packit 8f7830
run_test_libFLACpp ()
Packit 8f7830
{
Packit 8f7830
	if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then
Packit 8f7830
		valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 test_libFLAC++${EXE} $* 4>>test_libFLAC++.valgrind.log
Packit 8f7830
	else
Packit 8f7830
		test_libFLAC++${EXE} $*
Packit 8f7830
	fi
Packit 8f7830
}
Packit 8f7830
Packit 8f7830
run_test_libFLACpp || die "ERROR during test_libFLAC++"