[Pkg-mozext-commits] [requestpolicy] 44/100: small changes to test bash-scripts
David Prévot
taffit at moszumanska.debian.org
Fri Dec 12 22:56:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit a6e569aeeb4fd14298bbb5e4671e042347fe42cf
Author: myrdd <myrdd at users.noreply.github.com>
Date: Fri Oct 3 12:08:29 2014 +0200
small changes to test bash-scripts
---
tests/modules/Policy/do_test.sh | 4 +---
tests/run-xpcshell-tests.sh | 2 +-
tests/run-xpcshell.sh | 2 +-
3 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/tests/modules/Policy/do_test.sh b/tests/modules/Policy/do_test.sh
index 9b1c51d..0983203 100755
--- a/tests/modules/Policy/do_test.sh
+++ b/tests/modules/Policy/do_test.sh
@@ -1,7 +1,6 @@
#!/bin/bash
cd `dirname $0`
-MOZ_BIN_DIR=/moz/z.dev1/obj/dist/bin
SRC_DIR=../../../src
if [ ! -f "$1" ]; then
@@ -9,5 +8,4 @@ if [ ! -f "$1" ]; then
exit 1
fi
-$MOZ_BIN_DIR/js -f helper.js -f $SRC_DIR/modules/Policy.jsm $1
-
+../../run-xpcshell.sh -f helper.js -f $SRC_DIR/modules/Policy.jsm $1
diff --git a/tests/run-xpcshell-tests.sh b/tests/run-xpcshell-tests.sh
index 2108c27..d1a7dfa 100755
--- a/tests/run-xpcshell-tests.sh
+++ b/tests/run-xpcshell-tests.sh
@@ -12,7 +12,7 @@ if [ -z "$1" ]; then
ARGUMENTS=""
elif [ "$1" = "--help" ]; then
echo "Usage:"
- echo " $0 [test_filename.js] (run one or all tests)"
+ echo " $0 [test_filename.js] (run all tests or just one.)"
exit
else
ARGUMENTS=" --test-path=$1 "
diff --git a/tests/run-xpcshell.sh b/tests/run-xpcshell.sh
index 974d186..40dad21 100755
--- a/tests/run-xpcshell.sh
+++ b/tests/run-xpcshell.sh
@@ -4,4 +4,4 @@ MOZ_SRC_DIR=/moz/mozilla-central
MOZ_OBJ_DIR=$MOZ_SRC_DIR/obj-*
MOZ_BIN_DIR=$MOZ_OBJ_DIR/dist/bin
-$MOZ_BIN_DIR/run-mozilla.sh $MOZ_BIN_DIR/xpcshell
+$MOZ_BIN_DIR/run-mozilla.sh $MOZ_BIN_DIR/xpcshell $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list