Bindings: use built libwsman in Perl, Python, and Java tests
diff --git a/bindings/java/tests/run b/bindings/java/tests/run
index 4c344e3..9c9654b 100755
--- a/bindings/java/tests/run
+++ b/bindings/java/tests/run
@@ -4,4 +4,6 @@
 #
 # Usage: run <dir> <file>
 #
-(cd $1; java -Djava.library.path=`pwd` $2)
+(cd $1;
+ f=`dirname $0`;
+ LD_LIBRARY_PATH=$f/../../../build/src/lib java -Djava.library.path=`pwd` $2)
diff --git a/bindings/perl/tests/run b/bindings/perl/tests/run
index b967e25..f811199 100755
--- a/bindings/perl/tests/run
+++ b/bindings/perl/tests/run
@@ -4,4 +4,6 @@
 #
 # Usage: run <dir> <file>
 #
-(cd $1; perl $2)
+(cd $1;
+ f=`dirname $0`;
+ LD_LIBRARY_PATH=$f/../../../build/src/lib perl $2)
diff --git a/bindings/python/tests/run b/bindings/python/tests/run
index 2dec91a..5ddc88d 100755
--- a/bindings/python/tests/run
+++ b/bindings/python/tests/run
@@ -4,4 +4,6 @@
 #
 # Usage: run <dir> <file>
 #
-(cd $1; python $2)
+(cd $1;
+ f=`dirname $0`;
+ LD_LIBRARY_PATH=$f/../../../build/src/lib python $2)