forked from rdiff-backup/rdiff-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox_root.ini
30 lines (27 loc) · 1.17 KB
/
tox_root.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
# Configuration file for tests as root.
# Call with `sudo tox -c tox_root.ini`
# Use tox_slow.ini for longer running tests and tox.ini for normal tests.
[tox]
envlist = py39, py310, py311, py312
# some directories to avoid creating files with root rights that
# couldn't be overwritten by the non-root tests:
toxworkdir = {toxinidir}/.tox.root
isolated_build_env = .package.root
[testenv]
# make sure those variables are passed down; you should define them
# either implicitly through usage of sudo (which defines the SUDO_* variables),
# or explicitly the RDIFF_* ones:
passenv = SUDO_USER, SUDO_UID, SUDO_GID, RDIFF_TEST_*, RDIFF_BACKUP_*
deps = -r{toxinidir}/requs/base.txt
-r{toxinidir}/requs/optional.txt
#whitelist_externals = env
commands_pre =
rdiff-backup info
# must be the first command to setup the test environment
python testing/commontest.py
commands =
python testing/generic_roottest.py --verbose --buffer