Test script to run unit tests under tox with and without extensions.

This commit is contained in:
Graham Dumpleton
2013-08-22 10:51:46 +10:00
parent 7a16f2115a
commit 59f26ac7ab

35
tests/run.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/sh
echo
echo "INFO: TOX CONFIGURATION"
echo
tox --showconfig
echo
echo "INFO: EXTENSIONS DISABLED"
echo
WRAPT_EXTENSIONS=false tox
STATUS=$?
if test "$STATUS" != "0"
then
echo
echo "`basename $0` (extensions disabled): *** Error $STATUS"
exit 1
fi
echo
echo "INFO: EXTENSIONS ENABLED"
echo
WRAPT_EXTENSIONS=true tox
STATUS=$?
if test "$STATUS" != "0"
then
echo
echo "`basename $0` (extensions enabled): *** Error $STATUS"
exit 1
fi