For more information on the background of the tests visit: https://www.spinics.net/lists/ceph-devel/msg34636.html
-The tests use the pytest test framework. To get started, ensure you have
-the ``virtualenv`` software installed; e.g. on Debian/Ubuntu::
+The tests use the Tox tool. To get started, ensure you have
+the ``tox`` software installed; e.g. on Debian/Ubuntu::
- sudo apt-get install python-virtualenv
+ sudo apt install tox
on Fedora/RHEL::
- sudo yum install python3-virtualenv
-
-and then run::
-
- ./bootstrap
+ sudo yum install tox
You will need to create a configuration file with the location of the
service and two different credentials. A sample configuration file named
Once you have that file copied and edited, you can run the tests with::
- RAGWEED_CONF=ragweed.conf RAGWEED_STAGES=prepare,check ./virtualenv/bin/pytest -v
+ RAGWEED_CONF=ragweed.conf RAGWEED_STAGES=prepare,check tox -- -v
The phase(s) of the tests are set via ``RAGWEED_STAGES``. The options for ``RAGWEED_STAGES`` are ``prepare`` and ``check``. ``test`` can be used instead of ``check``.
Finally run the ragweed tests::
- RAGWEED_CONF=ragweed.conf RAGWEED_STAGES=prepare,check ./virtualenv/bin/pytest -v
+ RAGWEED_CONF=ragweed.conf RAGWEED_STAGES=prepare,check tox -- -v
--- /dev/null
+[tox]
+envlist = py
+
+[testenv]
+deps = -rrequirements.txt
+passenv = PYTHONPATH RAGWEED_CONF RAGWEED_STAGES
+commands = python -m pytest {posargs}