]>
git.proxmox.com Git - ceph.git/blob - ceph/qa/standalone/mon/mon-ping.sh
3 # Copyright (C) 2015 SUSE LINUX GmbH
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU Library Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Library Public License for more details.
15 source $CEPH_ROOT/qa
/standalone
/ceph-helpers.sh
21 export CEPH_MON
="127.0.0.1:7119" # git grep '\<7119\>' : there must be only one
23 CEPH_ARGS
+="--fsid=$(uuidgen) --auth-supported=none "
24 CEPH_ARGS
+="--mon-host=$CEPH_MON "
26 local funcs
=${@:-$(set | sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p')}
27 for func
in $funcs ; do
28 setup
$dir ||
return 1
29 $func $dir ||
return 1
30 teardown
$dir ||
return 1
34 function TEST_mon_ping
() {
37 run_mon
$dir a ||
return 1
39 ceph
ping mon.a ||
return 1
45 # compile-command: "cd ../.. ; make -j4 && test/mon/mon-ping.sh"