Add test_tests.sh (#3633)

This commit is contained in:
Brad Warren
2016-10-17 13:11:24 -07:00
committed by Peter Eckersley
parent 82ac89b850
commit 91deb6ec53
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh -xe
MODULES="acme certbot certbot_apache certbot_nginx"
VENV_NAME=venv
# *-auto respects VENV_PATH
VENV_PATH=$VENV_NAME letsencrypt/certbot-auto --debug --non-interactive --version
. $VENV_NAME/bin/activate
# change to an empty directory to ensure CWD doesn't affect tests
cd $(mktemp -d)
pip install nose
for module in $MODULES ; do
echo testing $module
nosetests -v $module
done