forked from mozilla-b2g/B2G
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·39 lines (34 loc) · 816 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
B2G_HOME=$(dirname $BASH_SOURCE)
usage() {
echo "Usage: $0 [marionette|mochitest|updates|xpcshell] (frontend-args)"
echo ""
echo "'marionette' is the default frontend"
}
FRONTEND=$1
if [ -z "$FRONTEND" ]; then
FRONTEND=marionette
else
shift
fi
case "$FRONTEND" in
mochitest)
echo "Use ./mach mochitest-remote to run tests;"
echo "use ./mach help mochitest-remote for options." ;;
marionette)
echo "Use ./mach marionette-webapi to run tests;"
echo "use ./mach help mochitest-webapi for options." ;;
updates)
SCRIPT=$B2G_HOME/scripts/updates.sh ;;
xpcshell)
SCRIPT=$B2G_HOME/scripts/xpcshell.sh ;;
--help|-h|help)
usage
exit 0;;
*)
usage
echo "Error: Unknown test frontend: $FRONTEND" 1>&2
exit 1
esac
echo $SCRIPT $@
$SCRIPT $@