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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
{
"Tests": {
"KernelVersion": {
"Command": "uname -a",
"Weight": 10
},
"SystemctlFailed": {
"Command": "systemctl --state=failed | cat",
"Weight": 200
},
"SystemctlActivating": {
"Command": "systemctl --state=activating | cat",
"Weight": 200
},
"JournalErrAll": {
"Command": "journalctl -p err | cat"
},
"JournalErrSanitized": {
"Command": "journalctl -p err | grep -v \"Logs begin.* end at\" | uniq -c -f 3"
},
"JournalErrComparable": {
"Command": "journalctl -p err | grep -v \"Logs begin.* end at\" | cut -d' ' -f 4- | sort -u",
"Weight": 100
},
"OwnerSession": {
"Command": "su -c 'DBUS_SESSION_BUS_ADDRESS=\"unix:abstract=/run/user/$UID/dbus/user_bus_socket\" && XDG_RUNTIME_DIR=\"/run/user/$UID\" && systemctl --user --state=failed,activating' - owner | cat",
"Weight": 10
},
"EnlightenmentInfo": {
"Command": "enlightenment_info -topvwins"
},
"CrashWorker": {
"Command": "find /opt/usr/share/crash -maxdepth 2"
},
"CrashWorkerComparable": {
"Command": "find /opt/usr/share/crash/dump -maxdepth 1 | cut -d'_' -f 1 | sort -u"
},
"InstallScreenshooterRPM": {
"Command": "rpm -i /tmp/screenshooter.rpm",
"InputFiles": [
"/opt/screenshooter.rpm"
]
},
"CaptureScreenshot": {
"Command": "XDG_RUNTIME_DIR=/run screenshooter -f /tmp/screenshot.png",
"OutputFiles": [
"screenshot.png"
]
},
"RemountRW": {
"Command": "mount -o rw,remount /"
},
"RemountRO": {
"Command": "mount -o ro,remount /"
},
"DmesgKernel": {
"Command": "dmesg -f kern"
},
"DmesgDaemon": {
"Command": "dmesg -f daemon"
},
"TopProcesses": {
"Command": "ps -eo cputime,rss,vsz,pmem,command --sort -cputime | head -n 10"
},
"TopProcessesComaprable": {
"Command": "ps -eo cputime,rss,vsz,pmem,command --sort -cputime | head -n 6 | grep '/' | cut -d'/' -f 2-",
"Weight": 50
}
},
"Scenarios": {
"Main": {
"TestScenarioNames": [
"HumanReadable",
"Comparable",
"InstallScreenshooter",
"CaptureScreenshot"
]
},
"InstallScreenshooter": {
"TestScenarioNames": [
"RemountRW",
"InstallScreenshooterRPM",
"RemountRO"
]
},
"HumanReadable": {
"TestScenarioNames": [
"EnlightenmentInfo",
"DmesgKernel",
"DmesgDaemon",
"JournalErrAll",
"JournalErrSanitized",
"CrashWorker",
"TopProcesses"
]
},
"Comparable": {
"TestScenarioNames": [
"KernelVersion",
"SystemctlFailed",
"SystemctlActivating",
"OwnerSession",
"JournalErrComparable",
"CrashWorkerComparable",
"TopProcessesComaprable"
]
}
}
}
|