Saturday, September 20, 2014

Running python rados tests in Ceph [feedly]



----
Running python rados tests in Ceph
// Ceph

When Ceph is built from sources, make check will not run the test_rados.py tests.
A minimal cluster is required and can be run from the src directory with:

CEPH_NUM_MON=1 CEPH_NUM_OSD=3 ./vstart.sh -d -n -X -l mon osd  

The test can then be run with

$ PYTHONPATH=pybind nosetests -v     test/pybind/test_rados.py  

and if only the TestIoctx.test_aio_read is of interest, it can be appended to the filename:

$ PYTHONPATH=pybind nosetests -v     test/pybind/test_rados.py:TestIoctx.test_aio_read  test_rados.TestIoctx.test_aio_read ... ok    -------------------------------  Ran 1 test in 4.227s    OK  

----

Shared via my feedly reader


Sent from my iPhone

No comments:

Post a Comment