tests: cram: fix usage test
[project/ubus.git] / tests / cram / test_ubus.t
1 set environment for convenience:
2
3 $ [ -n "$TEST_BIN_DIR" ] && export PATH="$TEST_BIN_DIR:$PATH"
4 $ alias ubus='valgrind --quiet --leak-check=full ubus'
5
6 check usage:
7
8 $ ubus
9 Usage: ubus [<options>] <command> [arguments...]
10 Options:
11 -s <socket>:\t\tSet the unix domain socket to connect to (esc)
12 -t <timeout>:\t\tSet the timeout (in seconds) for a command to complete (esc)
13 -S:\t\t\tUse simplified output (for scripts) (esc)
14 -v:\t\t\tMore verbose output (esc)
15 -m <type>:\t\t(for monitor): include a specific message type (esc)
16 \t\t\t(can be used more than once) (esc)
17 -M <r|t>\t\t(for monitor): only capture received or transmitted traffic (esc)
18
19 Commands:
20 - list [<path>]\t\t\tList objects (esc)
21 - call <path> <method> [<message>]\tCall an object method (esc)
22 - subscribe <path> [<path>...]\tSubscribe to object(s) notifications (esc)
23 - listen [<path>...]\t\t\tListen for events (esc)
24 - send <type> [<message>]\t\tSend an event (esc)
25 - wait_for <object> [<object>...]\tWait for multiple objects to appear on ubus (esc)
26 - monitor\t\t\t\tMonitor ubus traffic (esc)
27
28 [1]
29
30 $ ubus-san
31 Usage: ubus-san [<options>] <command> [arguments...]
32 Options:
33 -s <socket>:\t\tSet the unix domain socket to connect to (esc)
34 -t <timeout>:\t\tSet the timeout (in seconds) for a command to complete (esc)
35 -S:\t\t\tUse simplified output (for scripts) (esc)
36 -v:\t\t\tMore verbose output (esc)
37 -m <type>:\t\t(for monitor): include a specific message type (esc)
38 \t\t\t(can be used more than once) (esc)
39 -M <r|t>\t\t(for monitor): only capture received or transmitted traffic (esc)
40
41 Commands:
42 - list [<path>]\t\t\tList objects (esc)
43 - call <path> <method> [<message>]\tCall an object method (esc)
44 - subscribe <path> [<path>...]\tSubscribe to object(s) notifications (esc)
45 - listen [<path>...]\t\t\tListen for events (esc)
46 - send <type> [<message>]\t\tSend an event (esc)
47 - wait_for <object> [<object>...]\tWait for multiple objects to appear on ubus (esc)
48 - monitor\t\t\t\tMonitor ubus traffic (esc)
49
50 [1]
51
52 check monitor command:
53
54 $ ubus monitor
55 Failed to connect to ubus
56 [255]
57
58 $ ubus-san monitor
59 Failed to connect to ubus
60 [255]