From: Josh Coalson Date: Fri, 19 Jan 2001 23:10:56 +0000 (+0000) Subject: add support back in for running under .lite system X-Git-Tag: 1.2.0~2709 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67fcd8ed2cfbf4a92ef73ae340f6fa1f70ab2c9f;p=platform%2Fupstream%2Fflac.git add support back in for running under .lite system --- diff --git a/test/test_streams.sh b/test/test_streams.sh index 59450f12..00dc1832 100755 --- a/test/test_streams.sh +++ b/test/test_streams.sh @@ -1,15 +1,14 @@ #!/bin/sh -LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../src/libFLAC/.libs +LD_LIBRARY_PATH=../src/libFLAC/.libs:../obj/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH +PATH=../src/flac:../src/test_streams:../obj/bin:$PATH -if ../src/test_streams/test_streams ; then : ; else +if test_streams ; then : ; else echo "ERROR during test_streams" 1>&2 exit 1 fi -FLAC=../src/flac/flac - test_file () { name=$1 @@ -19,13 +18,13 @@ test_file () echo "### ENCODE $name ########################################" >> ./encode.log echo -n "$name: encode..." - if $FLAC -s -fb -fs 44100 -fp $bps -fc $channels -0 -l 8 -m -e $encode_options $name.raw $name.flac 2>>./encode.log ; then : ; else + if flac -s -fb -fs 44100 -fp $bps -fc $channels -0 -l 8 -m -e $encode_options $name.raw $name.flac 2>>./encode.log ; then : ; else echo "ERROR during encode of $name" 1>&2 exit 1 fi echo "### DECODE $name ########################################" >> ./decode.log echo -n "decode..." - if $FLAC -s -fb -d -fr $name.flac $name.cmp 2>>./decode.log ; then : ; else + if flac -s -fb -d -fr $name.flac $name.cmp 2>>./decode.log ; then : ; else echo "ERROR during decode of $name" 1>&2 exit 1 fi diff --git a/test/test_unit.sh b/test/test_unit.sh index 0f2d0d6b..a577f75d 100755 --- a/test/test_unit.sh +++ b/test/test_unit.sh @@ -1,9 +1,10 @@ #!/bin/sh -LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../src/libFLAC/.libs +LD_LIBRARY_PATH=../src/libFLAC/.libs:../obj/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH +PATH=../src/test_unit:../obj/bin:$PATH -if ../src/test_unit/test_unit ; then : ; else +if test_unit ; then : ; else echo "ERROR during testgen" 1>&2 exit 1 fi