Planet Ceph

Aggregated news from external sources

September 20, 2014

Running python rados tests in Ceph

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

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

The test can then be run with

$ PYTHONPATH=pybind nosetests -v

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

$ PYTHONPATH=pybind nosetests -v
test_rados.TestIoctx.test_aio_read ... ok

Ran 1 test in 4.227s