blob: 01ff85074a22ee0c7c3a2d31bdbf5f2dfa43df08 [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 Armstrongfc2067f2022-10-11 23:04:49 -040020TOP ?= .
21MAKEDIR ?= $(TOP)/makefiles
22
Joey Armstrong83874cc2022-11-26 09:40:08 -050023# Assign early: altered by include
Zack Williamsa8fe75a2020-01-10 14:25:27 -070024ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
Kailash92764922019-07-25 08:21:39 -070025
Joey Armstrong83874cc2022-11-26 09:40:08 -050026##--------------------##
27##---] INCLUDES [---##
28##--------------------##
Joey Armstrong57bd70f2023-01-12 05:25:51 -050029include $(MAKEDIR)/include.mk
Joey Armstrong83874cc2022-11-26 09:40:08 -050030include $(MAKEDIR)/patches/include.mk
31
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
Andrea Speranza8b6f46f2022-08-23 14:22:15 +020070ROBOT_SANITY_BBF_ADPATER_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-bbf-adapter.yaml
71ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE ?= $(ROOT_DIR)/tests/data/bbsim-bbf-adapter_addDelete_tests.yaml
TorstenThieme0fa54432023-02-14 13:27:20 +000072ROBOT_SANITY_DT_SINGLE_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-1OLTx1PONx2ONU.yaml
Zack Williamsa8fe75a2020-01-10 14:25:27 -070073
Gilles Depatie45fbe042019-11-11 17:10:06 -050074# for backwards compatibility
75sanity-kind: sanity-single-kind
76
Matteo Scandolod7ca7f22021-01-26 14:10:37 -080077# to simplify ci
78sanity-kind-att: sanity-single-kind
79
Hardik Windlass1ed2eee2021-06-25 09:51:03 +000080# ATT Multi-UNI Sanity Target
81sanity-kind-multiuni-att: ROBOT_MISC_ARGS += -X -i sanity $(ROBOT_DEBUG_LOG_OPT)
82sanity-kind-multiuni-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
83sanity-kind-multiuni-att: ROBOT_FILE := Voltha_PODTests.robot
84sanity-kind-multiuni-att: voltha-test
85
86# ATT Multi-UNI Functional Suite Target
87functional-single-kind-multiuni-att: ROBOT_MISC_ARGS += -X -i sanityORmulti-uni $(ROBOT_DEBUG_LOG_OPT)
88functional-single-kind-multiuni-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
89functional-single-kind-multiuni-att: ROBOT_FILE := Voltha_PODTests.robot
90functional-single-kind-multiuni-att: voltha-test
91
Matteo Scandolo142e6272020-04-29 17:36:59 -070092# for scale pipeline
Hardik Windlass513afd12021-02-03 15:19:46 +000093voltha-scale: ROBOT_MISC_ARGS += -i activation -v NAMESPACE:voltha $(ROBOT_DEBUG_LOG_OPT)
Matteo Scandolo142e6272020-04-29 17:36:59 -070094voltha-scale: voltha-scale-test
95
Hardik Windlassf8b3ee62022-01-24 16:36:32 +000096# for onu-upgrade scale pipeline
97# Requirement: Pass ONU image details in following parameters
98# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
99voltha-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)
100voltha-scale-onu-upgrade: voltha-scale-test
101
Hardik Windlassa3d04b92020-02-17 15:06:05 +0000102# target to invoke DT Workflow Sanity
103sanity-kind-dt: ROBOT_MISC_ARGS += -i sanityDt $(ROBOT_DEBUG_LOG_OPT)
104sanity-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
105sanity-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
106sanity-kind-dt: voltha-dt-test
107
bharat raj58488b32023-05-11 22:46:18 +0530108# target to invoke DT Workflow Sanity for VGC
109sanity-kind-dt-vgc: ROBOT_MISC_ARGS += -i sanityDt $(ROBOT_DEBUG_LOG_OPT)
110sanity-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE_VGC)
111sanity-kind-dt-vgc: ROBOT_FILE := Voltha_DT_PODTests_VGC.robot
112sanity-kind-dt-vgc: voltha-dt-test
113
Hardik Windlassa7b34be2022-03-22 17:28:31 +0000114# target to invoke DT FTTB Workflow Sanity
115sanity-kind-dt-fttb: ROBOT_MISC_ARGS += -i sanityDtFttb $(ROBOT_DEBUG_LOG_OPT)
116sanity-kind-dt-fttb: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE)
117sanity-kind-dt-fttb: ROBOT_FILE := Voltha_DT_FTTB_Tests.robot
118sanity-kind-dt-fttb: voltha-dt-test
119
bharat raj58488b32023-05-11 22:46:18 +0530120# target to invoke DT FTTB Workflow Sanity for VGC
121sanity-kind-dt-fttb-vgc: ROBOT_MISC_ARGS += -i sanityDtFttb $(ROBOT_DEBUG_LOG_OPT)
122sanity-kind-dt-fttb-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE_VGC)
123sanity-kind-dt-fttb-vgc: ROBOT_FILE := Voltha_DT_FTTB_Tests_VGC.robot
124sanity-kind-dt-fttb-vgc: voltha-dt-test
125
Hardik Windlassd6aa0822020-06-29 20:18:12 +0530126functional-single-kind: ROBOT_MISC_ARGS += -i sanityORfunctional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Andy Bavier33e6dd32020-01-16 13:35:20 -0700127functional-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
128functional-single-kind: bbsim-kind
129
Matteo Scandolod7ca7f22021-01-26 14:10:37 -0800130# to simplify ci
131functional-single-kind-att: functional-single-kind
132
Hardik Windlass35706ba2020-02-20 08:16:42 +0000133# target to invoke DT Workflow Functional scenarios
Hardik Windlassd6aa0822020-06-29 20:18:12 +0530134functional-single-kind-dt: ROBOT_MISC_ARGS += -i sanityDtORfunctionalDt -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Hardik Windlass35706ba2020-02-20 08:16:42 +0000135functional-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
136functional-single-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
137functional-single-kind-dt: voltha-dt-test
138
bharat raj58488b32023-05-11 22:46:18 +0530139# target to invoke DT Workflow Functional scenarios
140functional-single-kind-dt-vgc: ROBOT_MISC_ARGS += -i sanityDtORfunctionalDt -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
141functional-single-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE_VGC)
142functional-single-kind-dt-vgc: ROBOT_FILE := Voltha_DT_PODTests_VGC.robot
143functional-single-kind-dt-vgc: voltha-dt-test
144
145
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700146# target to invoke TT Workflow Sanity
Hardik Windlass43118692020-07-01 22:16:47 +0530147sanity-kind-tt: ROBOT_MISC_ARGS += -i sanityTT $(ROBOT_DEBUG_LOG_OPT)
148sanity-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
149sanity-kind-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
150sanity-kind-tt: voltha-tt-test
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700151
Hardik Windlassc609eb02022-02-22 11:28:37 +0000152sanity-kind-tt-maclearning: ROBOT_MISC_ARGS += -i sanityTT -v with_maclearning:True $(ROBOT_DEBUG_LOG_OPT)
153sanity-kind-tt-maclearning: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
154sanity-kind-tt-maclearning: ROBOT_FILE := Voltha_TT_PODTests.robot
155sanity-kind-tt-maclearning: voltha-tt-test
156
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000157sanity-kind-multiuni-tt: ROBOT_MISC_ARGS += -i sanityTT $(ROBOT_DEBUG_LOG_OPT)
158sanity-kind-multiuni-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
159sanity-kind-multiuni-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
160sanity-kind-multiuni-tt: voltha-tt-test
161
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700162# target to invoke TT Workflow Functional scenarios
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000163functional-single-kind-tt: ROBOT_MISC_ARGS += -i sanityTTORfunctionalTT -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700164functional-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
165functional-single-kind-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
166functional-single-kind-tt: voltha-tt-test
167
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000168functional-single-kind-multiuni-tt: ROBOT_MISC_ARGS += -i sanityTTORfunctionalTT -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
169functional-single-kind-multiuni-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
170functional-single-kind-multiuni-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
171functional-single-kind-multiuni-tt: voltha-tt-test
172
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200173# target to invoke TIM Workflow Sanity
174sanity-kind-tim: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
175sanity-kind-tim: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_SINGLE_PON_FILE)
176sanity-kind-tim: ROBOT_FILE := Voltha_TIM_PODTests.robot
177sanity-kind-tim: voltha-tim-test
178
179sanity-kind-tim-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
180sanity-kind-tim-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_SINGLE_PON_MULTI_ONU_FILE)
181sanity-kind-tim-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
182sanity-kind-tim-multi-onu: voltha-tim-test
183
184sanity-kind-tim-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
185sanity-kind-tim-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MULTI_PON_MULTI_ONU_FILE)
186sanity-kind-tim-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
187sanity-kind-tim-multi-pon-multi-onu: voltha-tim-test
188
189sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
190sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE)
191sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
192sanity-kind-tim-multi-olt-multi-pon-multi-onu: voltha-tim-test
193
194
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000195# target to invoke multiple OLTs Functional scenarios
Suchitra Vemuri2a6975a2020-11-25 12:49:38 -0800196functional-multi-olt: ROBOT_MISC_ARGS += -i sanityORfunctional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000197functional-multi-olt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800198functional-multi-olt: ROBOT_FILE := Voltha_PODTests.robot
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000199functional-multi-olt: voltha-test
200
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000201functional-multiuni-multiolt-att: ROBOT_MISC_ARGS += -X -i sanityORmulti-uni $(ROBOT_DEBUG_LOG_OPT)
202functional-multiuni-multiolt-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
203functional-multiuni-multiolt-att: ROBOT_FILE := Voltha_PODTests.robot
204functional-multiuni-multiolt-att: voltha-test
205
TorstenThieme90a99f82021-05-05 09:17:37 +0000206# target to invoke test with openonu go adapter applying 1T1GEM tech-profile at single ONU
2071t1gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T1GEM
2081t1gem-openonu-go-adapter-test: openonu-go-adapter-test
209
TorstenThiemefe7099e2021-01-29 08:41:04 +0000210# target to invoke test with openonu go adapter applying 1T4GEM tech-profile at single ONU
2111t4gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T4GEM
2121t4gem-openonu-go-adapter-test: openonu-go-adapter-test
213
214# target to invoke test with openonu go adapter applying 1T8GEM tech-profile at single ONU
2151t8gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T8GEM
2161t8gem-openonu-go-adapter-test: openonu-go-adapter-test
217
TorstenThieme1619db22020-04-03 12:01:15 +0000218# target to invoke openonu go adapter
TorstenThieme66c91a82020-10-19 13:37:53 +0000219openonu-go-adapter-test: ROBOT_MISC_ARGS += -v state2test:omci-flows-pushed -v testmode:SingleStateTime
Hardik Windlass9e3db232021-10-14 07:10:47 +0000220openonu-go-adapter-test: ROBOT_MISC_ARGS += -i sanityOnuGo -i functionalOnuGo
TorstenThieme41097be2021-07-06 09:52:50 +0000221openonu-go-adapter-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme1619db22020-04-03 12:01:15 +0000222openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
223openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUStateTests.robot
TorstenThieme89caa142020-10-05 08:20:31 +0000224openonu-go-adapter-test: openonu-go-adapter-tests
TorstenThieme1619db22020-04-03 12:01:15 +0000225
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200226# target to invoke bbf adapter
227bbf-adapter: ROBOT_MISC_ARGS += -i sanityBbfAdapter $(ROBOT_DEBUG_LOG_OPT)
228bbf-adapter: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_SINGLE_PON_FILE)
229bbf-adapter: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
230bbf-adapter: voltha-bbf-adapter-test
231
232bbf-adapter-functionality: ROBOT_MISC_ARGS += -i bbfAdapterFunctionality $(ROBOT_DEBUG_LOG_OPT)
233bbf-adapter-functionality: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE)
234bbf-adapter-functionality: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
235bbf-adapter-functionality: voltha-bbf-adapter-test
236
237bbf-adapter-functionality-single: ROBOT_MISC_ARGS += -i bbfAdapterFunctionalitySingleTest $(ROBOT_DEBUG_LOG_OPT)
238bbf-adapter-functionality-single: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE)
239bbf-adapter-functionality-single: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
240bbf-adapter-functionality-single: voltha-bbf-adapter-test
241
TorstenThieme89caa142020-10-05 08:20:31 +0000242# target to invoke test with openonu go adapter applying MIB-Upload-Templating
Hardik Windlass9e3db232021-10-14 07:10:47 +0000243mib-upload-templating-openonu-go-adapter-test: ROBOT_MISC_ARGS += -i functionalOnuGo
TorstenThieme5db695e2022-04-01 08:19:05 +0000244mib-upload-templating-openonu-go-adapter-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme89caa142020-10-05 08:20:31 +0000245mib-upload-templating-openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
246mib-upload-templating-openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUTemplateTests.robot
247mib-upload-templating-openonu-go-adapter-test: openonu-go-adapter-tests
TorstenThieme280c3802020-08-07 07:07:42 +0000248
TorstenThieme53450ff2021-05-11 09:44:33 +0000249# target to invoke test with openonu go adapter applying 1T8GEM tech-profile at single ONU with OMCI hardening
250# timeout is determined for omci_response_rate=9 and omci_timeout=1s
251openonu-go-adapter-omci-hardening-passed-test: ROBOT_MISC_ARGS += -v timeout:180s -v techprofile:1T8GEM
252openonu-go-adapter-omci-hardening-passed-test: openonu-go-adapter-test
253
254# target to invoke openonu go adapter failed state test at single ONU with OMCI hardening
255# test should show in case of too small omci_response_rate (<=7) in BBSIM that OMCI hardening does not work
256# test is PASS when ONU does not leave state 'starting-openomci'
Hardik Windlass9e3db232021-10-14 07:10:47 +0000257openonu-go-adapter-omci-hardening-failed-test: ROBOT_MISC_ARGS += -v timeout:300s -i NegativeStateTestOnuGo
TorstenThieme5db695e2022-04-01 08:19:05 +0000258openonu-go-adapter-omci-hardening-failed-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme53450ff2021-05-11 09:44:33 +0000259openonu-go-adapter-omci-hardening-failed-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
260openonu-go-adapter-omci-hardening-failed-test: ROBOT_FILE := Voltha_ONUNegativeStateTests.robot
261openonu-go-adapter-omci-hardening-failed-test: openonu-go-adapter-tests
262
TorstenThieme379c3da2021-03-23 10:27:32 +0000263# target to invoke reconcile tests with openonu go adapter at single ONU with ATT workflow (default workflow)
TorstenThieme90a99f82021-05-05 09:17:37 +0000264reconcile-openonu-go-adapter-test-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
265reconcile-openonu-go-adapter-test-att: reconcile-openonu-go-adapter-tests-att
TorstenThieme3d8bf552021-02-08 08:41:52 +0000266
TorstenThiemefe7099e2021-01-29 08:41:04 +0000267# target to invoke reconcile tests with openonu go adapter at single ONU with DT workflow
TorstenThieme3d8bf552021-02-08 08:41:52 +0000268reconcile-openonu-go-adapter-test-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
TorstenThieme379c3da2021-03-23 10:27:32 +0000269reconcile-openonu-go-adapter-test-dt: reconcile-openonu-go-adapter-tests-dt
TorstenThiemefe7099e2021-01-29 08:41:04 +0000270
271# target to invoke reconcile tests with openonu go adapter at single ONU with TT workflow
TorstenThieme3d8bf552021-02-08 08:41:52 +0000272reconcile-openonu-go-adapter-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
TorstenThieme379c3da2021-03-23 10:27:32 +0000273reconcile-openonu-go-adapter-test-tt: reconcile-openonu-go-adapter-tests-tt
TorstenThiemefe7099e2021-01-29 08:41:04 +0000274
TorstenThieme00fe8262022-01-19 10:43:07 +0000275# target to invoke reconcile tests with openonu go adapter at single ONU multi UNI with TT workflow
276reconcile-openonu-go-adapter-multi-uni-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
277reconcile-openonu-go-adapter-multi-uni-test-tt: ROBOT_MISC_ARGS += -v unitag_sub:True
278reconcile-openonu-go-adapter-multi-uni-test-tt: reconcile-openonu-go-adapter-tests-tt
279
TorstenThieme379c3da2021-03-23 10:27:32 +0000280# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with ATT workflow (default workflow)
TorstenThieme90a99f82021-05-05 09:17:37 +0000281reconcile-openonu-go-adapter-multi-olt-test-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
282reconcile-openonu-go-adapter-multi-olt-test-att: reconcile-openonu-go-adapter-tests-att
TorstenThieme379c3da2021-03-23 10:27:32 +0000283
284# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with DT workflow
285reconcile-openonu-go-adapter-multi-olt-test-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
286reconcile-openonu-go-adapter-multi-olt-test-dt: reconcile-openonu-go-adapter-tests-dt
287
288# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with TT workflow
289reconcile-openonu-go-adapter-multi-olt-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
290reconcile-openonu-go-adapter-multi-olt-test-tt: reconcile-openonu-go-adapter-tests-tt
291
TorstenThieme00fe8262022-01-19 10:43:07 +0000292# target to invoke reconcile tests with openonu go adapter with multiple OLTs multi UNI scenario with TT workflow
293reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_MULTIPLE_OLT_FILE)
294reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: ROBOT_MISC_ARGS += -v unitag_sub:True
295reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: reconcile-openonu-go-adapter-tests-tt
296
TorstenThieme90a99f82021-05-05 09:17:37 +0000297# target to invoke reconcile tests with openonu go adapter with ATT workflow
298reconcile-openonu-go-adapter-tests-att: ROBOT_MISC_ARGS += -v workflow:ATT
299reconcile-openonu-go-adapter-tests-att: reconcile-openonu-go-adapter-tests
300
TorstenThieme379c3da2021-03-23 10:27:32 +0000301# target to invoke reconcile tests with openonu go adapter with DT workflow
302reconcile-openonu-go-adapter-tests-dt: ROBOT_MISC_ARGS += -v workflow:DT
303reconcile-openonu-go-adapter-tests-dt: reconcile-openonu-go-adapter-tests
304
305# target to invoke reconcile tests with openonu go adapter with TT workflow
306reconcile-openonu-go-adapter-tests-tt: ROBOT_MISC_ARGS += -v workflow:TT
307reconcile-openonu-go-adapter-tests-tt: reconcile-openonu-go-adapter-tests
308
309# target to invoke reconcile tests with openonu go adapter at single ONU resp. multiple OLTs
Hardik Windlass9e3db232021-10-14 07:10:47 +0000310reconcile-openonu-go-adapter-tests: ROBOT_MISC_ARGS += -i functionalOnuGo
TorstenThieme0ec95eb2021-11-23 14:56:26 +0000311reconcile-openonu-go-adapter-tests: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme3d8bf552021-02-08 08:41:52 +0000312reconcile-openonu-go-adapter-tests: ROBOT_FILE := Voltha_ONUReconcileTests.robot
313reconcile-openonu-go-adapter-tests: openonu-go-adapter-tests
TorstenThieme440b7c02020-12-18 15:42:57 +0000314
TorstenThieme90a99f82021-05-05 09:17:37 +0000315# target to invoke test with openonu go adapter applying 1T1GEM tech-profile with multiple OLTs scenarios with ATT workflow
3161t1gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T1GEM
3171t1gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
318
TorstenThiemefe7099e2021-01-29 08:41:04 +0000319# target to invoke test with openonu go adapter applying 1T4GEM tech-profile with multiple OLTs scenarios with ATT workflow
3201t4gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T4GEM
3211t4gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
TorstenThiemec3c23232021-01-13 13:06:31 +0000322
TorstenThiemefe7099e2021-01-29 08:41:04 +0000323# target to invoke test with openonu go adapter applying 1T8GEM tech-profile with multiple OLTs scenarios with ATT workflow
3241t8gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T8GEM
TorstenThieme3d8bf552021-02-08 08:41:52 +00003251t8gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
TorstenThiemefe7099e2021-01-29 08:41:04 +0000326
327# target to invoke test with openonu go adapter (applying 1T1GEM tech-profile) with multiple OLTs scenarios with ATT workflow
328openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v state2test:omci-flows-pushed -v testmode:SingleStateTime
Hardik Windlass9e3db232021-10-14 07:10:47 +0000329openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -i sanityOnuGo -i functionalOnuGo
TorstenThieme41097be2021-07-06 09:52:50 +0000330openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThiemefe7099e2021-01-29 08:41:04 +0000331openonu-go-adapter-multi-olt-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
332openonu-go-adapter-multi-olt-test: ROBOT_FILE := Voltha_ONUStateTests.robot
333openonu-go-adapter-multi-olt-test: openonu-go-adapter-tests
TorstenThieme70bc5262021-01-19 12:12:55 +0000334
David Bainbridgef81cd642019-11-20 00:14:47 +0000335sanity-single-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500336sanity-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
337sanity-single-kind: bbsim-kind
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000338
Hardik Windlass9e3db232021-10-14 07:10:47 +0000339sanity-bbsim-att: ROBOT_MISC_ARGS += -v workflow:ATT
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700340sanity-bbsim-att: sanity-bbsim
341
Hardik Windlass9e3db232021-10-14 07:10:47 +0000342sanity-bbsim-dt: ROBOT_MISC_ARGS += -v workflow:DT
Matteo Scandolof310d962021-05-18 10:35:48 -0700343sanity-bbsim-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
344sanity-bbsim-dt: ROBOT_FILE := Voltha_BBSimTests.robot
345sanity-bbsim-dt: voltha-bbsim-test
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700346
Hardik Windlass9e3db232021-10-14 07:10:47 +0000347sanity-bbsim-tt: ROBOT_MISC_ARGS += -v workflow:TT
Matteo Scandolof310d962021-05-18 10:35:48 -0700348sanity-bbsim-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
349sanity-bbsim-tt: ROBOT_FILE := Voltha_BBSimTests.robot
350sanity-bbsim-tt: voltha-bbsim-test
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700351
352sanity-bbsim: ROBOT_MISC_ARGS += -i bbsimSanity $(ROBOT_DEBUG_LOG_OPT)
353sanity-bbsim: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
354sanity-bbsim: ROBOT_FILE := Voltha_BBSimTests.robot
355sanity-bbsim: voltha-bbsim-test
356
Matteo Scandolo95b22152021-02-05 15:39:34 -0800357voltha-bbsim-test: vst_venv
358 source ./$</bin/activate ; set -u ;\
359 cd tests/bbsim ;\
360 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
361
David Bainbridge32c45632020-04-13 08:47:09 -0700362rwcore-restart-single-kind: ROBOT_MISC_ARGS += -X -i functionalANDrwcore-restart $(ROBOT_DEBUG_LOG_OPT)
David Bainbridgef81cd642019-11-20 00:14:47 +0000363rwcore-restart-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_FAIL_SINGLE_PON_FILE)
ubuntu6b6e7d42020-03-02 12:35:42 -0800364rwcore-restart-single-kind: ROBOT_FILE := Voltha_FailureScenarios.robot
David Bainbridgef81cd642019-11-20 00:14:47 +0000365rwcore-restart-single-kind: voltha-test
366
David Bainbridge3d6d5d32019-12-17 19:05:35 +0000367single-kind: ROBOT_MISC_ARGS += -X -i $(TEST_TAGS) $(ROBOT_DEBUG_LOG_OPT)
368single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
369single-kind: ROBOT_FILE := Voltha_PODTests.robot
370single-kind: voltha-test
371
David Bainbridgef81cd642019-11-20 00:14:47 +0000372sanity-multi-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500373sanity-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
374sanity-multi-kind: bbsim-kind
Andy Bavierba9866b2019-10-11 07:11:53 -0700375
Andy Bavier8da0e132020-04-13 10:25:16 -0700376functional-multi-kind: ROBOT_MISC_ARGS += -i sanityORfunctional $(ROBOT_DEBUG_LOG_OPT)
377functional-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
378functional-multi-kind: bbsim-kind
379
Suchitra Vemuri8a9c3782019-10-23 12:43:01 -0700380bbsim-kind: ROBOT_MISC_ARGS += -X
Gilles Depatie45fbe042019-11-11 17:10:06 -0500381bbsim-kind: ROBOT_FILE := Voltha_PODTests.robot
382bbsim-kind: voltha-test
383
David Bainbridgef81cd642019-11-20 00:14:47 +0000384scale-single-kind: ROBOT_MISC_ARGS += -i active $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500385scale-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SCALE_SINGLE_PON_FILE)
386scale-single-kind: bbsim-scale-kind
387
David Bainbridgef81cd642019-11-20 00:14:47 +0000388scale-multi-kind: ROBOT_MISC_ARGS += -i active $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500389scale-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SCALE_MULT_PON_FILE)
390scale-multi-kind: bbsim-scale-kind
391
David Bainbridgef81cd642019-11-20 00:14:47 +0000392bbsim-scale-kind: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500393bbsim-scale-kind: ROBOT_FILE := Voltha_ScaleFunctionalTests.robot
394bbsim-scale-kind: voltha-test
Zack Williamsec53a1b2019-09-16 15:50:52 -0700395
hwchiuab524f02020-02-03 23:24:19 +0000396#Only supported in full mode
397system-scale-test: ROBOT_FILE := K8S_SystemTest.robot
Matteo Scandolo66fe6452021-01-05 13:03:41 -0800398system-scale-test: ROBOT_MISC_ARGS += -X -i functional $(ROBOT_DEBUG_LOG_OPT) -v teardown_device:True
hwchiuab524f02020-02-03 23:24:19 +0000399system-scale-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
400system-scale-test: voltha-test
hwchiu11289122019-11-27 16:20:15 +0000401
hwchiu85695932019-12-18 08:05:25 +0000402failure-test: ROBOT_MISC_ARGS += -X -i FailureTest $(ROBOT_DEBUG_LOG_OPT)
hwchiu3d9a0982020-02-06 00:19:19 +0000403failure-test: ROBOT_FILE := K8S_SystemTest.robot
hwchiu85695932019-12-18 08:05:25 +0000404failure-test: ROBOT_CONFIG_FILE := $(ROBOT_FAIL_SINGLE_PON_FILE)
405failure-test: voltha-test
406
Scott Baker60e570d2020-02-02 22:10:13 -0800407bbsim-alarms-kind: ROBOT_MISC_ARGS += -X -i active
408bbsim-alarms-kind: ROBOT_FILE := Voltha_AlarmTests.robot
Andy Baviere118e052020-03-06 12:49:24 -0700409bbsim-alarms-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
Scott Baker60e570d2020-02-02 22:10:13 -0800410bbsim-alarms-kind: voltctl-docker-image-build voltctl-docker-image-install-kind voltha-test
411
Andy Bavierc1904dc2020-03-20 11:39:15 -0700412bbsim-errorscenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
413bbsim-errorscenarios: ROBOT_FILE := Voltha_ErrorScenarios.robot
414bbsim-errorscenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
415bbsim-errorscenarios: voltha-test
416
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000417bbsim-multiuni-errorscenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
418bbsim-multiuni-errorscenarios-att: ROBOT_FILE := Voltha_ErrorScenarios.robot
419bbsim-multiuni-errorscenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
420bbsim-multiuni-errorscenarios-att: voltha-test
421
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800422bbsim-multiolt-errorscenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
423bbsim-multiolt-errorscenarios: ROBOT_FILE := Voltha_ErrorScenarios.robot
424bbsim-multiolt-errorscenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
425bbsim-multiolt-errorscenarios: voltha-test
426
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000427bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
428bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_FILE := Voltha_ErrorScenarios.robot
429bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
430bbsim-multiuni-multiolt-errorscenarios-att: voltha-test
431
Hardik Windlasscbcca312020-04-20 21:46:11 +0530432bbsim-errorscenarios-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
433bbsim-errorscenarios-dt: ROBOT_FILE := Voltha_ErrorScenarios.robot
434bbsim-errorscenarios-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
435bbsim-errorscenarios-dt: voltha-test
436
Hardik Windlasse05e4712020-04-29 10:40:42 +0530437bbsim-failurescenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
Andy Bavier8da0e132020-04-13 10:25:16 -0700438bbsim-failurescenarios: ROBOT_FILE := Voltha_FailureScenarios.robot
439bbsim-failurescenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
440bbsim-failurescenarios: voltha-test
441
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000442bbsim-multiuni-failurescenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
443bbsim-multiuni-failurescenarios-att: ROBOT_FILE := Voltha_FailureScenarios.robot
444bbsim-multiuni-failurescenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
445bbsim-multiuni-failurescenarios-att: voltha-test
446
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800447bbsim-multiolt-failurescenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
448bbsim-multiolt-failurescenarios: ROBOT_FILE := Voltha_FailureScenarios.robot
449bbsim-multiolt-failurescenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
450bbsim-multiolt-failurescenarios: voltha-test
451
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000452bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
453bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_FILE := Voltha_FailureScenarios.robot
454bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
455bbsim-multiuni-multiolt-failurescenarios-att: voltha-test
456
Hardik Windlass5ceb84e2021-02-11 11:17:08 +0000457bbsim-multiolt-kind: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalReboot
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800458bbsim-multiolt-kind: ROBOT_FILE := Voltha_MultiOLT_Tests.robot
459bbsim-multiolt-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
460bbsim-multiolt-kind: voltha-test
461
Hardik Windlass5ceb84e2021-02-11 11:17:08 +0000462bbsim-multiolt-kind-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalRebootDt
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800463bbsim-multiolt-kind-dt: ROBOT_FILE := Voltha_DT_MultiOLT_Tests.robot
464bbsim-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
465bbsim-multiolt-kind-dt: voltha-dt-test
466
bharat raj58488b32023-05-11 22:46:18 +0530467bbsim-multiolt-kind-dt-vgc: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalRebootDt
468bbsim-multiolt-kind-dt-vgc: ROBOT_FILE := Voltha_DT_MultiOLT_Tests_VGC.robot
469bbsim-multiolt-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE_VGC)
470bbsim-multiolt-kind-dt-vgc: voltha-dt-test
471
472multiolt-kind-dt-vgc: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -i functionalDt
473multiolt-kind-dt-vgc: ROBOT_FILE := Voltha_DT_MultiOLT_Tests_VGC.robot
474multiolt-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE_VGC)
475multiolt-kind-dt-vgc: voltha-dt-test
476
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800477multiolt-kind-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -i functionalDt
478multiolt-kind-dt: ROBOT_FILE := Voltha_DT_MultiOLT_Tests.robot
479multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
480multiolt-kind-dt: voltha-dt-test
481
Hardik Windlass9df139e2020-04-24 14:54:54 +0530482bbsim-failurescenarios-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitchOnuRebootDt -e PhysicalOltRebootDt
483bbsim-failurescenarios-dt: ROBOT_FILE := Voltha_DT_FailureScenarios.robot
484bbsim-failurescenarios-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
485bbsim-failurescenarios-dt: voltha-dt-test
486
Hardik Windlassb1bda362021-11-24 11:54:36 +0000487bbsim-failurescenarios-tt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOltRebootTT -e dataplaneTT
TorstenThieme136ebf72021-02-26 14:27:07 +0000488bbsim-failurescenarios-tt: ROBOT_FILE := Voltha_TT_FailureScenarios.robot
489bbsim-failurescenarios-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
490bbsim-failurescenarios-tt: voltha-tt-test
491
Andrea Campanellaf1081572021-10-06 16:06:55 +0200492onos-ha-test: ROBOT_MISC_ARGS += -e notready -X $(ROBOT_DEBUG_LOG_OPT)
493onos-ha-test: ROBOT_FILE := Voltha_ONOSHATests.robot
494onos-ha-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
495onos-ha-test: voltha-test
496
Matteo Scandoloab48f9e2021-06-11 17:08:00 +0200497voltha-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
hwchiu11289122019-11-27 16:20:15 +0000498
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700499voltha-test: vst_venv
500 source ./$</bin/activate ; set -u ;\
501 cd tests/functional ;\
502 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
503
TorstenThiemef8f9a802020-12-16 15:25:25 +0000504bbsim-dmi-hw-management-test: ROBOT_MISC_ARGS += -e notreadyDMI -i functionalDMI -e bbsimUnimplementedDMI
505bbsim-dmi-hw-management-test: ROBOT_FILE := dmi-hw-management.robot
506bbsim-dmi-hw-management-test: ROBOT_CONFIG_FILE := $(ROBOT_DMI_SINGLE_BBSIM_FILE)
507bbsim-dmi-hw-management-test: voltha-dmi-test
uwe ottrembka504ca3e2020-11-23 12:02:20 +0100508
TorstenThiemef8f9a802020-12-16 15:25:25 +0000509voltha-dmi-hw-management-test: ROBOT_MISC_ARGS += -e notreadyDMI -i functionalDMI
510voltha-dmi-hw-management-test: ROBOT_FILE := dmi-hw-management.robot
511voltha-dmi-hw-management-test: ROBOT_CONFIG_FILE := $(ROBOT_DMI_SINGLE_ADTRAN_FILE)
512voltha-dmi-hw-management-test: voltha-dmi-test
513
514voltha-dmi-test: vst_venv
uwe ottrembka504ca3e2020-11-23 12:02:20 +0100515 source ./$</bin/activate ; set -u ;\
516 cd tests/dmi-interface ;\
517 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
518
TorstenThiemeff9c9142021-04-08 07:21:34 +0000519# target to invoke single ONU pm data scenarios in ATT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000520voltha-pm-data-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000521voltha-pm-data-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
522voltha-pm-data-single-kind-att: voltha-pm-data-tests
523
524# target to invoke single ONU pm data scenarios in DT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000525voltha-pm-data-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000526voltha-pm-data-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
527voltha-pm-data-single-kind-dt: voltha-pm-data-tests
528
529# target to invoke single ONU pm data scenarios in TT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000530voltha-pm-data-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
TorstenThieme90a99f82021-05-05 09:17:37 +0000531voltha-pm-data-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
532voltha-pm-data-single-kind-tt: voltha-pm-data-tests
TorstenThiemeff9c9142021-04-08 07:21:34 +0000533
534# target to invoke multiple OLTs pm data scenarios in ATT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000535voltha-pm-data-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000536voltha-pm-data-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
537voltha-pm-data-multiolt-kind-att: voltha-pm-data-tests
538
539# target to invoke multiple OLTs pm data scenarios in DT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000540voltha-pm-data-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000541voltha-pm-data-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
542voltha-pm-data-multiolt-kind-dt: voltha-pm-data-tests
543
544# target to invoke multiple OLTs pm data scenarios in TT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000545voltha-pm-data-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000546voltha-pm-data-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
547voltha-pm-data-multiolt-kind-tt: voltha-pm-data-tests
548
549voltha-pm-data-tests: ROBOT_MISC_ARGS += -i functional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
550voltha-pm-data-tests: ROBOT_PM_CONFIG_FILE := $(ROBOT_PM_DATA_FILE)
551voltha-pm-data-tests: ROBOT_FILE := Voltha_ONUPMTests.robot
552voltha-pm-data-tests: voltha-pm-data-test
553
554voltha-pm-data-test: vst_venv
555 source ./$</bin/activate ; set -u ;\
556 cd tests/pm-data ;\
557 robot -V $(ROBOT_CONFIG_FILE) -V $(ROBOT_PM_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
558
TorstenThieme1c1f5fa2021-06-18 13:40:30 +0000559# target to invoke single ONU OMCI Get scenarios in ATT workflow
560voltha-onu-omci-get-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
561voltha-onu-omci-get-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
562voltha-onu-omci-get-single-kind-att: voltha-onu-omci-get-tests
563
564# target to invoke single ONU OMCI Get scenarios in DT workflow
565voltha-onu-omci-get-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
566voltha-onu-omci-get-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
567voltha-onu-omci-get-single-kind-dt: voltha-onu-omci-get-tests
568
TorstenThiemea7315f12021-07-23 11:56:34 +0000569# target to invoke single ONU OMCI Get scenarios in TT workflow
TorstenThieme1c1f5fa2021-06-18 13:40:30 +0000570voltha-onu-omci-get-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
571voltha-onu-omci-get-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
572voltha-onu-omci-get-single-kind-tt: voltha-onu-omci-get-tests
573
574# target to invoke multiple OLTs OMCI Get scenarios in ATT workflow
575voltha-onu-omci-get-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
576voltha-onu-omci-get-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
577voltha-onu-omci-get-multiolt-kind-att: voltha-onu-omci-get-tests
578
579# target to invoke multiple OLTs OMCI Get scenarios in DT workflow
580voltha-onu-omci-get-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
581voltha-onu-omci-get-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
582voltha-onu-omci-get-multiolt-kind-dt: voltha-onu-omci-get-tests
583
584# target to invoke multiple OLTs OMCI Get scenarios in TT workflow
585voltha-onu-omci-get-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
586voltha-onu-omci-get-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
587voltha-onu-omci-get-multiolt-kind-tt: voltha-onu-omci-get-tests
588
589voltha-onu-omci-get-tests: ROBOT_MISC_ARGS += -i functionalOnuGo -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
590voltha-onu-omci-get-tests: ROBOT_FILE := Voltha_ONUOmciGetTest.robot
591voltha-onu-omci-get-tests: openonu-go-adapter-tests
592
TorstenThiemea7315f12021-07-23 11:56:34 +0000593# target to invoke single ONU Flows Check in ATT workflow
594voltha-onu-flows-check-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
595voltha-onu-flows-check-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
596voltha-onu-flows-check-single-kind-att: voltha-onu-flows-check-tests
597
598# target to invoke single ONU Flows Check scenarios in DT workflow
599voltha-onu-flows-check-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT -v techprofile:1T8GEM
600voltha-onu-flows-check-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
601voltha-onu-flows-check-single-kind-dt: voltha-onu-flows-check-tests
602
603# target to invoke single ONU Flows Check scenarios in TT workflow
604voltha-onu-flows-check-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT -v techprofile:1T4GEM
605voltha-onu-flows-check-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
606voltha-onu-flows-check-single-kind-tt: voltha-onu-flows-check-tests
607
608# target to invoke multiple OLTs Flows Check scenarios in ATT workflow
609voltha-onu-flows-check-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
610voltha-onu-flows-check-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
611voltha-onu-flows-check-multiolt-kind-att: voltha-onu-flows-check-tests
612
613# target to invoke multiple OLTs Flows Check scenarios in DT workflow
614voltha-onu-flows-check-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT -v techprofile:1T8GEM
615voltha-onu-flows-check-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
616voltha-onu-flows-check-multiolt-kind-dt: voltha-onu-flows-check-tests
617
618# target to invoke multiple OLTs Flows Check scenarios in TT workflow
619voltha-onu-flows-check-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT -v techprofile:1T4GEM
620voltha-onu-flows-check-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
621voltha-onu-flows-check-multiolt-kind-tt: voltha-onu-flows-check-tests
622
623voltha-onu-flows-check-tests: ROBOT_MISC_ARGS += -i functionalOnuGo -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
624voltha-onu-flows-check-tests: ROBOT_FILE := Voltha_ONUFlowChecks.robot
625voltha-onu-flows-check-tests: openonu-go-adapter-tests
626
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000627# 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 +0000628# <app-name>,<version>,<oar-url>*<app-name>,<version>,<oar-url>*
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000629onos-app-upgrade-test: ROBOT_MISC_ARGS += -e notready -i functional
630onos-app-upgrade-test: ROBOT_FILE := ONOS_AppsUpgrade.robot
Hardik Windlass17bd1142021-03-12 08:15:25 +0000631onos-app-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000632onos-app-upgrade-test: software-upgrade-test
633
634# 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 +0000635# <comp-label>,<comp-container>,<comp-image>*<comp-label>,<comp-container>,<comp-image>*
Hardik Windlass76f68212022-01-19 08:16:14 +0000636voltha-comp-upgrade-test: ROBOT_MISC_ARGS += -e notready -i VolthaCompMinorVerUpgrade
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000637voltha-comp-upgrade-test: ROBOT_FILE := Voltha_ComponentsUpgrade.robot
Hardik Windlass17bd1142021-03-12 08:15:25 +0000638voltha-comp-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000639voltha-comp-upgrade-test: software-upgrade-test
640
Hardik Windlass76f68212022-01-19 08:16:14 +0000641# Voltha Components to test for Software Upgrade need to be passed in the 'voltha_comps_under_test' variable in format:
642# <comp-label>,<comp-container>,<comp-image>*<comp-label>,<comp-container>,<comp-image>*
643voltha-comp-rolling-upgrade-test: ROBOT_MISC_ARGS += -e notready -i VolthaCompMinorVerRollingUpgrade
644voltha-comp-rolling-upgrade-test: ROBOT_FILE := Voltha_ComponentsUpgrade.robot
645voltha-comp-rolling-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
646voltha-comp-rolling-upgrade-test: software-upgrade-test
647
Hardik Windlass17bd1142021-03-12 08:15:25 +0000648# Requirement: Pass ONU image details in following parameters
Hardik Windlassba1bd272021-06-22 08:29:33 +0000649# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
Hardik Windlass17bd1142021-03-12 08:15:25 +0000650onu-upgrade-test: ROBOT_MISC_ARGS += -e notready -i functional
651onu-upgrade-test: ROBOT_FILE := ONU_Upgrade.robot
652onu-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
653onu-upgrade-test: software-upgrade-test
654
TorstenThiemef3e492c2021-11-08 15:25:48 +0000655# Requirement: Pass ONU image details in following parameters
656# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
657onu-upgrade-test-multiolt-kind-att: ROBOT_MISC_ARGS += -e notready -i functionalMultipleONUs
658onu-upgrade-test-multiolt-kind-att: ROBOT_FILE := ONU_Upgrade.robot
659onu-upgrade-test-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
660onu-upgrade-test-multiolt-kind-att: software-upgrade-test
661
TorstenThieme0c8cc6f2022-02-16 13:48:21 +0000662# Voltha openonu MIB Audit tests att workflow single kind
663onu-mib-audit-test-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
664onu-mib-audit-test-single-kind-att: voltha-onu-mib-audit-tests
665
666# Voltha openonu MIB Audit tests t workflow single kind
667onu-mib-audit-test-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
668onu-mib-audit-test-single-kind-dt: voltha-onu-mib-audit-tests
669
670# Voltha openonu MIB Audit tests tt workflow single kind
671onu-mib-audit-test-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
672onu-mib-audit-test-single-kind-tt: voltha-onu-mib-audit-tests
673
674# Voltha openonu MIB Audit tests att workflow multiple OLTs
675onu-mib-audit-test-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
676onu-mib-audit-test-multiolt-kind-att: voltha-onu-mib-audit-tests
677
678# Voltha openonu MIB Audit tests tt workflow multiple OLTs
679onu-mib-audit-test-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
680onu-mib-audit-test-multiolt-kind-dt: voltha-onu-mib-audit-tests
681
682# Voltha openonu MIB Audit tests tt workflow multiple OLTs
683onu-mib-audit-test-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
684onu-mib-audit-test-multiolt-kind-tt: voltha-onu-mib-audit-tests
685
686voltha-onu-mib-audit-tests: ROBOT_MISC_ARGS += -i functional -e notready --noncritical non-critical
687voltha-onu-mib-audit-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
688voltha-onu-mib-audit-tests: ROBOT_FILE := Voltha_ONUMibAudit.robot
689voltha-onu-mib-audit-tests: openonu-go-adapter-tests
690
TorstenThieme0fa54432023-02-14 13:27:20 +0000691# Voltha Components Memory Leak tests dt workflow 1 OLT 1 PON 2 ONUs
692memory-leak-test-single-pon-multi-onu-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_MULTI_ONU_FILE)
693memory-leak-test-single-pon-multi-onu-dt: voltha-memory-leak-tests
TorstenThieme700ccbf2022-02-11 10:24:05 +0000694
695voltha-memory-leak-tests: ROBOT_MISC_ARGS += -i functionalMemoryLeak -e notready --noncritical non-critical
696voltha-memory-leak-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
697voltha-memory-leak-tests: ROBOT_FILE := VOLTHA_Memory_Leak_Tests.robot
698voltha-memory-leak-tests: voltha-memory-leak-test
699
TorstenThiemed9cc06e2022-11-09 12:12:46 +0000700# Voltha openonu robustness tests att workflow
701onu-robustness-test-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
702onu-robustness-test-single-kind-att: ROBOT_MISC_ARGS += -i functional
703onu-robustness-test-single-kind-att: voltha-onu-robustness-tests
704
705# Voltha openonu robustness tests dt workflow
706onu-robustness-test-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
707onu-robustness-test-single-kind-dt: ROBOT_MISC_ARGS += -i functional
708onu-robustness-test-single-kind-dt: voltha-onu-robustness-tests
709
710# Voltha openonu robustness tests tt workflow
711onu-robustness-test-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
712onu-robustness-test-single-kind-tt: ROBOT_MISC_ARGS += -i functional
713onu-robustness-test-single-kind-tt: voltha-onu-robustness-tests
714
715# Voltha openonu robustness tests multi-uni tt workflow
716onu-robustness-test-multi-uni-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
717onu-robustness-test-multi-uni-kind-tt: ROBOT_MISC_ARGS += -v unitag_sub:True -i functionalMultiUni
718onu-robustness-test-multi-uni-kind-tt: voltha-onu-robustness-tests
719
720voltha-onu-robustness-tests: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
721voltha-onu-robustness-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
722voltha-onu-robustness-tests: ROBOT_FILE := Voltha_ONUErrorTests.robot
723voltha-onu-robustness-tests: openonu-go-adapter-tests
724
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000725software-upgrade-test: vst_venv
726 source ./$</bin/activate ; set -u ;\
727 cd tests/software-upgrades ;\
728 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
729
Matteo Scandoloab48f9e2021-06-11 17:08:00 +0200730voltha-dt-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Hardik Windlass79b40ff2020-06-11 22:55:47 +0530731
Hardik Windlassa3d04b92020-02-17 15:06:05 +0000732voltha-dt-test: vst_venv
733 source ./$</bin/activate ; set -u ;\
734 cd tests/dt-workflow ;\
735 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
736
Emrehan UZUNd6f85892021-07-01 13:54:26 +0000737voltha-tt-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Hardik Windlass43118692020-07-01 22:16:47 +0530738
739voltha-tt-test: vst_venv
740 source ./$</bin/activate ; set -u ;\
741 cd tests/tt-workflow ;\
742 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
743
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200744voltha-tim-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
745
746voltha-tim-test: vst_venv
747 source ./$</bin/activate ; set -u ;\
748 cd tests/tim-workflow ;\
749 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
750
Matteo Scandolo142e6272020-04-29 17:36:59 -0700751voltha-scale-test: vst_venv
752 source ./$</bin/activate ; set -u ;\
753 cd tests/scale ;\
754 robot $(ROBOT_MISC_ARGS) Voltha_Scale_Tests.robot
755
TorstenThieme89caa142020-10-05 08:20:31 +0000756openonu-go-adapter-tests: vst_venv
TorstenThieme1619db22020-04-03 12:01:15 +0000757 source ./$</bin/activate ; set -u ;\
758 cd tests/openonu-go-adapter ;\
759 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
760
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200761voltha-bbf-adapter-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
762voltha-bbf-adapter-test: vst_venv
763 source ./$</bin/activate ; set -u ;\
764 cd tests/bbf-adapter ;\
765 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
766
TorstenThieme700ccbf2022-02-11 10:24:05 +0000767voltha-memory-leak-test: vst_venv
768 source ./$</bin/activate ; set -u ;\
769 cd tests/memory-leak ;\
770 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
TorstenThieme1619db22020-04-03 12:01:15 +0000771
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700772# self-test, lint, and setup targets
773
Joey Armstrong83874cc2022-11-26 09:40:08 -0500774# -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700775# virtualenv for the robot tools
Andy Bavier952b95b2020-03-06 09:53:42 -0700776# VOL-2724 Invoke pip via python3 to avoid pathname too long on QA jobs
Joey Armstrong83874cc2022-11-26 09:40:08 -0500777# Verify installation: make lint -or- make test
778# vol-4874 - python_310_migration.sh
779# -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700780vst_venv:
Joey Armstrong83874cc2022-11-26 09:40:08 -0500781 @echo "============================="
782 @echo "Installing python virtual env"
783 @echo "============================="
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700784 virtualenv -p python3 $@ ;\
785 source ./$@/bin/activate ;\
Andy Baviere118e052020-03-06 12:49:24 -0700786 python -m pip install -r requirements.txt
Joey Armstrong83874cc2022-11-26 09:40:08 -0500787 @echo
788 @echo "========================================"
789 @echo "Applying python 3.10.x migration patches"
790 @echo "========================================"
791 ./patches/python_310_migration.sh 'apply'
Joey Armstronga45431a2022-12-01 17:49:54 -0500792 @echo
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700793
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400794##----------------##
Joey Armstrong57bd70f2023-01-12 05:25:51 -0500795##---] TEST [---##
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400796##----------------##
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700797test: lint
798
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700799# tidy target will be more useful once issue with removing leading comments
800# is resolved: https://github.com/robotframework/robotframework/issues/3263
801tidy-robot: vst_venv
802 source ./$</bin/activate ; set -u ;\
803 python -m robot.tidy --inplace $(ROBOT_FILES);
804
805## Variables for gendocs
806TEST_SOURCE := $(wildcard tests/*/*.robot)
807TEST_BASENAME := $(basename $(TEST_SOURCE))
808TEST_DIRS := $(dir $(TEST_SOURCE))
809
Joey Armstrong83874cc2022-11-26 09:40:08 -0500810LIB_SOURCE := $(wildcard libraries/*.robot)
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700811LIB_BASENAME := $(basename $(LIB_SOURCE))
Joey Armstrong83874cc2022-11-26 09:40:08 -0500812LIB_DIRS := $(sort $(dir $(LIB_SOURCE)))
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700813
814.PHONY: gendocs lint test
815# In future explore use of --docformat REST - integration w/Sphinx?
Zack Williamsec53a1b2019-09-16 15:50:52 -0700816gendocs: vst_venv
Joey Armstronga45431a2022-12-01 17:49:54 -0500817 $(HIDE)echo " ** $(make) $@: ENTER"
818 source ./$</bin/activate \
819 && set -u \
820 && echo \
821 && echo " ** $(make) $@: robot.libdoc" \
822 && mkdir -pv $(addprefix $@/,$(LIB_DIRS)) \
823 && for dir in $(LIB_BASENAME); do\
Joey Armstrong83874cc2022-11-26 09:40:08 -0500824 python -m robot.libdoc --format HTML $$dir.robot $@/$$dir.html ;\
Joey Armstronga45431a2022-12-01 17:49:54 -0500825 done \
826 && echo \
827 && echo " ** $(make) $@: robot.testdoc" \
828 && mkdir -vp $(addprefix $@/,$(TEST_DIRS)) \
829 && for dir in $(TEST_BASENAME); do\
hwchiu0601ec72019-10-08 00:04:43 +0000830 python -m robot.testdoc $$dir.robot $@/$$dir.html ;\
831 done
Joey Armstronga45431a2022-12-01 17:49:54 -0500832 $(HIDE)echo " ** $(make) $@: LEAVE"
Zack Williamsec53a1b2019-09-16 15:50:52 -0700833
Joey Armstrong83874cc2022-11-26 09:40:08 -0500834## -----------------------------------------------------------------------
835## -----------------------------------------------------------------------
Zack Williamsec53a1b2019-09-16 15:50:52 -0700836clean:
Joey Armstrong83874cc2022-11-26 09:40:08 -0500837 $(RM) -r gendocs
838 find . -name output.xml -print # no action performed ?
Zack Williamsec53a1b2019-09-16 15:50:52 -0700839
Joey Armstrong83874cc2022-11-26 09:40:08 -0500840clean-all sterile: clean
841 $(RM) -r vst_venv
Scott Baker60e570d2020-02-02 22:10:13 -0800842
Joey Armstrong83874cc2022-11-26 09:40:08 -0500843## -----------------------------------------------------------------------
844## -----------------------------------------------------------------------
Scott Baker60e570d2020-02-02 22:10:13 -0800845voltctl-docker-image-build:
846 cd docker && docker build -t opencord/voltctl:local -f Dockerfile.voltctl .
847
848voltctl-docker-image-install-kind:
Matteo Scandolo10acf562021-05-03 15:35:16 -0700849 @if [ "`kind get clusters | grep kind`" = '' ]; then echo "no kind cluster found" && exit 1; fi
850 kind load docker-image --name `kind get clusters | grep kind` opencord/voltctl:local
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400851
852# [EOF]