File tree Expand file tree Collapse file tree 4 files changed +22
-8
lines changed
Expand file tree Collapse file tree 4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ tokenkeys.py*
1111.idea
1212* .pyc
1313from-preloads /
14+ test_profile /
Original file line number Diff line number Diff line change 44* Latest release of the Firefox Add-On SDK: https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Installation
55
66## Instructions
7- 1 . Create a clean Firefox profile and install the HTTPS Everywhere XPI that you wish to test (TODO: script this).
8- 2 . Copy the profile to ` /tmp/test_profile ` (TODO: make this configurable).
9- 3 . Activate the Add-on SDK.
10- 4 . cd to your HTTPS Everywhere repository root and run ` ./test.sh ` .
11- 5 . To add tests, put them in ` ./https-everywhere-tests/tests ` .
7+ ### First time
8+ 1 . Create a clean Firefox profile and install HTTPS Everywhere.
9+ 2 . Copy the profile to ` ./test_profile ` (TODO: make this configurable).
10+
11+ ### Every time
12+ 1 . Activate the Add-on SDK.
13+ 2 . cd to your HTTPS Everywhere repository root and run ` ./test.sh ` .
14+
15+ To add tests, put them in ` ./https-everywhere-tests/tests ` .
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ TEST_ADDON_PATH=./https-everywhere-tests/
88LATEST_SDK_VERSION=1.16
99
1010# firefox profile that has HTTPS Everywhere installed
11- PROFILE_DIRECTORY=/tmp/test_profile
11+ PROFILE_DIRECTORY=./test_profile
12+ HTTPSE_INSTALL_DIRECTORY=./test_profile/extensions/https-everywhere@eff.org
1213
1314if [ ! -d " $TEST_ADDON_PATH " ]; then
1415 echo " Test addon path does not exist"
@@ -20,6 +21,11 @@ if [ ! -d "$PROFILE_DIRECTORY" ]; then
2021 exit 1
2122fi
2223
24+ if [ ! -d " $HTTPSE_INSTALL_DIRECTORY " ]; then
25+ echo " Firefox profile does not have HTTPS Everywhere installed"
26+ exit 1
27+ fi
28+
2329if ! type cfx > /dev/null; then
2430 echo " Please activate the Firefox Addon SDK before running this script."
2531 exit 1
@@ -30,6 +36,9 @@ if ! cfx --version | grep -q "$LATEST_SDK_VERSION"; then
3036 exit 1
3137fi
3238
33- cd $TEST_ADDON_PATH
39+ cd src/
40+ rsync -av --exclude-from=" ../.build_exclusions" . ../$HTTPSE_INSTALL_DIRECTORY
41+
42+ cd ../$TEST_ADDON_PATH
3443echo " running tests"
35- cfx test --profiledir=$PROFILE_DIRECTORY --verbose
44+ cfx test --profiledir=" ../ $PROFILE_DIRECTORY " --verbose
You can’t perform that action at this time.
0 commit comments