summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-09-06 14:55:27 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-06 14:55:27 -0400
commitdd9c8278379df9f41c5a40dc6bccd2901cf4db10 (patch)
tree87175df9156a493f74ca3ad68829246af5ebb9e2 /tox.ini
parent1f6f24540bae5b21cabb69b4f50cca7cddb8f784 (diff)
[test] add speed tests for gpg/wrapper init/enc/dec
this is a port of commit 2d9bec78f in the legacy keymanager repo. Additionally, I'm here separating benchmarking tests from the main tox run. In my machine several of these benchmarking tests seem to be broken, due to issue https://github.com/isislovecruft/python-gnupg/issues/157
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini16
1 files changed, 16 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index dda0a34..33fa20f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -34,3 +34,19 @@ deps =
-e../soledad/common
-e../soledad/client
-e.
+
+[testenv:py27-bench]
+commands = py.test {posargs}
+changedir = bench
+deps =
+ gnupg
+ pytest
+ pytest-benchmark
+ # need the next 2 for graphs, but new version changed api a bit and is
+ # incompatible with pytest-benchmark, so we pin version <2.1
+ # (https://github.com/ionelmc/pytest-benchmark/issues/50).
+ pygal<2.1
+ pygaljs
+setenv =
+ HOME=/tmp
+ TERM=xterm