916a903f8377dbc2835b476e87a3366c1c6cff9f
[csit.git] / tests / vpp / device / __init__.robot
1 # Copyright (c) 2018 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 | Resource | resources/libraries/robot/shared/default.robot
16 | Resource | resources/libraries/robot/shared/interfaces.robot
17 | Library | resources.libraries.python.SetupFramework
18 | Library | resources.libraries.python.SetupFramework.CleanupFramework
19 | Library | resources.libraries.python.CpuUtils
20 | Suite Setup | Run Keywords | Setup Global Variables
21 | ... | AND | Setup Framework | ${nodes}
22 | ... | AND | Install Vpp On All Duts | ${nodes} | ${packages_dir}
23 | ... | ${vpp_rpm_pkgs} | ${vpp_deb_pkgs}
24 | ... | AND | Verify Vpp On All Duts | ${nodes}
25 | ... | AND | Get CPU Layout from all nodes | ${nodes}
26 | ... | AND | Update All Interface Data On All Nodes | ${nodes}
27 | ...       | skip_tg_udev=${True}
28 | Suite Teardown | Cleanup Framework | ${nodes}
29
30 *** Keywords ***
31 | Setup Global Variables
32 | | [Documentation]
33 | | ... | Setup suite Variables. Variables are used across device testing.
34 | | ...
35 | | ... | _NOTE:_ This KW sets following suite variables:
36 | | ... | - pkt_trace - Switch to enable packet trace for test
37 | | ... | - dut_stats - Switch to enable DUT statistics
38 | | ... | - vm_image - Guest VM disk image.
39 | | ... | - packages_dir - Path to directory where VPP packages are stored.
40 | | ... | - vpp_rpm_pkgs - Package list for CentOS based system.
41 | | ... | - vpp_deb_pkgs - Package list for Debian based system.
42 | | ...
43 | | Set Global Variable | ${pkt_trace} | ${False}
44 | | Set Global Variable | ${dut_stats} | ${True}
45 | | Set Global Variable | ${vm_image} | /var/lib/vm/csit-nested-1.7.img
46 | | Set Global Variable | ${packages_dir} | /tmp/openvpp-testing/download_dir/
47 | | @{vpp_rpm_pkgs}= | Create List | vpp | vpp-devel | vpp-lib | vpp-plugins
48 | | ... | vpp-api-python
49 | | Set Global Variable | ${vpp_rpm_pkgs}
50 | | @{vpp_deb_pkgs}= | Create List | vpp | vpp-dbg | vpp-dev | vpp-lib
51 | | ... | vpp-plugins | vpp-api-python
52 | | Set Global Variable | ${vpp_deb_pkgs}