Welcome to mirror list, hosted at ThFree Co, Russian Federation.

system_cpu_switches.yaml « linux « zbxsysinfo « libs « tests - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e486911909efc6c2ffa9c54dbced95a61743c8ae (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
---
test case: missing /proc/stat file
out:
  expected_ret: "SYSINFO_RET_FAIL"
  error_msg: 'Cannot open /proc/stat: [2] No such file or directory'
---
test case: empty /proc/stat file
files:
  /proc/stat: |
out:
  expected_ret: "SYSINFO_RET_FAIL"
  error_msg: 'Cannot find a line with "ctxt" in /proc/stat.'
---
test case: ctxt-line not found in /proc/stat file
files:
  /proc/stat: |
    qwerty
    asdfgh
    zxcvbnmm
out:
  expected_ret: "SYSINFO_RET_FAIL"
  error_msg: 'Cannot find a line with "ctxt" in /proc/stat.'
---
test case: valid /proc/stat file
files:
  /proc/stat: |
    cpu  103024 62 21164 6114232 4661 0 792 0 0 0
    cpu0 12940 2 2976 764062 67 0 360 0 0 0
    cpu1 12563 10 2510 765565 138 0 134 0 0 0
    cpu2 12539 2 2470 765797 41 0 29 0 0 0
    cpu3 12108 1 2360 766303 28 0 8 0 0 0
    cpu4 12660 4 2493 765360 65 0 3 0 0 0
    cpu5 13209 4 2691 764629 79 0 2 0 0 0
    cpu6 13517 28 2627 763268 1208 0 29 0 0 0
    cpu7 13486 8 3035 759246 3033 0 224 0 0 0
    intr 3710386 41 2 0 0 0 0 0 0 1 4 0 0 361216 0 0 0 29 0 0 0 0 0 0 33 0 0 402768 64041 76290 422 42942 150 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    ctxt 16662913
    btime 1513235770
    processes 8156
    procs_running 1
    procs_blocked 0
    softirq 4086196 8 1303615 1474 409905 85093 0 9477 1305993 0 970631
out:
  expected_ret: "SYSINFO_RET_OK"
  ctxt: "16662913"
...