From 6ee73b06476441be17be3fa39cfe126dc1acedc1 Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Wed, 6 Apr 2005 19:32:26 +0000 Subject: [PATCH] make test_all.sh run on Mac OSX. not part of the build. --- netwerk/test/unit/test_all.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/netwerk/test/unit/test_all.sh b/netwerk/test/unit/test_all.sh index ddbc85bf69c..84656459d73 100755 --- a/netwerk/test/unit/test_all.sh +++ b/netwerk/test/unit/test_all.sh @@ -46,7 +46,14 @@ bin="$dir/.." for t in $dir/test_*.js do - LD_LIBRARY_PATH=$bin $bin/xpcshell -f $dir/head.js -f $t -f $dir/tail.js 2> $t.log 1>&2 + if [ `uname` = "Darwin" ]; then + DYLD_LIBRARY_PATH=$bin + export DYLD_LIBRARY_PATH + else + LD_LIBRARY_PATH=$bin + export LD_LIBRARY_PATH + fi + $bin/xpcshell -f $dir/head.js -f $t -f $dir/tail.js 2> $t.log 1>&2 if [ `grep -c '\*\*\* PASS' $t.log` = 0 ] then echo "$t: FAIL (see $t.log)"