2016-10-17 16:11:24 -04:00
|
|
|
#!/bin/sh -xe
|
2019-05-31 21:09:17 -04:00
|
|
|
#
|
|
|
|
|
# This script is useful for testing that the packages we've built for a release
|
|
|
|
|
# work on a variety of systems. For an example of the kinds of problems that
|
|
|
|
|
# can occur, see https://github.com/certbot/certbot/issues/3455.
|
2016-10-17 16:11:24 -04:00
|
|
|
|
2019-02-14 18:26:44 -05:00
|
|
|
REPO_ROOT="letsencrypt"
|
|
|
|
|
LE_AUTO="$REPO_ROOT/letsencrypt-auto-source/letsencrypt-auto"
|
2018-01-25 01:38:36 -05:00
|
|
|
LE_AUTO="$LE_AUTO --debug --no-self-upgrade --non-interactive"
|
2016-10-17 16:11:24 -04:00
|
|
|
MODULES="acme certbot certbot_apache certbot_nginx"
|
2019-02-14 18:26:44 -05:00
|
|
|
PIP_INSTALL="$REPO_ROOT/tools/pip_install.py"
|
2016-10-17 16:11:24 -04:00
|
|
|
VENV_NAME=venv
|
|
|
|
|
|
|
|
|
|
# *-auto respects VENV_PATH
|
2018-01-25 01:38:36 -05:00
|
|
|
$LE_AUTO --os-packages-only
|
|
|
|
|
LE_AUTO_SUDO="" VENV_PATH="$VENV_NAME" $LE_AUTO --no-bootstrap --version
|
2016-10-17 16:11:24 -04:00
|
|
|
. $VENV_NAME/bin/activate
|
2019-02-14 18:26:44 -05:00
|
|
|
"$PIP_INSTALL" pytest
|
2016-10-17 16:11:24 -04:00
|
|
|
|
|
|
|
|
# change to an empty directory to ensure CWD doesn't affect tests
|
|
|
|
|
cd $(mktemp -d)
|
|
|
|
|
|
|
|
|
|
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
|