diff options
author | jahoti <jahoti@tilde.team> | 2021-09-04 00:00:00 +0000 |
---|---|---|
committer | jahoti <jahoti@tilde.team> | 2021-09-04 00:00:00 +0000 |
commit | 591c48a6903bbf324361610f81c628302cae7049 (patch) | |
tree | 174fee77253b147603966d2e6c40c5ffbb5e3e5a /test/init.sh | |
parent | 6c69435cef6a9cf5fc6bedfcf853d8ab10dc99ec (diff) | |
download | browser-extension-591c48a6903bbf324361610f81c628302cae7049.tar.gz browser-extension-591c48a6903bbf324361610f81c628302cae7049.zip |
Make test suite mildly usable
Allow test/server.py to be run as a command and add some "webpages" for it.
Diffstat (limited to 'test/init.sh')
-rwxr-xr-x[-rw-r--r--] | test/init.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/init.sh b/test/init.sh index 915db76..c0e7647 100644..100755 --- a/test/init.sh +++ b/test/init.sh @@ -7,6 +7,10 @@ # Initialize the root certificate for the tests proxy server # Make sure this is run in the directory where they will be put! + +if [ -n "$1" ]; then + cd "$1" +fi openssl genrsa -out ca.key 2048 openssl genrsa -out cert.key 2048 openssl req -new -x509 -days 3650 -key ca.key -out ca.crt -subj "/CN=Hachette Test" |