diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2004-11-09 01:28:05 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2004-11-09 01:28:05 +0000 |
commit | b43d3cbd9ee4ca6217ec886174befb3fd0acf2db (patch) | |
tree | 4f330ad97a0bc589e2f420a1a5188d048ba86a3b /test/test_libFLAC++.sh | |
parent | b42b0ee5f5bea25fed30b5fb468df4fb359a80c6 (diff) | |
download | flac-b43d3cbd9ee4ca6217ec886174befb3fd0acf2db.tar.gz |
fix PATH and LD_LIBRARY_PATH settings, pass build type as first arg to test scripts
Diffstat (limited to 'test/test_libFLAC++.sh')
-rwxr-xr-x | test/test_libFLAC++.sh | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/test/test_libFLAC++.sh b/test/test_libFLAC++.sh index 9bd23e33..a0f492de 100755 --- a/test/test_libFLAC++.sh +++ b/test/test_libFLAC++.sh @@ -23,10 +23,20 @@ die () exit 1 } -LD_LIBRARY_PATH=../src/libFLAC++/.libs:../src/libFLAC/.libs:../obj/release/lib:../obj/debug/lib:$LD_LIBRARY_PATH +if [ x = x"$1" ] ; then + BUILD=debug +else + BUILD="$1" +fi + +LD_LIBRARY_PATH=../src/libFLAC/.libs:$LD_LIBRARY_PATH +LD_LIBRARY_PATH=../src/libFLAC++/.libs:$LD_LIBRARY_PATH +LD_LIBRARY_PATH=../src/share/grabbag/.libs:$LD_LIBRARY_PATH +LD_LIBRARY_PATH=../src/share/replaygain_analysis/.libs:$LD_LIBRARY_PATH +LD_LIBRARY_PATH=../obj/$BUILD/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH -PATH=../src/test_libFLAC++:../obj/release/bin:../obj/debug/bin:$PATH -export PATH +PATH=../src/test_libFLAC++:$PATH +PATH=../obj/$BUILD/bin:$PATH run_test_libFLACpp () { |