]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/cli/ceph-conf/option.t
add subtree-ish sources for 12.0.3
[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 global
26 nobar
27 thud
28
29 $ ceph-conf --conf=test.conf --list-all-sections
30 bar
31 baz
32 foo
33 global
34 nobar
35 thud
36
37 $ ceph-conf --conf=test.conf --list_all_sections
38 bar
39 baz
40 foo
41 global
42 nobar
43 thud
44
45 # TODO man page stops in the middle of a sentence
46
47 $ ceph-conf -c test.conf bar -s xyzzy
48 [1]
49
50 $ ceph-conf -c test.conf bar -s xyzzy
51 [1]
52
53 $ ceph-conf -c test.conf bar -s xyzzy -s thud
54 red
55
56 $ ceph-conf -c test.conf bar -s nobar -s thud
57 red
58
59 $ ceph-conf -c test.conf bar -s thud -s baz
60 red
61
62 $ ceph-conf -c test.conf bar -s baz -s thud
63 yellow
64
65 $ ceph-conf -c test.conf bar -s xyzzy -s nobar -s thud -s baz
66 red
67