blob: 2e830dfcabce375fb53d9f587aac586e2d8fd3dd [file] [log] [blame]
Joey Armstrong83874cc2022-11-26 09:40:08 -05001# -*- makefile -*-
2# -----------------------------------------------------------------------
Joey Armstrong57bd70f2023-01-12 05:25:51 -05003# Copyright 2022-2023 Open Networking Foundation (ONF) and the ONF Contributors
Kailash92764922019-07-25 08:21:39 -07004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
Joey Armstrong83874cc2022-11-26 09:40:08 -050016# -----------------------------------------------------------------------
17
18.DEFAULT_GOAL := sanity-kind
Kailash92764922019-07-25 08:21:39 -070019
Joey Armstrong83874cc2022-11-26 09:40:08 -050020# Assign early: altered by include
Zack Williamsa8fe75a2020-01-10 14:25:27 -070021ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
Kailash92764922019-07-25 08:21:39 -070022
Joey Armstrong83874cc2022-11-26 09:40:08 -050023##--------------------##
24##---] INCLUDES [---##
25##--------------------##
Joey Armstrong04cdd9f2023-06-09 15:18:23 -040026include config.mk
27include makefiles/include.mk
28include makefiles/patches/include.mk
29
30venv-patched += $(venv-activate-script).patched
Joey Armstrong83874cc2022-11-26 09:40:08 -050031
Zack Williamsa8fe75a2020-01-10 14:25:27 -070032# Configuration and lists of files for linting/testing
33VERSION ?= $(shell cat ./VERSION)
Zack Williamsa8fe75a2020-01-10 14:25:27 -070034
35PYTHON_FILES := $(wildcard libraries/*.py)
36ROBOT_FILES := $(shell find . -name *.robot -print)
37YAML_FILES := $(shell find ./tests -type f \( -name *.yaml -o -name *.yml \) -print)
38JSON_FILES := $(shell find ./tests -name *.json -print)
39
40# Robot config
41ROBOT_SANITY_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind.yaml
Hardik Windlassa3d04b92020-02-17 15:06:05 +000042ROBOT_SANITY_DT_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt.yaml
bharat raj58488b32023-05-11 22:46:18 +053043ROBOT_SANITY_DT_SINGLE_PON_FILE_VGC ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-vgc.yaml
Suchitra Vemuria311faf2020-11-23 13:46:52 -080044ROBOT_SANITY_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON.yaml
bharat raj58488b32023-05-11 22:46:18 +053045ROBOT_SANITY_MULTIPLE_OLT_FILE_VGC ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON_VGC.yaml
TorstenThieme379c3da2021-03-23 10:27:32 +000046ROBOT_SANITY_DT_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON-dt.yaml
47ROBOT_SANITY_TT_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON-tt.yaml
Zack Williamsa8fe75a2020-01-10 14:25:27 -070048ROBOT_FAIL_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind.yaml
49ROBOT_SANITY_MULT_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2x2.yaml
50ROBOT_SCALE_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-16.yaml
51ROBOT_SCALE_MULT_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-8x2.yaml
TorstenThiemeffb33922020-06-18 08:41:17 +000052ROBOT_SCALE_MULT_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-8x8.yaml
Zack Williamsa8fe75a2020-01-10 14:25:27 -070053ROBOT_DEBUG_LOG_OPT ?=
54ROBOT_MISC_ARGS ?=
Matteo Scandolo549df9e2020-09-04 11:09:18 -070055ROBOT_SANITY_TT_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tt.yaml
uwe ottrembka504ca3e2020-11-23 12:02:20 +010056ROBOT_DMI_SINGLE_BBSIM_FILE ?= $(ROOT_DIR)/tests/data/dmi-components-bbsim.yaml
TorstenThiemef8f9a802020-12-16 15:25:25 +000057ROBOT_DMI_SINGLE_ADTRAN_FILE ?= $(ROOT_DIR)/tests/data/dmi-components-adtran.yaml
Hardik Windlass17bd1142021-03-12 08:15:25 +000058ROBOT_SW_UPGRADE_FILE ?= $(ROOT_DIR)/tests/data/software-upgrade.yaml
TorstenThiemeff9c9142021-04-08 07:21:34 +000059ROBOT_PM_DATA_FILE ?= $(ROOT_DIR)/tests/data/pm-data.yaml
Hardik Windlass1ed2eee2021-06-25 09:51:03 +000060ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-multi-uni.yaml
61ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-multi-uni-2OLTx2ONUx2PON.yaml
62ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-multi-uni-tt.yaml
TorstenThieme00fe8262022-01-19 10:43:07 +000063ROBOT_SANITY_TT_MULTI_UNI_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-multi-uni-2OLTx2ONUx2PON-tt.yaml
Hardik Windlassa7b34be2022-03-22 17:28:31 +000064ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-fttb-1OLTx1PONx2ONUx2UNI.yaml
bharat raj58488b32023-05-11 22:46:18 +053065ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE_VGC ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-fttb-1OLTx1PONx2ONUx2UNI.yaml
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +020066ROBOT_SANITY_TIM_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim.yaml
67ROBOT_SANITY_TIM_SINGLE_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-OLTxPONx2ONU.yaml
68ROBOT_SANITY_TIM_MULTI_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-OLTx2PONx2ONU.yaml
69ROBOT_SANITY_TIM_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-2OLTx2PONx2ONU.yaml
LupoAndreaSperanza0f3fbc22023-05-16 21:02:40 +020070ROBOT_SANITY_TIM_MCAST_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-Mcast.yaml
71ROBOT_SANITY_TIM_MCAST_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-Mcast-2OLTx2PONx2UNI-single_multi_Sub.yaml
Andrea Speranza8b6f46f2022-08-23 14:22:15 +020072ROBOT_SANITY_BBF_ADPATER_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-bbf-adapter.yaml
73ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE ?= $(ROOT_DIR)/tests/data/bbsim-bbf-adapter_addDelete_tests.yaml
TorstenThieme0fa54432023-02-14 13:27:20 +000074ROBOT_SANITY_DT_SINGLE_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-1OLTx1PONx2ONU.yaml
Zack Williamsa8fe75a2020-01-10 14:25:27 -070075
Joey Armstrong04cdd9f2023-06-09 15:18:23 -040076#ROBOT_CONFIG_FILE ?= $(error ROBOT_CONFIG_FILE= is required)
77
Gilles Depatie45fbe042019-11-11 17:10:06 -050078# for backwards compatibility
79sanity-kind: sanity-single-kind
80
Matteo Scandolod7ca7f22021-01-26 14:10:37 -080081# to simplify ci
82sanity-kind-att: sanity-single-kind
83
Hardik Windlass1ed2eee2021-06-25 09:51:03 +000084# ATT Multi-UNI Sanity Target
85sanity-kind-multiuni-att: ROBOT_MISC_ARGS += -X -i sanity $(ROBOT_DEBUG_LOG_OPT)
86sanity-kind-multiuni-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
87sanity-kind-multiuni-att: ROBOT_FILE := Voltha_PODTests.robot
88sanity-kind-multiuni-att: voltha-test
89
90# ATT Multi-UNI Functional Suite Target
91functional-single-kind-multiuni-att: ROBOT_MISC_ARGS += -X -i sanityORmulti-uni $(ROBOT_DEBUG_LOG_OPT)
92functional-single-kind-multiuni-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
93functional-single-kind-multiuni-att: ROBOT_FILE := Voltha_PODTests.robot
94functional-single-kind-multiuni-att: voltha-test
95
Matteo Scandolo142e6272020-04-29 17:36:59 -070096# for scale pipeline
Hardik Windlass513afd12021-02-03 15:19:46 +000097voltha-scale: ROBOT_MISC_ARGS += -i activation -v NAMESPACE:voltha $(ROBOT_DEBUG_LOG_OPT)
Matteo Scandolo142e6272020-04-29 17:36:59 -070098voltha-scale: voltha-scale-test
99
Hardik Windlassf8b3ee62022-01-24 16:36:32 +0000100# for onu-upgrade scale pipeline
101# Requirement: Pass ONU image details in following parameters
102# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
103voltha-scale-onu-upgrade: ROBOT_MISC_ARGS += -i setup -i activation -i onu-upgrade -v NAMESPACE:voltha -v image_version:BBSM_IMG_00002 -v image_url:http://bbsim0:50074/images/software-image.img -v image_vendor:BBSM -v image_activate_on_success:false -v image_commit_on_success:false -v image_crc:0 $(ROBOT_DEBUG_LOG_OPT)
104voltha-scale-onu-upgrade: voltha-scale-test
105
Hardik Windlassa3d04b92020-02-17 15:06:05 +0000106# target to invoke DT Workflow Sanity
107sanity-kind-dt: ROBOT_MISC_ARGS += -i sanityDt $(ROBOT_DEBUG_LOG_OPT)
108sanity-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
109sanity-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
110sanity-kind-dt: voltha-dt-test
111
bharat raj58488b32023-05-11 22:46:18 +0530112# target to invoke DT Workflow Sanity for VGC
113sanity-kind-dt-vgc: ROBOT_MISC_ARGS += -i sanityDt $(ROBOT_DEBUG_LOG_OPT)
114sanity-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE_VGC)
115sanity-kind-dt-vgc: ROBOT_FILE := Voltha_DT_PODTests_VGC.robot
116sanity-kind-dt-vgc: voltha-dt-test
117
Hardik Windlassa7b34be2022-03-22 17:28:31 +0000118# target to invoke DT FTTB Workflow Sanity
119sanity-kind-dt-fttb: ROBOT_MISC_ARGS += -i sanityDtFttb $(ROBOT_DEBUG_LOG_OPT)
120sanity-kind-dt-fttb: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE)
121sanity-kind-dt-fttb: ROBOT_FILE := Voltha_DT_FTTB_Tests.robot
122sanity-kind-dt-fttb: voltha-dt-test
123
bharat raj58488b32023-05-11 22:46:18 +0530124# target to invoke DT FTTB Workflow Sanity for VGC
125sanity-kind-dt-fttb-vgc: ROBOT_MISC_ARGS += -i sanityDtFttb $(ROBOT_DEBUG_LOG_OPT)
126sanity-kind-dt-fttb-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE_VGC)
127sanity-kind-dt-fttb-vgc: ROBOT_FILE := Voltha_DT_FTTB_Tests_VGC.robot
128sanity-kind-dt-fttb-vgc: voltha-dt-test
129
Hardik Windlassd6aa0822020-06-29 20:18:12 +0530130functional-single-kind: ROBOT_MISC_ARGS += -i sanityORfunctional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Andy Bavier33e6dd32020-01-16 13:35:20 -0700131functional-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
132functional-single-kind: bbsim-kind
133
Matteo Scandolod7ca7f22021-01-26 14:10:37 -0800134# to simplify ci
135functional-single-kind-att: functional-single-kind
136
Hardik Windlass35706ba2020-02-20 08:16:42 +0000137# target to invoke DT Workflow Functional scenarios
Hardik Windlassd6aa0822020-06-29 20:18:12 +0530138functional-single-kind-dt: ROBOT_MISC_ARGS += -i sanityDtORfunctionalDt -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Hardik Windlass35706ba2020-02-20 08:16:42 +0000139functional-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
140functional-single-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
141functional-single-kind-dt: voltha-dt-test
142
bharat raj58488b32023-05-11 22:46:18 +0530143# target to invoke DT Workflow Functional scenarios
144functional-single-kind-dt-vgc: ROBOT_MISC_ARGS += -i sanityDtORfunctionalDt -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
145functional-single-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE_VGC)
146functional-single-kind-dt-vgc: ROBOT_FILE := Voltha_DT_PODTests_VGC.robot
147functional-single-kind-dt-vgc: voltha-dt-test
148
149
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700150# target to invoke TT Workflow Sanity
Hardik Windlass43118692020-07-01 22:16:47 +0530151sanity-kind-tt: ROBOT_MISC_ARGS += -i sanityTT $(ROBOT_DEBUG_LOG_OPT)
152sanity-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
153sanity-kind-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
154sanity-kind-tt: voltha-tt-test
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700155
Hardik Windlassc609eb02022-02-22 11:28:37 +0000156sanity-kind-tt-maclearning: ROBOT_MISC_ARGS += -i sanityTT -v with_maclearning:True $(ROBOT_DEBUG_LOG_OPT)
157sanity-kind-tt-maclearning: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
158sanity-kind-tt-maclearning: ROBOT_FILE := Voltha_TT_PODTests.robot
159sanity-kind-tt-maclearning: voltha-tt-test
160
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000161sanity-kind-multiuni-tt: ROBOT_MISC_ARGS += -i sanityTT $(ROBOT_DEBUG_LOG_OPT)
162sanity-kind-multiuni-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
163sanity-kind-multiuni-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
164sanity-kind-multiuni-tt: voltha-tt-test
165
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700166# target to invoke TT Workflow Functional scenarios
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000167functional-single-kind-tt: ROBOT_MISC_ARGS += -i sanityTTORfunctionalTT -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700168functional-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
169functional-single-kind-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
170functional-single-kind-tt: voltha-tt-test
171
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000172functional-single-kind-multiuni-tt: ROBOT_MISC_ARGS += -i sanityTTORfunctionalTT -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
173functional-single-kind-multiuni-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
174functional-single-kind-multiuni-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
175functional-single-kind-multiuni-tt: voltha-tt-test
176
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200177# target to invoke TIM Workflow Sanity
178sanity-kind-tim: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
179sanity-kind-tim: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_SINGLE_PON_FILE)
180sanity-kind-tim: ROBOT_FILE := Voltha_TIM_PODTests.robot
181sanity-kind-tim: voltha-tim-test
182
183sanity-kind-tim-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
184sanity-kind-tim-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_SINGLE_PON_MULTI_ONU_FILE)
185sanity-kind-tim-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
186sanity-kind-tim-multi-onu: voltha-tim-test
187
188sanity-kind-tim-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
189sanity-kind-tim-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MULTI_PON_MULTI_ONU_FILE)
190sanity-kind-tim-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
191sanity-kind-tim-multi-pon-multi-onu: voltha-tim-test
192
193sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
194sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE)
195sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
196sanity-kind-tim-multi-olt-multi-pon-multi-onu: voltha-tim-test
197
LupoAndreaSperanza0f3fbc22023-05-16 21:02:40 +0200198sanity-kind-tim-mcast: ROBOT_MISC_ARGS += -i sanityTIM-MCast $(ROBOT_DEBUG_LOG_OPT)
199sanity-kind-tim-mcast: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MCAST_SINGLE_PON_FILE)
200sanity-kind-tim-mcast: ROBOT_FILE := Voltha_TIM_PODTests.robot
201sanity-kind-tim-mcast: voltha-tim-test
202
203sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM-MCast $(ROBOT_DEBUG_LOG_OPT)
204sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MCAST_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE)
205sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
206sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: voltha-tim-test
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200207
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000208# target to invoke multiple OLTs Functional scenarios
Suchitra Vemuri2a6975a2020-11-25 12:49:38 -0800209functional-multi-olt: ROBOT_MISC_ARGS += -i sanityORfunctional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000210functional-multi-olt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800211functional-multi-olt: ROBOT_FILE := Voltha_PODTests.robot
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000212functional-multi-olt: voltha-test
213
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000214functional-multiuni-multiolt-att: ROBOT_MISC_ARGS += -X -i sanityORmulti-uni $(ROBOT_DEBUG_LOG_OPT)
215functional-multiuni-multiolt-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
216functional-multiuni-multiolt-att: ROBOT_FILE := Voltha_PODTests.robot
217functional-multiuni-multiolt-att: voltha-test
218
TorstenThieme90a99f82021-05-05 09:17:37 +0000219# target to invoke test with openonu go adapter applying 1T1GEM tech-profile at single ONU
2201t1gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T1GEM
2211t1gem-openonu-go-adapter-test: openonu-go-adapter-test
222
TorstenThiemefe7099e2021-01-29 08:41:04 +0000223# target to invoke test with openonu go adapter applying 1T4GEM tech-profile at single ONU
2241t4gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T4GEM
2251t4gem-openonu-go-adapter-test: openonu-go-adapter-test
226
227# target to invoke test with openonu go adapter applying 1T8GEM tech-profile at single ONU
2281t8gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T8GEM
2291t8gem-openonu-go-adapter-test: openonu-go-adapter-test
230
TorstenThieme1619db22020-04-03 12:01:15 +0000231# target to invoke openonu go adapter
TorstenThieme66c91a82020-10-19 13:37:53 +0000232openonu-go-adapter-test: ROBOT_MISC_ARGS += -v state2test:omci-flows-pushed -v testmode:SingleStateTime
Hardik Windlass9e3db232021-10-14 07:10:47 +0000233openonu-go-adapter-test: ROBOT_MISC_ARGS += -i sanityOnuGo -i functionalOnuGo
TorstenThieme41097be2021-07-06 09:52:50 +0000234openonu-go-adapter-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme1619db22020-04-03 12:01:15 +0000235openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
236openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUStateTests.robot
TorstenThieme89caa142020-10-05 08:20:31 +0000237openonu-go-adapter-test: openonu-go-adapter-tests
TorstenThieme1619db22020-04-03 12:01:15 +0000238
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200239# target to invoke bbf adapter
240bbf-adapter: ROBOT_MISC_ARGS += -i sanityBbfAdapter $(ROBOT_DEBUG_LOG_OPT)
241bbf-adapter: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_SINGLE_PON_FILE)
242bbf-adapter: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
243bbf-adapter: voltha-bbf-adapter-test
244
245bbf-adapter-functionality: ROBOT_MISC_ARGS += -i bbfAdapterFunctionality $(ROBOT_DEBUG_LOG_OPT)
246bbf-adapter-functionality: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE)
247bbf-adapter-functionality: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
248bbf-adapter-functionality: voltha-bbf-adapter-test
249
250bbf-adapter-functionality-single: ROBOT_MISC_ARGS += -i bbfAdapterFunctionalitySingleTest $(ROBOT_DEBUG_LOG_OPT)
251bbf-adapter-functionality-single: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE)
252bbf-adapter-functionality-single: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
253bbf-adapter-functionality-single: voltha-bbf-adapter-test
254
TorstenThieme89caa142020-10-05 08:20:31 +0000255# target to invoke test with openonu go adapter applying MIB-Upload-Templating
Hardik Windlass9e3db232021-10-14 07:10:47 +0000256mib-upload-templating-openonu-go-adapter-test: ROBOT_MISC_ARGS += -i functionalOnuGo
TorstenThieme5db695e2022-04-01 08:19:05 +0000257mib-upload-templating-openonu-go-adapter-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme89caa142020-10-05 08:20:31 +0000258mib-upload-templating-openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
259mib-upload-templating-openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUTemplateTests.robot
260mib-upload-templating-openonu-go-adapter-test: openonu-go-adapter-tests
TorstenThieme280c3802020-08-07 07:07:42 +0000261
TorstenThieme53450ff2021-05-11 09:44:33 +0000262# target to invoke test with openonu go adapter applying 1T8GEM tech-profile at single ONU with OMCI hardening
263# timeout is determined for omci_response_rate=9 and omci_timeout=1s
264openonu-go-adapter-omci-hardening-passed-test: ROBOT_MISC_ARGS += -v timeout:180s -v techprofile:1T8GEM
265openonu-go-adapter-omci-hardening-passed-test: openonu-go-adapter-test
266
267# target to invoke openonu go adapter failed state test at single ONU with OMCI hardening
268# test should show in case of too small omci_response_rate (<=7) in BBSIM that OMCI hardening does not work
269# test is PASS when ONU does not leave state 'starting-openomci'
Hardik Windlass9e3db232021-10-14 07:10:47 +0000270openonu-go-adapter-omci-hardening-failed-test: ROBOT_MISC_ARGS += -v timeout:300s -i NegativeStateTestOnuGo
TorstenThieme5db695e2022-04-01 08:19:05 +0000271openonu-go-adapter-omci-hardening-failed-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme53450ff2021-05-11 09:44:33 +0000272openonu-go-adapter-omci-hardening-failed-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
273openonu-go-adapter-omci-hardening-failed-test: ROBOT_FILE := Voltha_ONUNegativeStateTests.robot
274openonu-go-adapter-omci-hardening-failed-test: openonu-go-adapter-tests
275
TorstenThieme379c3da2021-03-23 10:27:32 +0000276# target to invoke reconcile tests with openonu go adapter at single ONU with ATT workflow (default workflow)
TorstenThieme90a99f82021-05-05 09:17:37 +0000277reconcile-openonu-go-adapter-test-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
278reconcile-openonu-go-adapter-test-att: reconcile-openonu-go-adapter-tests-att
TorstenThieme3d8bf552021-02-08 08:41:52 +0000279
TorstenThiemefe7099e2021-01-29 08:41:04 +0000280# target to invoke reconcile tests with openonu go adapter at single ONU with DT workflow
TorstenThieme3d8bf552021-02-08 08:41:52 +0000281reconcile-openonu-go-adapter-test-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
TorstenThieme379c3da2021-03-23 10:27:32 +0000282reconcile-openonu-go-adapter-test-dt: reconcile-openonu-go-adapter-tests-dt
TorstenThiemefe7099e2021-01-29 08:41:04 +0000283
284# target to invoke reconcile tests with openonu go adapter at single ONU with TT workflow
TorstenThieme3d8bf552021-02-08 08:41:52 +0000285reconcile-openonu-go-adapter-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
TorstenThieme379c3da2021-03-23 10:27:32 +0000286reconcile-openonu-go-adapter-test-tt: reconcile-openonu-go-adapter-tests-tt
TorstenThiemefe7099e2021-01-29 08:41:04 +0000287
TorstenThieme00fe8262022-01-19 10:43:07 +0000288# target to invoke reconcile tests with openonu go adapter at single ONU multi UNI with TT workflow
289reconcile-openonu-go-adapter-multi-uni-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
290reconcile-openonu-go-adapter-multi-uni-test-tt: ROBOT_MISC_ARGS += -v unitag_sub:True
291reconcile-openonu-go-adapter-multi-uni-test-tt: reconcile-openonu-go-adapter-tests-tt
292
TorstenThieme379c3da2021-03-23 10:27:32 +0000293# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with ATT workflow (default workflow)
TorstenThieme90a99f82021-05-05 09:17:37 +0000294reconcile-openonu-go-adapter-multi-olt-test-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
295reconcile-openonu-go-adapter-multi-olt-test-att: reconcile-openonu-go-adapter-tests-att
TorstenThieme379c3da2021-03-23 10:27:32 +0000296
297# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with DT workflow
298reconcile-openonu-go-adapter-multi-olt-test-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
299reconcile-openonu-go-adapter-multi-olt-test-dt: reconcile-openonu-go-adapter-tests-dt
300
301# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with TT workflow
302reconcile-openonu-go-adapter-multi-olt-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
303reconcile-openonu-go-adapter-multi-olt-test-tt: reconcile-openonu-go-adapter-tests-tt
304
TorstenThieme00fe8262022-01-19 10:43:07 +0000305# target to invoke reconcile tests with openonu go adapter with multiple OLTs multi UNI scenario with TT workflow
306reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_MULTIPLE_OLT_FILE)
307reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: ROBOT_MISC_ARGS += -v unitag_sub:True
308reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: reconcile-openonu-go-adapter-tests-tt
309
TorstenThieme90a99f82021-05-05 09:17:37 +0000310# target to invoke reconcile tests with openonu go adapter with ATT workflow
311reconcile-openonu-go-adapter-tests-att: ROBOT_MISC_ARGS += -v workflow:ATT
312reconcile-openonu-go-adapter-tests-att: reconcile-openonu-go-adapter-tests
313
TorstenThieme379c3da2021-03-23 10:27:32 +0000314# target to invoke reconcile tests with openonu go adapter with DT workflow
315reconcile-openonu-go-adapter-tests-dt: ROBOT_MISC_ARGS += -v workflow:DT
316reconcile-openonu-go-adapter-tests-dt: reconcile-openonu-go-adapter-tests
317
318# target to invoke reconcile tests with openonu go adapter with TT workflow
319reconcile-openonu-go-adapter-tests-tt: ROBOT_MISC_ARGS += -v workflow:TT
320reconcile-openonu-go-adapter-tests-tt: reconcile-openonu-go-adapter-tests
321
322# target to invoke reconcile tests with openonu go adapter at single ONU resp. multiple OLTs
Hardik Windlass9e3db232021-10-14 07:10:47 +0000323reconcile-openonu-go-adapter-tests: ROBOT_MISC_ARGS += -i functionalOnuGo
TorstenThieme0ec95eb2021-11-23 14:56:26 +0000324reconcile-openonu-go-adapter-tests: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme3d8bf552021-02-08 08:41:52 +0000325reconcile-openonu-go-adapter-tests: ROBOT_FILE := Voltha_ONUReconcileTests.robot
326reconcile-openonu-go-adapter-tests: openonu-go-adapter-tests
TorstenThieme440b7c02020-12-18 15:42:57 +0000327
TorstenThieme90a99f82021-05-05 09:17:37 +0000328# target to invoke test with openonu go adapter applying 1T1GEM tech-profile with multiple OLTs scenarios with ATT workflow
3291t1gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T1GEM
3301t1gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
331
TorstenThiemefe7099e2021-01-29 08:41:04 +0000332# target to invoke test with openonu go adapter applying 1T4GEM tech-profile with multiple OLTs scenarios with ATT workflow
3331t4gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T4GEM
3341t4gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
TorstenThiemec3c23232021-01-13 13:06:31 +0000335
TorstenThiemefe7099e2021-01-29 08:41:04 +0000336# target to invoke test with openonu go adapter applying 1T8GEM tech-profile with multiple OLTs scenarios with ATT workflow
3371t8gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T8GEM
TorstenThieme3d8bf552021-02-08 08:41:52 +00003381t8gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
TorstenThiemefe7099e2021-01-29 08:41:04 +0000339
340# target to invoke test with openonu go adapter (applying 1T1GEM tech-profile) with multiple OLTs scenarios with ATT workflow
341openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v state2test:omci-flows-pushed -v testmode:SingleStateTime
Hardik Windlass9e3db232021-10-14 07:10:47 +0000342openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -i sanityOnuGo -i functionalOnuGo
TorstenThieme41097be2021-07-06 09:52:50 +0000343openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThiemefe7099e2021-01-29 08:41:04 +0000344openonu-go-adapter-multi-olt-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
345openonu-go-adapter-multi-olt-test: ROBOT_FILE := Voltha_ONUStateTests.robot
346openonu-go-adapter-multi-olt-test: openonu-go-adapter-tests
TorstenThieme70bc5262021-01-19 12:12:55 +0000347
David Bainbridgef81cd642019-11-20 00:14:47 +0000348sanity-single-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500349sanity-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
350sanity-single-kind: bbsim-kind
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000351
Hardik Windlass9e3db232021-10-14 07:10:47 +0000352sanity-bbsim-att: ROBOT_MISC_ARGS += -v workflow:ATT
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700353sanity-bbsim-att: sanity-bbsim
354
Hardik Windlass9e3db232021-10-14 07:10:47 +0000355sanity-bbsim-dt: ROBOT_MISC_ARGS += -v workflow:DT
Matteo Scandolof310d962021-05-18 10:35:48 -0700356sanity-bbsim-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
357sanity-bbsim-dt: ROBOT_FILE := Voltha_BBSimTests.robot
358sanity-bbsim-dt: voltha-bbsim-test
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700359
Hardik Windlass9e3db232021-10-14 07:10:47 +0000360sanity-bbsim-tt: ROBOT_MISC_ARGS += -v workflow:TT
Matteo Scandolof310d962021-05-18 10:35:48 -0700361sanity-bbsim-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
362sanity-bbsim-tt: ROBOT_FILE := Voltha_BBSimTests.robot
363sanity-bbsim-tt: voltha-bbsim-test
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700364
365sanity-bbsim: ROBOT_MISC_ARGS += -i bbsimSanity $(ROBOT_DEBUG_LOG_OPT)
366sanity-bbsim: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
367sanity-bbsim: ROBOT_FILE := Voltha_BBSimTests.robot
368sanity-bbsim: voltha-bbsim-test
369
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400370voltha-bbsim-test: $(venv-activate-patched)
371 $(activate) \
372 && cd tests/bbsim \
373 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Matteo Scandolo95b22152021-02-05 15:39:34 -0800374
David Bainbridge32c45632020-04-13 08:47:09 -0700375rwcore-restart-single-kind: ROBOT_MISC_ARGS += -X -i functionalANDrwcore-restart $(ROBOT_DEBUG_LOG_OPT)
David Bainbridgef81cd642019-11-20 00:14:47 +0000376rwcore-restart-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_FAIL_SINGLE_PON_FILE)
ubuntu6b6e7d42020-03-02 12:35:42 -0800377rwcore-restart-single-kind: ROBOT_FILE := Voltha_FailureScenarios.robot
David Bainbridgef81cd642019-11-20 00:14:47 +0000378rwcore-restart-single-kind: voltha-test
379
David Bainbridge3d6d5d32019-12-17 19:05:35 +0000380single-kind: ROBOT_MISC_ARGS += -X -i $(TEST_TAGS) $(ROBOT_DEBUG_LOG_OPT)
381single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
382single-kind: ROBOT_FILE := Voltha_PODTests.robot
383single-kind: voltha-test
384
David Bainbridgef81cd642019-11-20 00:14:47 +0000385sanity-multi-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500386sanity-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
387sanity-multi-kind: bbsim-kind
Andy Bavierba9866b2019-10-11 07:11:53 -0700388
Andy Bavier8da0e132020-04-13 10:25:16 -0700389functional-multi-kind: ROBOT_MISC_ARGS += -i sanityORfunctional $(ROBOT_DEBUG_LOG_OPT)
390functional-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
391functional-multi-kind: bbsim-kind
392
Suchitra Vemuri8a9c3782019-10-23 12:43:01 -0700393bbsim-kind: ROBOT_MISC_ARGS += -X
Gilles Depatie45fbe042019-11-11 17:10:06 -0500394bbsim-kind: ROBOT_FILE := Voltha_PODTests.robot
395bbsim-kind: voltha-test
396
David Bainbridgef81cd642019-11-20 00:14:47 +0000397scale-single-kind: ROBOT_MISC_ARGS += -i active $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500398scale-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SCALE_SINGLE_PON_FILE)
399scale-single-kind: bbsim-scale-kind
400
David Bainbridgef81cd642019-11-20 00:14:47 +0000401scale-multi-kind: ROBOT_MISC_ARGS += -i active $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500402scale-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SCALE_MULT_PON_FILE)
403scale-multi-kind: bbsim-scale-kind
404
David Bainbridgef81cd642019-11-20 00:14:47 +0000405bbsim-scale-kind: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500406bbsim-scale-kind: ROBOT_FILE := Voltha_ScaleFunctionalTests.robot
407bbsim-scale-kind: voltha-test
Zack Williamsec53a1b2019-09-16 15:50:52 -0700408
hwchiuab524f02020-02-03 23:24:19 +0000409#Only supported in full mode
410system-scale-test: ROBOT_FILE := K8S_SystemTest.robot
Matteo Scandolo66fe6452021-01-05 13:03:41 -0800411system-scale-test: ROBOT_MISC_ARGS += -X -i functional $(ROBOT_DEBUG_LOG_OPT) -v teardown_device:True
hwchiuab524f02020-02-03 23:24:19 +0000412system-scale-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
413system-scale-test: voltha-test
hwchiu11289122019-11-27 16:20:15 +0000414
hwchiu85695932019-12-18 08:05:25 +0000415failure-test: ROBOT_MISC_ARGS += -X -i FailureTest $(ROBOT_DEBUG_LOG_OPT)
hwchiu3d9a0982020-02-06 00:19:19 +0000416failure-test: ROBOT_FILE := K8S_SystemTest.robot
hwchiu85695932019-12-18 08:05:25 +0000417failure-test: ROBOT_CONFIG_FILE := $(ROBOT_FAIL_SINGLE_PON_FILE)
418failure-test: voltha-test
419
Scott Baker60e570d2020-02-02 22:10:13 -0800420bbsim-alarms-kind: ROBOT_MISC_ARGS += -X -i active
421bbsim-alarms-kind: ROBOT_FILE := Voltha_AlarmTests.robot
Andy Baviere118e052020-03-06 12:49:24 -0700422bbsim-alarms-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
Scott Baker60e570d2020-02-02 22:10:13 -0800423bbsim-alarms-kind: voltctl-docker-image-build voltctl-docker-image-install-kind voltha-test
424
Andy Bavierc1904dc2020-03-20 11:39:15 -0700425bbsim-errorscenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
426bbsim-errorscenarios: ROBOT_FILE := Voltha_ErrorScenarios.robot
427bbsim-errorscenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
428bbsim-errorscenarios: voltha-test
429
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000430bbsim-multiuni-errorscenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
431bbsim-multiuni-errorscenarios-att: ROBOT_FILE := Voltha_ErrorScenarios.robot
432bbsim-multiuni-errorscenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
433bbsim-multiuni-errorscenarios-att: voltha-test
434
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800435bbsim-multiolt-errorscenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
436bbsim-multiolt-errorscenarios: ROBOT_FILE := Voltha_ErrorScenarios.robot
437bbsim-multiolt-errorscenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
438bbsim-multiolt-errorscenarios: voltha-test
439
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000440bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
441bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_FILE := Voltha_ErrorScenarios.robot
442bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
443bbsim-multiuni-multiolt-errorscenarios-att: voltha-test
444
Hardik Windlasscbcca312020-04-20 21:46:11 +0530445bbsim-errorscenarios-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
446bbsim-errorscenarios-dt: ROBOT_FILE := Voltha_ErrorScenarios.robot
447bbsim-errorscenarios-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
448bbsim-errorscenarios-dt: voltha-test
449
Hardik Windlasse05e4712020-04-29 10:40:42 +0530450bbsim-failurescenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
Andy Bavier8da0e132020-04-13 10:25:16 -0700451bbsim-failurescenarios: ROBOT_FILE := Voltha_FailureScenarios.robot
452bbsim-failurescenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
453bbsim-failurescenarios: voltha-test
454
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000455bbsim-multiuni-failurescenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
456bbsim-multiuni-failurescenarios-att: ROBOT_FILE := Voltha_FailureScenarios.robot
457bbsim-multiuni-failurescenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
458bbsim-multiuni-failurescenarios-att: voltha-test
459
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800460bbsim-multiolt-failurescenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
461bbsim-multiolt-failurescenarios: ROBOT_FILE := Voltha_FailureScenarios.robot
462bbsim-multiolt-failurescenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
463bbsim-multiolt-failurescenarios: voltha-test
464
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000465bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
466bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_FILE := Voltha_FailureScenarios.robot
467bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
468bbsim-multiuni-multiolt-failurescenarios-att: voltha-test
469
Hardik Windlass5ceb84e2021-02-11 11:17:08 +0000470bbsim-multiolt-kind: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalReboot
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800471bbsim-multiolt-kind: ROBOT_FILE := Voltha_MultiOLT_Tests.robot
472bbsim-multiolt-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
473bbsim-multiolt-kind: voltha-test
474
Hardik Windlass5ceb84e2021-02-11 11:17:08 +0000475bbsim-multiolt-kind-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalRebootDt
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800476bbsim-multiolt-kind-dt: ROBOT_FILE := Voltha_DT_MultiOLT_Tests.robot
477bbsim-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
478bbsim-multiolt-kind-dt: voltha-dt-test
479
bharat raj58488b32023-05-11 22:46:18 +0530480bbsim-multiolt-kind-dt-vgc: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalRebootDt
481bbsim-multiolt-kind-dt-vgc: ROBOT_FILE := Voltha_DT_MultiOLT_Tests_VGC.robot
482bbsim-multiolt-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE_VGC)
483bbsim-multiolt-kind-dt-vgc: voltha-dt-test
484
485multiolt-kind-dt-vgc: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -i functionalDt
486multiolt-kind-dt-vgc: ROBOT_FILE := Voltha_DT_MultiOLT_Tests_VGC.robot
487multiolt-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE_VGC)
488multiolt-kind-dt-vgc: voltha-dt-test
489
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800490multiolt-kind-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -i functionalDt
491multiolt-kind-dt: ROBOT_FILE := Voltha_DT_MultiOLT_Tests.robot
492multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
493multiolt-kind-dt: voltha-dt-test
494
Hardik Windlass9df139e2020-04-24 14:54:54 +0530495bbsim-failurescenarios-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitchOnuRebootDt -e PhysicalOltRebootDt
496bbsim-failurescenarios-dt: ROBOT_FILE := Voltha_DT_FailureScenarios.robot
497bbsim-failurescenarios-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
498bbsim-failurescenarios-dt: voltha-dt-test
499
Hardik Windlassb1bda362021-11-24 11:54:36 +0000500bbsim-failurescenarios-tt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOltRebootTT -e dataplaneTT
TorstenThieme136ebf72021-02-26 14:27:07 +0000501bbsim-failurescenarios-tt: ROBOT_FILE := Voltha_TT_FailureScenarios.robot
502bbsim-failurescenarios-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
503bbsim-failurescenarios-tt: voltha-tt-test
504
Andrea Campanellaf1081572021-10-06 16:06:55 +0200505onos-ha-test: ROBOT_MISC_ARGS += -e notready -X $(ROBOT_DEBUG_LOG_OPT)
506onos-ha-test: ROBOT_FILE := Voltha_ONOSHATests.robot
507onos-ha-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
508onos-ha-test: voltha-test
509
Matteo Scandoloab48f9e2021-06-11 17:08:00 +0200510voltha-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
hwchiu11289122019-11-27 16:20:15 +0000511
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400512voltha-test: $(venv-activate-patched)
513 $(activate) \
514 && cd tests/functional \
515 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700516
TorstenThiemef8f9a802020-12-16 15:25:25 +0000517bbsim-dmi-hw-management-test: ROBOT_MISC_ARGS += -e notreadyDMI -i functionalDMI -e bbsimUnimplementedDMI
518bbsim-dmi-hw-management-test: ROBOT_FILE := dmi-hw-management.robot
519bbsim-dmi-hw-management-test: ROBOT_CONFIG_FILE := $(ROBOT_DMI_SINGLE_BBSIM_FILE)
520bbsim-dmi-hw-management-test: voltha-dmi-test
uwe ottrembka504ca3e2020-11-23 12:02:20 +0100521
TorstenThiemef8f9a802020-12-16 15:25:25 +0000522voltha-dmi-hw-management-test: ROBOT_MISC_ARGS += -e notreadyDMI -i functionalDMI
523voltha-dmi-hw-management-test: ROBOT_FILE := dmi-hw-management.robot
524voltha-dmi-hw-management-test: ROBOT_CONFIG_FILE := $(ROBOT_DMI_SINGLE_ADTRAN_FILE)
525voltha-dmi-hw-management-test: voltha-dmi-test
526
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400527voltha-dmi-test: $(venv-activate-patched)
528 $(activate) \
529 && tests/dmi-interface \
530 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
uwe ottrembka504ca3e2020-11-23 12:02:20 +0100531
TorstenThiemeff9c9142021-04-08 07:21:34 +0000532# target to invoke single ONU pm data scenarios in ATT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000533voltha-pm-data-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000534voltha-pm-data-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
535voltha-pm-data-single-kind-att: voltha-pm-data-tests
536
537# target to invoke single ONU pm data scenarios in DT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000538voltha-pm-data-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000539voltha-pm-data-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
540voltha-pm-data-single-kind-dt: voltha-pm-data-tests
541
542# target to invoke single ONU pm data scenarios in TT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000543voltha-pm-data-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
TorstenThieme90a99f82021-05-05 09:17:37 +0000544voltha-pm-data-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
545voltha-pm-data-single-kind-tt: voltha-pm-data-tests
TorstenThiemeff9c9142021-04-08 07:21:34 +0000546
547# target to invoke multiple OLTs pm data scenarios in ATT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000548voltha-pm-data-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000549voltha-pm-data-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
550voltha-pm-data-multiolt-kind-att: voltha-pm-data-tests
551
552# target to invoke multiple OLTs pm data scenarios in DT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000553voltha-pm-data-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000554voltha-pm-data-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
555voltha-pm-data-multiolt-kind-dt: voltha-pm-data-tests
556
557# target to invoke multiple OLTs pm data scenarios in TT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000558voltha-pm-data-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000559voltha-pm-data-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
560voltha-pm-data-multiolt-kind-tt: voltha-pm-data-tests
561
562voltha-pm-data-tests: ROBOT_MISC_ARGS += -i functional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
563voltha-pm-data-tests: ROBOT_PM_CONFIG_FILE := $(ROBOT_PM_DATA_FILE)
564voltha-pm-data-tests: ROBOT_FILE := Voltha_ONUPMTests.robot
565voltha-pm-data-tests: voltha-pm-data-test
566
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400567voltha-pm-data-test: $(venv-activate-patched)
568 $(activate) \
569 && tests/pm-data \
570 && robot -V $(ROBOT_CONFIG_FILE) -V $(ROBOT_PM_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
TorstenThiemeff9c9142021-04-08 07:21:34 +0000571
TorstenThieme1c1f5fa2021-06-18 13:40:30 +0000572# target to invoke single ONU OMCI Get scenarios in ATT workflow
573voltha-onu-omci-get-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
574voltha-onu-omci-get-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
575voltha-onu-omci-get-single-kind-att: voltha-onu-omci-get-tests
576
577# target to invoke single ONU OMCI Get scenarios in DT workflow
578voltha-onu-omci-get-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
579voltha-onu-omci-get-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
580voltha-onu-omci-get-single-kind-dt: voltha-onu-omci-get-tests
581
TorstenThiemea7315f12021-07-23 11:56:34 +0000582# target to invoke single ONU OMCI Get scenarios in TT workflow
TorstenThieme1c1f5fa2021-06-18 13:40:30 +0000583voltha-onu-omci-get-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
584voltha-onu-omci-get-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
585voltha-onu-omci-get-single-kind-tt: voltha-onu-omci-get-tests
586
587# target to invoke multiple OLTs OMCI Get scenarios in ATT workflow
588voltha-onu-omci-get-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
589voltha-onu-omci-get-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
590voltha-onu-omci-get-multiolt-kind-att: voltha-onu-omci-get-tests
591
592# target to invoke multiple OLTs OMCI Get scenarios in DT workflow
593voltha-onu-omci-get-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
594voltha-onu-omci-get-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
595voltha-onu-omci-get-multiolt-kind-dt: voltha-onu-omci-get-tests
596
597# target to invoke multiple OLTs OMCI Get scenarios in TT workflow
598voltha-onu-omci-get-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
599voltha-onu-omci-get-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
600voltha-onu-omci-get-multiolt-kind-tt: voltha-onu-omci-get-tests
601
602voltha-onu-omci-get-tests: ROBOT_MISC_ARGS += -i functionalOnuGo -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
603voltha-onu-omci-get-tests: ROBOT_FILE := Voltha_ONUOmciGetTest.robot
604voltha-onu-omci-get-tests: openonu-go-adapter-tests
605
TorstenThiemea7315f12021-07-23 11:56:34 +0000606# target to invoke single ONU Flows Check in ATT workflow
607voltha-onu-flows-check-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
608voltha-onu-flows-check-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
609voltha-onu-flows-check-single-kind-att: voltha-onu-flows-check-tests
610
611# target to invoke single ONU Flows Check scenarios in DT workflow
612voltha-onu-flows-check-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT -v techprofile:1T8GEM
613voltha-onu-flows-check-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
614voltha-onu-flows-check-single-kind-dt: voltha-onu-flows-check-tests
615
616# target to invoke single ONU Flows Check scenarios in TT workflow
617voltha-onu-flows-check-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT -v techprofile:1T4GEM
618voltha-onu-flows-check-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
619voltha-onu-flows-check-single-kind-tt: voltha-onu-flows-check-tests
620
621# target to invoke multiple OLTs Flows Check scenarios in ATT workflow
622voltha-onu-flows-check-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
623voltha-onu-flows-check-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
624voltha-onu-flows-check-multiolt-kind-att: voltha-onu-flows-check-tests
625
626# target to invoke multiple OLTs Flows Check scenarios in DT workflow
627voltha-onu-flows-check-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT -v techprofile:1T8GEM
628voltha-onu-flows-check-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
629voltha-onu-flows-check-multiolt-kind-dt: voltha-onu-flows-check-tests
630
631# target to invoke multiple OLTs Flows Check scenarios in TT workflow
632voltha-onu-flows-check-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT -v techprofile:1T4GEM
633voltha-onu-flows-check-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
634voltha-onu-flows-check-multiolt-kind-tt: voltha-onu-flows-check-tests
635
636voltha-onu-flows-check-tests: ROBOT_MISC_ARGS += -i functionalOnuGo -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
637voltha-onu-flows-check-tests: ROBOT_FILE := Voltha_ONUFlowChecks.robot
638voltha-onu-flows-check-tests: openonu-go-adapter-tests
639
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000640# ONOS Apps to test for Software Upgrade need to be passed in the 'onos_apps_under_test' variable in format:
Hardik Windlassdc2610f2021-03-09 07:33:51 +0000641# <app-name>,<version>,<oar-url>*<app-name>,<version>,<oar-url>*
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000642onos-app-upgrade-test: ROBOT_MISC_ARGS += -e notready -i functional
643onos-app-upgrade-test: ROBOT_FILE := ONOS_AppsUpgrade.robot
Hardik Windlass17bd1142021-03-12 08:15:25 +0000644onos-app-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000645onos-app-upgrade-test: software-upgrade-test
646
647# Voltha Components to test for Software Upgrade need to be passed in the 'voltha_comps_under_test' variable in format:
Hardik Windlassdc2610f2021-03-09 07:33:51 +0000648# <comp-label>,<comp-container>,<comp-image>*<comp-label>,<comp-container>,<comp-image>*
Hardik Windlass76f68212022-01-19 08:16:14 +0000649voltha-comp-upgrade-test: ROBOT_MISC_ARGS += -e notready -i VolthaCompMinorVerUpgrade
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000650voltha-comp-upgrade-test: ROBOT_FILE := Voltha_ComponentsUpgrade.robot
Hardik Windlass17bd1142021-03-12 08:15:25 +0000651voltha-comp-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000652voltha-comp-upgrade-test: software-upgrade-test
653
Hardik Windlass76f68212022-01-19 08:16:14 +0000654# Voltha Components to test for Software Upgrade need to be passed in the 'voltha_comps_under_test' variable in format:
655# <comp-label>,<comp-container>,<comp-image>*<comp-label>,<comp-container>,<comp-image>*
656voltha-comp-rolling-upgrade-test: ROBOT_MISC_ARGS += -e notready -i VolthaCompMinorVerRollingUpgrade
657voltha-comp-rolling-upgrade-test: ROBOT_FILE := Voltha_ComponentsUpgrade.robot
658voltha-comp-rolling-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
659voltha-comp-rolling-upgrade-test: software-upgrade-test
660
Hardik Windlass17bd1142021-03-12 08:15:25 +0000661# Requirement: Pass ONU image details in following parameters
Hardik Windlassba1bd272021-06-22 08:29:33 +0000662# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
Hardik Windlass17bd1142021-03-12 08:15:25 +0000663onu-upgrade-test: ROBOT_MISC_ARGS += -e notready -i functional
664onu-upgrade-test: ROBOT_FILE := ONU_Upgrade.robot
665onu-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
666onu-upgrade-test: software-upgrade-test
667
TorstenThiemef3e492c2021-11-08 15:25:48 +0000668# Requirement: Pass ONU image details in following parameters
669# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
670onu-upgrade-test-multiolt-kind-att: ROBOT_MISC_ARGS += -e notready -i functionalMultipleONUs
671onu-upgrade-test-multiolt-kind-att: ROBOT_FILE := ONU_Upgrade.robot
672onu-upgrade-test-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
673onu-upgrade-test-multiolt-kind-att: software-upgrade-test
674
TorstenThieme0c8cc6f2022-02-16 13:48:21 +0000675# Voltha openonu MIB Audit tests att workflow single kind
676onu-mib-audit-test-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
677onu-mib-audit-test-single-kind-att: voltha-onu-mib-audit-tests
678
679# Voltha openonu MIB Audit tests t workflow single kind
680onu-mib-audit-test-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
681onu-mib-audit-test-single-kind-dt: voltha-onu-mib-audit-tests
682
683# Voltha openonu MIB Audit tests tt workflow single kind
684onu-mib-audit-test-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
685onu-mib-audit-test-single-kind-tt: voltha-onu-mib-audit-tests
686
687# Voltha openonu MIB Audit tests att workflow multiple OLTs
688onu-mib-audit-test-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
689onu-mib-audit-test-multiolt-kind-att: voltha-onu-mib-audit-tests
690
691# Voltha openonu MIB Audit tests tt workflow multiple OLTs
692onu-mib-audit-test-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
693onu-mib-audit-test-multiolt-kind-dt: voltha-onu-mib-audit-tests
694
695# Voltha openonu MIB Audit tests tt workflow multiple OLTs
696onu-mib-audit-test-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
697onu-mib-audit-test-multiolt-kind-tt: voltha-onu-mib-audit-tests
698
699voltha-onu-mib-audit-tests: ROBOT_MISC_ARGS += -i functional -e notready --noncritical non-critical
700voltha-onu-mib-audit-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
701voltha-onu-mib-audit-tests: ROBOT_FILE := Voltha_ONUMibAudit.robot
702voltha-onu-mib-audit-tests: openonu-go-adapter-tests
703
TorstenThieme0fa54432023-02-14 13:27:20 +0000704# Voltha Components Memory Leak tests dt workflow 1 OLT 1 PON 2 ONUs
705memory-leak-test-single-pon-multi-onu-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_MULTI_ONU_FILE)
706memory-leak-test-single-pon-multi-onu-dt: voltha-memory-leak-tests
TorstenThieme700ccbf2022-02-11 10:24:05 +0000707
708voltha-memory-leak-tests: ROBOT_MISC_ARGS += -i functionalMemoryLeak -e notready --noncritical non-critical
709voltha-memory-leak-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
710voltha-memory-leak-tests: ROBOT_FILE := VOLTHA_Memory_Leak_Tests.robot
711voltha-memory-leak-tests: voltha-memory-leak-test
712
TorstenThiemed9cc06e2022-11-09 12:12:46 +0000713# Voltha openonu robustness tests att workflow
714onu-robustness-test-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
715onu-robustness-test-single-kind-att: ROBOT_MISC_ARGS += -i functional
716onu-robustness-test-single-kind-att: voltha-onu-robustness-tests
717
718# Voltha openonu robustness tests dt workflow
719onu-robustness-test-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
720onu-robustness-test-single-kind-dt: ROBOT_MISC_ARGS += -i functional
721onu-robustness-test-single-kind-dt: voltha-onu-robustness-tests
722
723# Voltha openonu robustness tests tt workflow
724onu-robustness-test-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
725onu-robustness-test-single-kind-tt: ROBOT_MISC_ARGS += -i functional
726onu-robustness-test-single-kind-tt: voltha-onu-robustness-tests
727
728# Voltha openonu robustness tests multi-uni tt workflow
729onu-robustness-test-multi-uni-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
730onu-robustness-test-multi-uni-kind-tt: ROBOT_MISC_ARGS += -v unitag_sub:True -i functionalMultiUni
731onu-robustness-test-multi-uni-kind-tt: voltha-onu-robustness-tests
732
733voltha-onu-robustness-tests: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
734voltha-onu-robustness-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
735voltha-onu-robustness-tests: ROBOT_FILE := Voltha_ONUErrorTests.robot
736voltha-onu-robustness-tests: openonu-go-adapter-tests
737
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400738software-upgrade-test: $(venv-activate-patched)
739 $(activate) \
740 && cd tests/software-upgrades \
741 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000742
Matteo Scandoloab48f9e2021-06-11 17:08:00 +0200743voltha-dt-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Hardik Windlass79b40ff2020-06-11 22:55:47 +0530744
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400745voltha-dt-test: $(venv-activate-patched)
746 $(activate) \
747 && cd tests/dt-workflow \
748 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Hardik Windlassa3d04b92020-02-17 15:06:05 +0000749
Emrehan UZUNd6f85892021-07-01 13:54:26 +0000750voltha-tt-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Hardik Windlass43118692020-07-01 22:16:47 +0530751
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400752voltha-tt-test: $(venv-activate-patched)
753 $(activate) \
754 && cd tests/tt-workflow \
755 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Hardik Windlass43118692020-07-01 22:16:47 +0530756
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200757voltha-tim-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
758
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400759voltha-tim-test: $(venv-activate-patched)
760 $(activate) \
761 && cd tests/tim-workflow \
762 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200763
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400764voltha-scale-test: $(venv-activate-patched)
765 $(activate) \
766 && cd tests/scale \
767 && robot $(ROBOT_MISC_ARGS) Voltha_Scale_Tests.robot
Matteo Scandolo142e6272020-04-29 17:36:59 -0700768
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400769openonu-go-adapter-tests: $(venv-activate-patched)
770 $(activate) \
771 && cd tests/openonu-go-adapter \
772 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
TorstenThieme1619db22020-04-03 12:01:15 +0000773
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200774voltha-bbf-adapter-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400775voltha-bbf-adapter-test: $(venv-activate-patched)
776 $(activate) \
777 && cd tests/bbf-adapter \
778 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200779
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400780voltha-memory-leak-test :$(venv-activate-patched)
781 $(activate) \
782 && cd tests/memory-leak \
783 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
784
785## -----------------------------------------------------------------------
786## -----------------------------------------------------------------------
787help ::
788 @echo ' voltha-memory-leak-test Test suite'
TorstenThieme1619db22020-04-03 12:01:15 +0000789
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700790# self-test, lint, and setup targets
791
Joey Armstrong83874cc2022-11-26 09:40:08 -0500792# -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700793# virtualenv for the robot tools
Andy Bavier952b95b2020-03-06 09:53:42 -0700794# VOL-2724 Invoke pip via python3 to avoid pathname too long on QA jobs
Joey Armstrong83874cc2022-11-26 09:40:08 -0500795# Verify installation: make lint -or- make test
796# vol-4874 - python_310_migration.sh
797# -----------------------------------------------------------------------
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400798vst_venv : $(venv-activate-patched)# # verify not needed then remove
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700799
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400800##----------------##
Joey Armstrong57bd70f2023-01-12 05:25:51 -0500801##---] TEST [---##
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400802##----------------##
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700803test: lint
804
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700805# tidy target will be more useful once issue with removing leading comments
806# is resolved: https://github.com/robotframework/robotframework/issues/3263
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400807tidy-robot: $(venv-activate-patched)
808 $(activate) \
809 && python -m robot.tidy --inplace $(ROBOT_FILES);
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700810
811## Variables for gendocs
812TEST_SOURCE := $(wildcard tests/*/*.robot)
813TEST_BASENAME := $(basename $(TEST_SOURCE))
814TEST_DIRS := $(dir $(TEST_SOURCE))
815
Joey Armstrong83874cc2022-11-26 09:40:08 -0500816LIB_SOURCE := $(wildcard libraries/*.robot)
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700817LIB_BASENAME := $(basename $(LIB_SOURCE))
Joey Armstrong83874cc2022-11-26 09:40:08 -0500818LIB_DIRS := $(sort $(dir $(LIB_SOURCE)))
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700819
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400820## -----------------------------------------------------------------------
821## -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700822.PHONY: gendocs lint test
823# In future explore use of --docformat REST - integration w/Sphinx?
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400824gendocs: $(venv-activate-patched)
825
Joey Armstronga45431a2022-12-01 17:49:54 -0500826 $(HIDE)echo " ** $(make) $@: ENTER"
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400827
828 $(activate) \
829 && set -u \
830 && echo \
831 && echo " ** $(make) $@: robot.libdoc" \
832 && mkdir -pv $(addprefix $@/,$(LIB_DIRS)) \
833 && for dir in $(LIB_BASENAME); do\
834 python -m robot.libdoc --format HTML $$dir.robot $@/$$dir.html ;\
835 done \
836 && echo \
837 && echo " ** $(make) $@: robot.testdoc" \
838 && mkdir -vp $(addprefix $@/,$(TEST_DIRS)) \
839 && for dir in $(TEST_BASENAME); do\
hwchiu0601ec72019-10-08 00:04:43 +0000840 python -m robot.testdoc $$dir.robot $@/$$dir.html ;\
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400841 done
842
Joey Armstronga45431a2022-12-01 17:49:54 -0500843 $(HIDE)echo " ** $(make) $@: LEAVE"
Zack Williamsec53a1b2019-09-16 15:50:52 -0700844
Joey Armstrong83874cc2022-11-26 09:40:08 -0500845## -----------------------------------------------------------------------
846## -----------------------------------------------------------------------
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400847help ::
848 @echo ' gendocs Generate robot test framework documentation'
849
850## -----------------------------------------------------------------------
851## -----------------------------------------------------------------------
852clean ::
Joey Armstrong83874cc2022-11-26 09:40:08 -0500853 $(RM) -r gendocs
854 find . -name output.xml -print # no action performed ?
Zack Williamsec53a1b2019-09-16 15:50:52 -0700855
Joey Armstrong83874cc2022-11-26 09:40:08 -0500856## -----------------------------------------------------------------------
857## -----------------------------------------------------------------------
Scott Baker60e570d2020-02-02 22:10:13 -0800858voltctl-docker-image-build:
859 cd docker && docker build -t opencord/voltctl:local -f Dockerfile.voltctl .
860
Joey Armstrong9684bea2023-07-19 12:04:09 -0400861## -----------------------------------------------------------------------
862## -----------------------------------------------------------------------
Scott Baker60e570d2020-02-02 22:10:13 -0800863voltctl-docker-image-install-kind:
Matteo Scandolo10acf562021-05-03 15:35:16 -0700864 @if [ "`kind get clusters | grep kind`" = '' ]; then echo "no kind cluster found" && exit 1; fi
865 kind load docker-image --name `kind get clusters | grep kind` opencord/voltctl:local
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400866
Joey Armstrong9684bea2023-07-19 12:04:09 -0400867## -----------------------------------------------------------------------
868## Intent: [yuck] replace with a standalone reusable installer 4script
869## -----------------------------------------------------------------------
870.PHONY: voltctl-download-url
871voltctl-download-url:
872 curl --silent https://api.github.com/repos/opencord/voltctl/releases/latest \
873 | grep 'browser_download_url' \
874 | grep 'linux-amd64'
875
876# [latest] https://github.com/opencord/voltctl/releases/download/untagged-cd611c39178f25b95a87/voltctl-1.9.1-linux-amd64
877
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400878# [EOF]