Files
flac/test/test_unit.sh

31 lines
1.2 KiB
Bash
Raw Normal View History

2000-12-10 04:09:52 +00:00
#!/bin/sh
# FLAC - Free Lossless Audio Codec
2002-01-26 18:05:12 +00:00
# Copyright (C) 2001,2002 Josh Coalson
#
# This program is part of FLAC; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
LD_LIBRARY_PATH=../src/libFLAC/.libs:../obj/lib:$LD_LIBRARY_PATH
2000-12-10 04:09:52 +00:00
export LD_LIBRARY_PATH
PATH=../src/test_unit:../obj/bin:$PATH
2000-12-10 04:09:52 +00:00
2002-05-09 05:55:13 +00:00
# We use the whole path to test_unit so it can find itself. It uses it's own
# binary as a dummy source for creating a test FLAC file so it can work on the
# metadata.
2002-05-09 05:53:46 +00:00
if `which test_unit` ; then : ; else
echo "ERROR during test_unit" 1>&2
2000-12-10 04:09:52 +00:00
exit 1
fi