2cf954a5b3eb4070943011cfbc8cb83df62eb9ea
[csit.git] / resources / libraries / robot / performance / performance_actions.robot
1 # Copyright (c) 2020 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 *** Settings ***
15 | Variables | resources/libraries/python/Constants.py
16 | Resource | resources/libraries/robot/performance/performance_utils.robot
17 |
18 | Documentation
19 | ... | Performance suite keywords - Actions related to performance tests.
20
21 *** Keywords ***
22 | Additional Statistics Action For bash-perf-stat
23 | | [Documentation]
24 | | ... | Additional Statistics Action for bash command "perf stat".
25 | |
26 | | Run Keyword If | ${extended_debug}==${True}
27 | | ... | Perf Stat On All DUTs | ${nodes} | cpu_list=${cpu_alloc_str}
28
29 | Additional Statistics Action For clear-show-runtime-with-traffic
30 | | [Documentation]
31 | | ... | Additional Statistics Action for clear and show runtime counters with
32 | | ... | running traffic.
33 | |
34 | | ... | See documentation of the called keyword for required test variables.
35 | |
36 | | Clear and show runtime counters with running traffic
37
38 | Additional Statistics Action For noop
39 | | [Documentation]
40 | | ... | Additional Statistics Action for no operation.
41 | |
42 | | No operation
43
44 | Additional Statistics Action For vpp-clear-runtime
45 | | [Documentation]
46 | | ... | Additional Statistics Action for clear VPP runtime.
47 | |
48 | | VPP Clear Runtime On All DUTs | ${nodes}
49
50 | Additional Statistics Action For vpp-clear-stats
51 | | [Documentation]
52 | | ... | Additional Statistics Action for clear VPP statistics.
53 | |
54 | | Clear Statistics On All DUTs | ${nodes}
55
56 | Additional Statistics Action For vpp-enable-elog
57 | | [Documentation]
58 | | ... | Additional Statistics Action for enable VPP elog trace.
59 | |
60 | | VPP Enable Elog Traces On All DUTs | ${nodes}
61
62 | Additional Statistics Action For vpp-enable-packettrace
63 | | [Documentation]
64 | | ... | Additional Statistics Action for enable VPP packet trace.
65 | |
66 | | Run Keyword If | ${extended_debug}==${True}
67 | | ... | VPP Enable Traces On All DUTs | ${nodes} | fail_on_error=${False}
68
69 | Additional Statistics Action For vpp-show-elog
70 | | [Documentation]
71 | | ... | Additional Statistics Action for show VPP elog trace.
72 | |
73 | | Show Event Logger On All DUTs | ${nodes}
74
75 | Additional Statistics Action For vpp-show-packettrace
76 | | [Documentation]
77 | | ... | Additional Statistics Action for show VPP packet trace.
78 | |
79 | | Run Keyword If | ${extended_debug}==${True}
80 | | ... | Show Packet Trace On All Duts | ${nodes} | maximum=${100}
81
82 | Additional Statistics Action For vpp-show-runtime
83 | | [Documentation]
84 | | ... | Additional Statistics Action for show VPP runtime.
85 | |
86 | | VPP Show Runtime On All DUTs | ${nodes}
87
88 | Additional Statistics Action For vpp-show-stats
89 | | [Documentation]
90 | | ... | Additional Statistics Action for show VPP statistics.
91 | |
92 | | Show Statistics On All DUTs | ${nodes}