blob: 2259eb08587a1a364888226b7a4fa22226b68ec0 [file] [log] [blame]
Erik de Castro Lopo1a7c3fa2014-11-27 13:03:13 +11001#!/bin/sh -e
Josh Coalsonb5988942002-06-07 06:10:08 +00002
3# FLAC - Free Lossless Audio Codec
Erik de Castro Lopob1982fb2013-05-25 17:11:19 +10004# Copyright (C) 2001-2009 Josh Coalson
Erik de Castro Lopo6a5fe432016-12-05 06:35:39 +11005# Copyright (C) 2011-2016 Xiph.Org Foundation
Josh Coalsonb5988942002-06-07 06:10:08 +00006#
Josh Coalsone8a76012003-02-07 00:14:32 +00007# This file is part the FLAC project. FLAC is comprised of several
Ulrich Klauercd4ddab2013-05-26 22:53:43 +02008# components distributed under different licenses. The codec libraries
Josh Coalsone8a76012003-02-07 00:14:32 +00009# are distributed under Xiph.Org's BSD-like license (see the file
10# COPYING.Xiph in this distribution). All other programs, libraries, and
11# plugins are distributed under the GPL (see COPYING.GPL). The documentation
12# is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
13# FLAC distribution contains at the top the terms under which it may be
14# distributed.
Josh Coalsonb5988942002-06-07 06:10:08 +000015#
Josh Coalsone8a76012003-02-07 00:14:32 +000016# Since this particular file is relevant to all components of FLAC,
17# it may be distributed under the Xiph.Org license, which is the least
18# restrictive of those mentioned above. See the file COPYING.Xiph in this
19# distribution.
Josh Coalsonb5988942002-06-07 06:10:08 +000020
Erik de Castro Lopo1a7c3fa2014-11-27 13:03:13 +110021. ./common.sh
Cristian Rodríguez95f0f752012-04-17 22:12:45 -030022
Josh Coalsonb43d3cb2004-11-09 01:28:05 +000023PATH=../src/test_libFLAC:$PATH
Erik de Castro Lopo85d5c532013-01-02 22:37:42 +110024PATH=../objs/$BUILD/bin:$PATH
Josh Coalsonb5988942002-06-07 06:10:08 +000025
Josh Coalson34c1ea82002-12-04 04:57:33 +000026run_test_libFLAC ()
27{
Josh Coalsonde9091e2006-05-25 02:48:22 +000028 if [ x"$FLAC__TEST_WITH_VALGRIND" = xyes ] ; then
Erik de Castro Lopoa9712a22013-09-16 19:55:11 +100029 valgrind --leak-check=yes --show-reachable=yes --num-callers=50 --log-fd=4 test_libFLAC${EXE} $* 4>>test_libFLAC.valgrind.log
Josh Coalson34c1ea82002-12-04 04:57:33 +000030 else
Erik de Castro Lopoa9712a22013-09-16 19:55:11 +100031 test_libFLAC${EXE} $*
Josh Coalson34c1ea82002-12-04 04:57:33 +000032 fi
33}
34
Josh Coalson6218b342002-12-12 03:58:18 +000035run_test_libFLAC || die "ERROR during test_libFLAC"