]> git.apps.os.sepia.ceph.com Git - ragweed.git/commitdiff
add tox.ini and update README
authorCasey Bodley <cbodley@redhat.com>
Tue, 31 Jan 2023 17:31:45 +0000 (12:31 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 17 Feb 2023 00:49:48 +0000 (19:49 -0500)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
README.rst
tox.ini [new file with mode: 0644]

index 5cb65452684e1ed6d319f392ee45cdc789eac83f..04a867f541436dfbaacef28dbd050f3d71920dd8 100644 (file)
@@ -14,18 +14,14 @@ Each of these phases can be executed separately.
 
 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
@@ -33,7 +29,7 @@ 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``.
 
@@ -63,4 +59,4 @@ OR::
 
 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
diff --git a/tox.ini b/tox.ini
new file mode 100644 (file)
index 0000000..6f9982a
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,7 @@
+[tox]
+envlist = py
+
+[testenv]
+deps = -rrequirements.txt
+passenv = PYTHONPATH RAGWEED_CONF RAGWEED_STAGES
+commands = python -m pytest {posargs}