forked from PrivacyScore/PrivacyScore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-tests.sh
More file actions
executable file
·25 lines (20 loc) · 830 Bytes
/
install-tests.sh
File metadata and controls
executable file
·25 lines (20 loc) · 830 Bytes
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
#!/bin/bash -e
# Popuplates the vendor directory of the tests
mkdir -p tests/vendor
touch tests/vendor/__init__.py
# geoip
mkdir -p tests/vendor/geoip
wget --quiet -O- http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz | gunzip > tests/vendor/geoip/GeoLite2-Country.mmdb
# privacyscanner
git clone https://github.com/PrivacyScore/privacyscanner.git
pushd privacyscanner
pip install .
privacyscanner update_dependencies
popd
# testssl.sh
git clone https://github.com/drwetter/testssl.sh.git tests/vendor/testssl.sh
# HSTS Preload List
mkdir tests/vendor/HSTSPreload
pushd tests/vendor/HSTSPreload
wget https://chromium.googlesource.com/chromium/src/net/+/master/http/transport_security_state_static.json?format=TEXT -O - | base64 -d | egrep -v "^([ ]*\/\/|$)" > "transport_security_state_static"
popd