diff --git a/doc/dev/developer_guide/running-tests-locally.rst b/doc/dev/developer_guide/running-tests-locally.rst index b786c12e8345a..71cbdec7d237b 100644 --- a/doc/dev/developer_guide/running-tests-locally.rst +++ b/doc/dev/developer_guide/running-tests-locally.rst @@ -132,6 +132,27 @@ vstart_runner.py primarily does three things - and without admin socket and ``LocalCephCluster`` provides methods to set or clear ``ceph.conf``. +Running Workunits Using vstart_enviroment.sh +-------------------------------------------- + +Code can be tested by building Ceph locally from source, starting a vstart +cluster, and running any suite against it. +Similar to S3-Tests, other workunits can be run against by configuring your enviroment. + +Set up the enviroment +^^^^^^^^^^^^^^^^^^^^^ + +Configure your enviroment:: + + $ . ./build/vstart_enviroment.sh + +Running a test +^^^^^^^^^^^^^^ + +To run a workunit (e.g ``mon/osd.sh``) do the following:: + + $ ./qa/workunits/mon/osd.sh + .. _test_reconnect_timeout: https://github.com/ceph/ceph/blob/master/qa/tasks/cephfs/test_client_recovery.py#L133 .. _TestClientRecovery: https://github.com/ceph/ceph/blob/master/qa/tasks/cephfs/test_client_recovery.py#L86 .. _teuthology: https://github.com/ceph/teuthology diff --git a/src/vstart.sh b/src/vstart.sh index c6ff55e7d33b8..c174c76a71d92 100755 --- a/src/vstart.sh +++ b/src/vstart.sh @@ -1747,11 +1747,8 @@ echo "" echo "export PYTHONPATH=$PYBIND:$CYTHON_PYTHONPATH:$CEPH_PYTHON_COMMON\$PYTHONPATH" echo "export LD_LIBRARY_PATH=$CEPH_LIB:\$LD_LIBRARY_PATH" echo "export PATH=$CEPH_DIR/bin:\$PATH" - - if [ "$CEPH_DIR" != "$PWD" ]; then - echo "export CEPH_CONF=$conf_fn" - echo "export CEPH_KEYRING=$keyring_fn" - fi + echo "export CEPH_CONF=$conf_fn" + echo "export CEPH_KEYRING=$keyring_fn" if [ -n "$CEPHFS_SHELL" ]; then echo "alias cephfs-shell=$CEPHFS_SHELL"