# GNU Library Public License for more details.
#
-source test/mon/mon-test-helpers.sh
+source test/ceph-helpers.sh
source test/osd/osd-test-helpers.sh
function run() {
local dir=$1
+ shift
export CEPH_MON="127.0.0.1:7106"
export CEPH_ARGS
CEPH_ARGS+="--fsid=$(uuidgen) --auth-supported=none "
CEPH_ARGS+="--mon-host=$CEPH_MON "
- local id=a
- call_TEST_functions $dir $id || return 1
+ local funcs=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
+ for func in $funcs ; do
+ $func $dir || return 1
+ done
}
function TEST_bench() {
local dir=$1
- run_mon $dir a --public-addr $CEPH_MON \
- || return 1
+ run_mon $dir a || return 1
run_osd $dir 0 || return 1
local osd_bench_small_size_max_iops=$(CEPH_ARGS='' ./ceph-conf \
./ceph tell osd.0 bench || return 1
}
-main osd-bench
+main osd-bench "$@"
# Local Variables:
# compile-command: "cd ../.. ; make -j4 && test/osd/osd-bench.sh"