Skip to content

Commit

Permalink
Merge pull request #44095 from Matan-B/wip-matanb-local-workunits
Browse files Browse the repository at this point in the history
doc/dev: Running workunits locally

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
  • Loading branch information
neha-ojha committed Dec 7, 2021
2 parents 365bfd1 + 7324abb commit 3304a82
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
21 changes: 21 additions & 0 deletions doc/dev/developer_guide/running-tests-locally.rst
Expand Up @@ -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
Expand Down
7 changes: 2 additions & 5 deletions src/vstart.sh
Expand Up @@ -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"
Expand Down

0 comments on commit 3304a82

Please sign in to comment.