]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/run-standalone.sh: helper to run all standalone tests
authorSage Weil <sage@redhat.com>
Mon, 24 Jul 2017 21:45:22 +0000 (17:45 -0400)
committerSage Weil <sage@redhat.com>
Tue, 25 Jul 2017 02:11:50 +0000 (22:11 -0400)
Nothing fancy, but documents how these are run.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/run-standalone.sh [new file with mode: 0755]

diff --git a/qa/run-standalone.sh b/qa/run-standalone.sh
new file mode 100755 (executable)
index 0000000..6b944f2
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh -ex
+
+if [ ! -e Makefile ]; then
+    echo 'run this from the build dir'
+    exit 1
+fi
+
+for f in `find ../qa//standalone -executable -type f`
+do
+    echo '--- $f ---'
+    PATH=$PATH:bin \
+       CEPH_ROOT=.. \
+       CEPH_LIB=lib \
+       $f || exit 1
+done
+
+exit 0