2016-10-17 16:11:24 -04:00
|
|
|
#!/bin/sh -xe
|
|
|
|
|
|
|
|
|
|
MODULES="acme certbot certbot_apache certbot_nginx"
|
|
|
|
|
VENV_NAME=venv
|
|
|
|
|
|
|
|
|
|
# *-auto respects VENV_PATH
|
2017-09-07 20:54:40 -04:00
|
|
|
letsencrypt/certbot-auto --debug --os-packages-only --non-interactive
|
|
|
|
|
LE_AUTO_SUDO="" VENV_PATH=$VENV_NAME letsencrypt/certbot-auto --debug --no-bootstrap --non-interactive --version
|
2016-10-17 16:11:24 -04:00
|
|
|
. $VENV_NAME/bin/activate
|
|
|
|
|
|
|
|
|
|
# change to an empty directory to ensure CWD doesn't affect tests
|
|
|
|
|
cd $(mktemp -d)
|
2017-12-01 13:59:55 -05:00
|
|
|
pip install pytest==3.2.5
|
2016-10-17 16:11:24 -04:00
|
|
|
|
|
|
|
|
for module in $MODULES ; do
|
|
|
|
|
echo testing $module
|
2017-12-01 13:59:55 -05:00
|
|
|
pytest -v --pyargs $module
|
2016-10-17 16:11:24 -04:00
|
|
|
done
|