diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 29 |
1 files changed, 27 insertions, 2 deletions
@@ -51,12 +51,14 @@ How to install gdeploy: To install glusto-tests dependencies: -------------------------------------------------- -- `python-docx` needs to be installed when we run IO's and validates on client node. +- `python-docx`, `sh` and `numpy` has to be installed to run IO and validate it on client node. - To install run : # curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" # python get-pip.py # pip install --pre python-docx + # pip install numpy + # pip install sh - `arequal` needs to be installed on all servers and clients. - To install download the below repo into /etc/yum.repos.d/ @@ -71,6 +73,13 @@ Pre-requisites to run glusto-tests: - Gluster client packages should be installed on Clients - Setup passwordless ssh from the glusto-tests management node to all. - Install glusto-tests dependencies on servers and clients. +- Crefi should be installed on all the clients. + + ``` + $ pip install crefi + $ pip install pyxattr + ``` + - Setup bricks on all servers: - To create bricks refer to [doc](https://gluster.readthedocs.io/en/latest/Administrator%20Guide/formatting-and-mounting-bricks/) **OR** Run gdeploy as shown below. 1. Edit the `gdeploy_sample_config.conf` present in `examples` as shown below and also configure passwordless ssh to all servers: @@ -97,7 +106,7 @@ Pre-requisites to run glusto-tests: ``` gdeploy -c gdeploy_sample_config.conf ``` -Note: +**Note:** - To run cifs protocol: 1.CIFS packages need to be installed on the server @@ -127,6 +136,19 @@ The most common used is Pytest. For more info about running tests on PyUnit, Pytest and Nose Tests, refer the [docs](http://glusto.readthedocs.io/en/latest/userguide/glusto.html#options-for-running-unit-tests). +glusto-tests can also be executed using `tox`: + + # tox -e functional -- glusto -c 'config.yml' --pytest='-v -s -k test_demo1' + +glusto-tests can also be executed with python3 using `tox`: + + # tox -e functional3 -- glusto -c 'config.yml' --pytest='-v -s -k test_demo1' + +**NOTE:** +- Please note that glusto-tests is not completely compatible with python3. +- You would not need to install the glusto or glusto-tests libraries while running it + using `tox`. For more info about tox refer the [docs](https://tox.readthedocs.io/en/latest/#). + Writing tests in glusto-tests: ---------------------------------- - `tests` directory in glusto-tests contain testcases. Testcases are written as component wise. @@ -204,3 +226,6 @@ Default log location is: `/tmp/glustomain.log` Note: When using `glusto` via the Python Interactive Interpreter, the default log location is `/tmp/glusto.log`. +License +------- +[GPLv3](https://github.com/gluster/glusto-tests/blob/master/LICENSE) |