]>
git.proxmox.com Git - ceph.git/blob - ceph/qa/standalone/mon/mon-scrub.sh
3 # Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
4 # Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
6 # Author: Loic Dachary <loic@dachary.org>
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU Library Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU Library Public License for more details.
18 source $CEPH_ROOT/qa
/standalone
/ceph-helpers.sh
24 export CEPH_MON
="127.0.0.1:7120" # git grep '\<7120\>' : there must be only one
26 CEPH_ARGS
+="--fsid=$(uuidgen) --auth-supported=none "
27 CEPH_ARGS
+="--mon-host=$CEPH_MON "
29 local funcs
=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
30 for func
in $funcs ; do
31 setup
$dir ||
return 1
32 $func $dir ||
return 1
33 teardown
$dir ||
return 1
37 function TEST_mon_scrub
() {
40 run_mon
$dir a ||
return 1
42 ceph mon scrub ||
return 1
48 # compile-command: "cd ../.. ; make -j4 && test/mon/mon-scrub.sh"