]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: group workunits/cephtool/test.sh tests per daemon
authorLoic Dachary <loic-201408@dachary.org>
Sat, 18 Oct 2014 22:51:41 +0000 (15:51 -0700)
committerLoic Dachary <ldachary@redhat.com>
Sun, 9 Nov 2014 10:59:51 +0000 (11:59 +0100)
So all tests related to a given daemon (mon, osd, mds) can be run at
once.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
qa/workunits/cephtool/test.sh

index 88ed3b19d2d8b606415afe3439917293faf47622..1308c279c5d9f4a9a6186e4eeb8ca9c13ed2ddb4 100755 (executable)
@@ -1291,7 +1291,7 @@ function test_osd_bench()
 #
 
 set +x
-TESTS=(
+MON_TESTS=(
   mon_injectargs
   mon_injectargs_SI
   tiering
@@ -1308,11 +1308,23 @@ TESTS=(
   mon_osd_erasure_code
   mon_osd_misc
   mon_heap_profiler
+)
+
+OSD_TESTS=(
   osd_bench
+)
+
+MDS_TESTS=(
   mds_tell
   mon_mds
 )
 
+TESTS=(
+  $MON_TESTS
+  $OSD_TESTS
+  $MDS_TESTS
+)
+
 #
 # "main" follows
 #
@@ -1347,6 +1359,15 @@ while [[ $# -gt 0 ]]; do
     "--no-sanity-check" )
       sanity_check=false
       ;;
+    "--test-mon" )
+      tests_to_run=("${tests_to_run[@]}" $MON_TESTS)
+      ;;
+    "--test-osd" )
+      tests_to_run=("${tests_to_run[@]}" $OSD_TESTS)
+      ;;
+    "--test-mds" )
+      tests_to_run=("${tests_to_run[@]}" $MDS_TESTS)
+      ;;
     "-t" )
       shift
       if [[ -z "$1" ]]; then