Allow CRC checking to be controlled via env var
[csit.git] / tests / __init__.robot
1 # Copyright (c) 2019 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 | Documentation | Set global variables common to all tests.
16 | # The two paths below assume working directory when pybot is started,
17 | # but we cannot use ${CURDIR} as this file may be copied under generated/.
18 | Resource | resources/libraries/robot/robot_enhancements.robot
19 | Variables | resources/libraries/python/Constants.py
20 | Suite Setup | Set Common Variables
21
22 *** Keywords ***
23 | Set Common Variables
24 | | [Documentation] | Set the following global variables.
25 | | ...
26 | | ... | While currently only MRR tests are using the values,
27 | | ... | any new test might decide to use them,
28 | | ... | so variable names are generic for "perf" scope.
29 | | ...
30 | | ... | perf_trial_multiplicity - Number of trials to execute in MRR test.
31 | | ... | perf_trial_duration - Duration of one trial in MRR test.
32 | | ... | dut1_uuid - UUID string of DUT1 /tmp volume created outside of the
33 | | ... |   DUT1 docker in case of vpp-device test. ${EMPTY} value means that
34 | | ... |   /tmp directory is inside the DUT1 docker
35 | | ...
36 | | Ensure Global Variable | perf_trial_multiplicity | 10
37 | | Ensure Global Variable | perf_trial_duration | 1
38 | | Ensure Global Variable | dut1_uuid | ${EMPTY}
39 | | # Avoiding dangers of case insensitive Robot variable names.
40 | | Ensure Global Variable | crc_mismatch_fails | ${CRC_MISMATCH_FAILS_TEST}