]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/cli/ceph-conf/option.t
import 15.2.0 Octopus source
[ceph.git] / ceph / src / test / cli / ceph-conf / option.t
1 $ cat >test.conf <<EOF
2 > [bar]
3 > bar = green
4 > [foo]
5 > bar = blue
6 > [baz]
7 > bar = yellow
8 > [thud]
9 > bar = red
10 > [nobar]
11 > other = 42
12 > EOF
13
14 $ ceph-conf -c test.conf bar -s foo
15 blue
16
17 # test the funny "equals sign" argument passing convention
18 $ ceph-conf --conf=test.conf bar -s foo
19 blue
20
21 $ ceph-conf --conf=test.conf -L
22 bar
23 baz
24 foo
25 nobar
26 thud
27
28 $ ceph-conf --conf=test.conf --list-all-sections
29 bar
30 baz
31 foo
32 nobar
33 thud
34
35 $ ceph-conf --conf=test.conf --list_all_sections
36 bar
37 baz
38 foo
39 nobar
40 thud
41
42 # TODO man page stops in the middle of a sentence
43
44 $ ceph-conf -c test.conf bar -s xyzzy
45 [1]
46
47 $ ceph-conf -c test.conf bar -s xyzzy
48 [1]
49
50 $ ceph-conf -c test.conf bar -s xyzzy -s thud
51 red
52
53 $ ceph-conf -c test.conf bar -s nobar -s thud
54 red
55
56 $ ceph-conf -c test.conf bar -s thud -s baz
57 red
58
59 $ ceph-conf -c test.conf bar -s baz -s thud
60 yellow
61
62 $ ceph-conf -c test.conf bar -s xyzzy -s nobar -s thud -s baz
63 red
64