2014-11-27 05:03:13 +03:00
|
|
|
#!/bin/sh -e
|
2002-06-07 10:10:08 +04:00
|
|
|
|
|
|
|
# FLAC - Free Lossless Audio Codec
|
2013-05-25 11:11:19 +04:00
|
|
|
# Copyright (C) 2001-2009 Josh Coalson
|
2024-07-11 16:35:32 +03:00
|
|
|
# Copyright (C) 2011-2024 Xiph.Org Foundation
|
2002-06-07 10:10:08 +04:00
|
|
|
#
|
2003-02-07 03:14:32 +03:00
|
|
|
# This file is part the FLAC project. FLAC is comprised of several
|
2013-05-27 00:53:43 +04:00
|
|
|
# components distributed under different licenses. The codec libraries
|
2003-02-07 03:14:32 +03:00
|
|
|
# are distributed under Xiph.Org's BSD-like license (see the file
|
|
|
|
# COPYING.Xiph in this distribution). All other programs, libraries, and
|
|
|
|
# plugins are distributed under the GPL (see COPYING.GPL). The documentation
|
|
|
|
# is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
|
|
|
|
# FLAC distribution contains at the top the terms under which it may be
|
|
|
|
# distributed.
|
2002-06-07 10:10:08 +04:00
|
|
|
#
|
2003-02-07 03:14:32 +03:00
|
|
|
# Since this particular file is relevant to all components of FLAC,
|
|
|
|
# it may be distributed under the Xiph.Org license, which is the least
|
|
|
|
# restrictive of those mentioned above. See the file COPYING.Xiph in this
|
|
|
|
# distribution.
|
2002-06-07 10:10:08 +04:00
|
|
|
|
2014-11-27 05:03:13 +03:00
|
|
|
. ./common.sh
|
2012-04-18 05:12:45 +04:00
|
|
|
|
2004-11-09 04:28:05 +03:00
|
|
|
PATH=../src/test_libFLAC:$PATH
|
2013-01-02 15:37:42 +04:00
|
|
|
PATH=../objs/$BUILD/bin:$PATH
|
2002-06-07 10:10:08 +04:00
|
|
|
|
2002-12-04 07:57:33 +03:00
|
|
|
run_test_libFLAC ()
|
|
|
|
{
|
2022-05-18 22:27:19 +03:00
|
|
|
if [ "$FLAC__TEST_WITH_VALGRIND" = yes ] ; then
|
2013-09-16 13:55:11 +04:00
|
|
|
valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 test_libFLAC${EXE} $* 4>>test_libFLAC.valgrind.log
|
2002-12-04 07:57:33 +03:00
|
|
|
else
|
2013-09-16 13:55:11 +04:00
|
|
|
test_libFLAC${EXE} $*
|
2002-12-04 07:57:33 +03:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2022-05-18 22:27:19 +03:00
|
|
|
run_test_libFLAC "$@"|| die "ERROR during test_libFLAC"
|