summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini16
1 files changed, 10 insertions, 6 deletions
diff --git a/tox.ini b/tox.ini
index 3fa4ed54..46aed54b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,7 @@ skipsdist = True
[testenv]
basepython = python2.7
-commands =
+commands = {env:CHECK_SQLCIPHER}
py.test -x \
--cov-report=html \
--cov-report=term \
@@ -37,6 +37,7 @@ setenv =
HOME=/tmp
TERM=xterm
XDG_CACHE_HOME=./.cache/
+ CHECK_SQLCIPHER={toxinidir}/scripts/testing/ensure-pysqlcipher-has-usleep.sh
install_command = pip install {opts} {packages}
[testenv:py34]
@@ -84,24 +85,27 @@ commands =
[testenv:benchmark-time-cpu]
usedevelop = True
deps = {[testenv]deps}
-commands = py.test --subdir=benchmarks {posargs}
+commands = {env:CHECK_SQLCIPHER}
+ py.test --subdir=benchmarks {posargs}
passenv = HOST_HOSTNAME
[testenv:benchmark-memory]
usedevelop = True
deps = {[testenv]deps}
-commands = py.test --subdir=benchmarks --watch-memory {posargs}
+commands = {env:CHECK_SQLCIPHER}
+ py.test --subdir=benchmarks --watch-memory {posargs}
passenv = HOST_HOSTNAME
[testenv:responsiveness]
usedevelop = True
deps = {[testenv]deps}
-commands = py.test --subdir=responsiveness {posargs}
+commands = {env:CHECK_SQLCIPHER}
+ py.test --subdir=responsiveness {posargs}
passenv = HOST_HOSTNAME
[testenv:parallel]
deps =
{[testenv]deps}
pytest-xdist
-install_command = pip install {opts} {packages}
-commands = py.test {posargs} -n 4
+commands = {env:CHECK_SQLCIPHER}
+ py.test {posargs} -n 4