From dd9c8278379df9f41c5a40dc6bccd2901cf4db10 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 6 Sep 2016 14:55:27 -0400 Subject: [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 --- tox.ini | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tox.ini') 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 -- cgit v1.2.3