forked from bgirard/Gecko-Profiler-Addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·72 lines (59 loc) · 1.27 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
set -e
./bootstrap.sh
if [ ! -d "sdk" ]; then
echo "Must download the sdk first:"
echo "git clone https://github.com/mozilla/addon-sdk sdk"
echo "cd sdk && git checkout 1.4 && cd .."
exit
fi
cd sdk
. ./bin/activate
cd ..
# Check if a custom build is found first
#if [ -e /Applications/Earlybird.app ]
#then
# cfx test -v -a thunderbird --binary /Applications/Earlybird.app
# exit
#fi
if [ -e "$1" ]
then
echo "Custom binary: $1"
cfx test -v --binary "$1"
exit
fi
if [ -e /home/v/Downloads/firefox/firefox ]
then
cfx test -v --binary /home/v/Downloads/firefox/firefox
exit
fi
if [ -e ./firefox/firefox ]
then
cfx test -v --binary ./firefox/firefox
exit
fi
if [ -e ~/firefox/firefox ]
then
cfx test -v --binary ~/firefox/firefox
exit
fi
if [ -e /Users/bgirard/mozilla/mozilla-central/builds/obj-ff-64gdb/dist/Nightly.app ]
then
echo "64 gdb"
cfx test -v --binary /Users/bgirard/mozilla/mozilla-central/builds/obj-ff-64gdb/dist/Nightly.app
exit
fi
if [ -e /Volumes/Nightly/FirefoxNightly.app ]
then
echo Nightly
cfx test -v --binary /Volumes/Nightly/FirefoxNightly.app
exit
fi
# or use nightly
if [ -e /Applications/FirefoxNightly.app ]
then
echo Nightly
cfx test -v --binary /Applications/FirefoxNightly.app
exit
fi
cfx test -v