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>
#
set +x
-TESTS=(
+MON_TESTS=(
mon_injectargs
mon_injectargs_SI
tiering
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
#
"--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