]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: vstart wrapper helper for unittests
authorLoic Dachary <loic@dachary.org>
Mon, 16 Dec 2013 16:13:27 +0000 (17:13 +0100)
committerLoic Dachary <loic@dachary.org>
Tue, 17 Dec 2013 16:46:23 +0000 (17:46 +0100)
commitc1eb55c6b0343a2a9655e337be52be20e9414ff9
tree292926f239d9f8d9b18d1de49cbc07c5685c8448
parentd93881f3c8ab634da782894d5dfc1755569e8cf2
qa: vstart wrapper helper for unittests

Primarily useful to run scripts from qa/workunits as part of make check.

vstart_wrapper.sh starts a vstart.sh cluster, runs the command given in
argument and tearsdown cluster when it completes.

The vstart_wrapped_tests.sh script contains the list of scripts that
need the vstart_wrapper.sh to run. It would not be necessary if automake
allowed passing argument to tests scripts. It also adds markers to the
output to facilitate searching the output because it can be very verbose.

This wrapper is kept simple and will probably evolve into something more
sophisticated depending on the scripts being added to
vstart_wrapper_tests.sh. There are numerous options, ranging from
parsing the yaml from ceph-qa-suite to figure out the configuration
cluster to converting the same yaml into a puppet manifest that is
applied locally or even driving OpenStack instances to avoid messing
with the local machine. But this would probably be overkill at this
point.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/Makefile.am
src/test/vstart_wrapped_tests.sh [new file with mode: 0755]
src/test/vstart_wrapper.sh [new file with mode: 0755]