mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-23 08:16:54 +00:00
a5a6ba0d77
Instead of "realistic data", I chose the test data to be either all-zero (all-ascii-zero to be precise) or all-random and benchmark them separately. So we can better determine the cause (deduplication or storage) in case we see some performance regression. "help" is benchmarked to see the minimum runtime when it basically does nothing. also: - refactor archiver execution core functionality into exec_cmd() so it can be used more flexibly - tox: usually we want to skip benchmarks, only run them if requested manually - install pytest-benchmark - run tox with "-r" to have it installed into your .tox envs
16 lines
495 B
INI
16 lines
495 B
INI
# tox configuration - if you change anything here, run this to verify:
|
|
# fakeroot -u tox --recreate
|
|
|
|
[tox]
|
|
envlist = py{32,33,34,35}
|
|
|
|
[testenv]
|
|
# Change dir to avoid import problem for cython code. The directory does
|
|
# not really matter, should be just different from the toplevel dir.
|
|
changedir = {toxworkdir}
|
|
deps =
|
|
-rrequirements.d/development.txt
|
|
attic
|
|
commands = py.test --cov=borg --benchmark-skip --pyargs {posargs:borg.testsuite}
|
|
# fakeroot -u needs some env vars:
|
|
passenv = *
|