Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
35 lines (32 loc) · 1.21 KB

File metadata and controls

executable file
·
35 lines (32 loc) · 1.21 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!/bin/bash
#
# Test that all rulesets modified after a certain date have sufficient test
# coverage, according to the ruleset checker.
#
cd $(dirname $0)
source utils/mktemp.sh
TMP="$(mktemp)"
trap 'rm "$TMP"' EXIT
if ! [ -d https-everywhere-checker ] ; then
echo "Submodule https-everywhere-checker is missing. Run"
echo "./install-dev-dependencies.sh"
exit 1
fi
if [ $# -gt 0 ] ; then
exec python2.7 https-everywhere-checker/src/https_everywhere_checker/check_rules.py \
https-everywhere-checker/coverage.checker.config "$@"
fi
if ! python2.7 https-everywhere-checker/src/https_everywhere_checker/check_rules.py \
https-everywhere-checker/coverage.checker.config; then
echo "Ruleset test coverage was insufficient."
echo ""
echo "Under the new ruleset testing rules (February 2015), any modified ruleset"
echo "must have sufficient test coverage. You can often improve test coverage by"
echo "adding <test url='...' /> tags, or by restructuring the rule to avoid"
echo "wildcard <target> tags. See these documents:"
echo "https://github.com/EFForg/https-everywhere/blob/master/ruleset-testing.md"
echo "https://github.com/EFForg/https-everywhere/blob/master/ruleset-style.md"
exit 1
else
exit 0
fi
Morty Proxy This is a proxified and sanitized view of the page, visit original site.