From 59f26ac7aba6285cf7263495a00a97b960d49447 Mon Sep 17 00:00:00 2001 From: Graham Dumpleton Date: Thu, 22 Aug 2013 10:51:46 +1000 Subject: [PATCH] Test script to run unit tests under tox with and without extensions. --- tests/run.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 tests/run.sh diff --git a/tests/run.sh b/tests/run.sh new file mode 100755 index 0000000..6b51948 --- /dev/null +++ b/tests/run.sh @@ -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