summaryrefslogtreecommitdiff
path: root/test/test_libFLAC++.sh
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2004-11-09 01:28:05 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2004-11-09 01:28:05 +0000
commitb43d3cbd9ee4ca6217ec886174befb3fd0acf2db (patch)
tree4f330ad97a0bc589e2f420a1a5188d048ba86a3b /test/test_libFLAC++.sh
parentb42b0ee5f5bea25fed30b5fb468df4fb359a80c6 (diff)
downloadflac-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-xtest/test_libFLAC++.sh16
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 ()
{