certbot/tests/letstest/scripts/test_tests.sh

19 lines
519 B
Bash
Raw Permalink Normal View History

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
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)
pip install pytest==3.2.5
2016-10-17 16:11:24 -04:00
for module in $MODULES ; do
echo testing $module
pytest -v --pyargs $module
2016-10-17 16:11:24 -04:00
done