summaryrefslogtreecommitdiff
path: root/tests/cram/test_ubus.t
blob: e4ba87fd14a6b93f981f4a2a979cd00e8cd500c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
set environment for convenience:

  $ [ -n "$TEST_BIN_DIR" ] && export PATH="$TEST_BIN_DIR:$PATH"
  $ alias ubus='valgrind --quiet --leak-check=full ubus'

check usage:

  $ ubus
  Usage: ubus [<options>] <command> [arguments...]
  Options:
   -s <socket>:\t\tSet the unix domain socket to connect to (esc)
   -t <timeout>:\t\tSet the timeout (in seconds) for a command to complete (esc)
   -S:\t\t\tUse simplified output (for scripts) (esc)
   -v:\t\t\tMore verbose output (esc)
   -m <type>:\t\t(for monitor): include a specific message type (esc)
  \t\t\t(can be used more than once) (esc)
   -M <r|t>\t\t(for monitor): only capture received or transmitted traffic (esc)
  
  Commands:
   - list [<path>]\t\t\tList objects (esc)
   - call <path> <method> [<message>]\tCall an object method (esc)
   - listen [<path>...]\t\t\tListen for events (esc)
   - send <type> [<message>]\t\tSend an event (esc)
   - wait_for <object> [<object>...]\tWait for multiple objects to appear on ubus (esc)
   - monitor\t\t\t\tMonitor ubus traffic (esc)
  
  [1]

  $ ubus-san
  Usage: ubus-san [<options>] <command> [arguments...]
  Options:
   -s <socket>:\t\tSet the unix domain socket to connect to (esc)
   -t <timeout>:\t\tSet the timeout (in seconds) for a command to complete (esc)
   -S:\t\t\tUse simplified output (for scripts) (esc)
   -v:\t\t\tMore verbose output (esc)
   -m <type>:\t\t(for monitor): include a specific message type (esc)
  \t\t\t(can be used more than once) (esc)
   -M <r|t>\t\t(for monitor): only capture received or transmitted traffic (esc)
  
  Commands:
   - list [<path>]\t\t\tList objects (esc)
   - call <path> <method> [<message>]\tCall an object method (esc)
   - listen [<path>...]\t\t\tListen for events (esc)
   - send <type> [<message>]\t\tSend an event (esc)
   - wait_for <object> [<object>...]\tWait for multiple objects to appear on ubus (esc)
   - monitor\t\t\t\tMonitor ubus traffic (esc)
  
  [1]

check monitor command:

  $ ubus monitor
  Failed to connect to ubus
  [255]

  $ ubus-san monitor
  Failed to connect to ubus
  [255]