blob: 24d6433ad09e42ce61338f9209862727b07e7ca7 [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
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
Gilles Depatie45fbe042019-11-11 17:10:06 -050076# for backwards compatibility
77sanity-kind: sanity-single-kind
78
Matteo Scandolod7ca7f22021-01-26 14:10:37 -080079# to simplify ci
80sanity-kind-att: sanity-single-kind
81
Hardik Windlass1ed2eee2021-06-25 09:51:03 +000082# ATT Multi-UNI Sanity Target
83sanity-kind-multiuni-att: ROBOT_MISC_ARGS += -X -i sanity $(ROBOT_DEBUG_LOG_OPT)
84sanity-kind-multiuni-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
85sanity-kind-multiuni-att: ROBOT_FILE := Voltha_PODTests.robot
86sanity-kind-multiuni-att: voltha-test
87
88# ATT Multi-UNI Functional Suite Target
89functional-single-kind-multiuni-att: ROBOT_MISC_ARGS += -X -i sanityORmulti-uni $(ROBOT_DEBUG_LOG_OPT)
90functional-single-kind-multiuni-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
91functional-single-kind-multiuni-att: ROBOT_FILE := Voltha_PODTests.robot
92functional-single-kind-multiuni-att: voltha-test
93
Matteo Scandolo142e6272020-04-29 17:36:59 -070094# for scale pipeline
Hardik Windlass513afd12021-02-03 15:19:46 +000095voltha-scale: ROBOT_MISC_ARGS += -i activation -v NAMESPACE:voltha $(ROBOT_DEBUG_LOG_OPT)
Matteo Scandolo142e6272020-04-29 17:36:59 -070096voltha-scale: voltha-scale-test
97
Hardik Windlassf8b3ee62022-01-24 16:36:32 +000098# for onu-upgrade scale pipeline
99# Requirement: Pass ONU image details in following parameters
100# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
101voltha-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)
102voltha-scale-onu-upgrade: voltha-scale-test
103
Hardik Windlassa3d04b92020-02-17 15:06:05 +0000104# target to invoke DT Workflow Sanity
105sanity-kind-dt: ROBOT_MISC_ARGS += -i sanityDt $(ROBOT_DEBUG_LOG_OPT)
106sanity-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
107sanity-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
108sanity-kind-dt: voltha-dt-test
109
bharat raj58488b32023-05-11 22:46:18 +0530110# target to invoke DT Workflow Sanity for VGC
111sanity-kind-dt-vgc: ROBOT_MISC_ARGS += -i sanityDt $(ROBOT_DEBUG_LOG_OPT)
112sanity-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE_VGC)
113sanity-kind-dt-vgc: ROBOT_FILE := Voltha_DT_PODTests_VGC.robot
114sanity-kind-dt-vgc: voltha-dt-test
115
Hardik Windlassa7b34be2022-03-22 17:28:31 +0000116# target to invoke DT FTTB Workflow Sanity
117sanity-kind-dt-fttb: ROBOT_MISC_ARGS += -i sanityDtFttb $(ROBOT_DEBUG_LOG_OPT)
118sanity-kind-dt-fttb: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE)
119sanity-kind-dt-fttb: ROBOT_FILE := Voltha_DT_FTTB_Tests.robot
120sanity-kind-dt-fttb: voltha-dt-test
121
bharat raj58488b32023-05-11 22:46:18 +0530122# target to invoke DT FTTB Workflow Sanity for VGC
123sanity-kind-dt-fttb-vgc: ROBOT_MISC_ARGS += -i sanityDtFttb $(ROBOT_DEBUG_LOG_OPT)
124sanity-kind-dt-fttb-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE_VGC)
125sanity-kind-dt-fttb-vgc: ROBOT_FILE := Voltha_DT_FTTB_Tests_VGC.robot
126sanity-kind-dt-fttb-vgc: voltha-dt-test
127
Hardik Windlassd6aa0822020-06-29 20:18:12 +0530128functional-single-kind: ROBOT_MISC_ARGS += -i sanityORfunctional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Andy Bavier33e6dd32020-01-16 13:35:20 -0700129functional-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
130functional-single-kind: bbsim-kind
131
Matteo Scandolod7ca7f22021-01-26 14:10:37 -0800132# to simplify ci
133functional-single-kind-att: functional-single-kind
134
Hardik Windlass35706ba2020-02-20 08:16:42 +0000135# target to invoke DT Workflow Functional scenarios
Hardik Windlassd6aa0822020-06-29 20:18:12 +0530136functional-single-kind-dt: ROBOT_MISC_ARGS += -i sanityDtORfunctionalDt -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Hardik Windlass35706ba2020-02-20 08:16:42 +0000137functional-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
138functional-single-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
139functional-single-kind-dt: voltha-dt-test
140
bharat raj58488b32023-05-11 22:46:18 +0530141# target to invoke DT Workflow Functional scenarios
142functional-single-kind-dt-vgc: ROBOT_MISC_ARGS += -i sanityDtORfunctionalDt -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
143functional-single-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE_VGC)
144functional-single-kind-dt-vgc: ROBOT_FILE := Voltha_DT_PODTests_VGC.robot
145functional-single-kind-dt-vgc: voltha-dt-test
146
147
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700148# target to invoke TT Workflow Sanity
Hardik Windlass43118692020-07-01 22:16:47 +0530149sanity-kind-tt: ROBOT_MISC_ARGS += -i sanityTT $(ROBOT_DEBUG_LOG_OPT)
150sanity-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
151sanity-kind-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
152sanity-kind-tt: voltha-tt-test
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700153
Hardik Windlassc609eb02022-02-22 11:28:37 +0000154sanity-kind-tt-maclearning: ROBOT_MISC_ARGS += -i sanityTT -v with_maclearning:True $(ROBOT_DEBUG_LOG_OPT)
155sanity-kind-tt-maclearning: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
156sanity-kind-tt-maclearning: ROBOT_FILE := Voltha_TT_PODTests.robot
157sanity-kind-tt-maclearning: voltha-tt-test
158
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000159sanity-kind-multiuni-tt: ROBOT_MISC_ARGS += -i sanityTT $(ROBOT_DEBUG_LOG_OPT)
160sanity-kind-multiuni-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
161sanity-kind-multiuni-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
162sanity-kind-multiuni-tt: voltha-tt-test
163
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700164# target to invoke TT Workflow Functional scenarios
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000165functional-single-kind-tt: ROBOT_MISC_ARGS += -i sanityTTORfunctionalTT -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700166functional-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
167functional-single-kind-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
168functional-single-kind-tt: voltha-tt-test
169
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000170functional-single-kind-multiuni-tt: ROBOT_MISC_ARGS += -i sanityTTORfunctionalTT -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
171functional-single-kind-multiuni-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
172functional-single-kind-multiuni-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
173functional-single-kind-multiuni-tt: voltha-tt-test
174
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200175# target to invoke TIM Workflow Sanity
176sanity-kind-tim: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
177sanity-kind-tim: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_SINGLE_PON_FILE)
178sanity-kind-tim: ROBOT_FILE := Voltha_TIM_PODTests.robot
179sanity-kind-tim: voltha-tim-test
180
181sanity-kind-tim-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
182sanity-kind-tim-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_SINGLE_PON_MULTI_ONU_FILE)
183sanity-kind-tim-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
184sanity-kind-tim-multi-onu: voltha-tim-test
185
186sanity-kind-tim-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
187sanity-kind-tim-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MULTI_PON_MULTI_ONU_FILE)
188sanity-kind-tim-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
189sanity-kind-tim-multi-pon-multi-onu: voltha-tim-test
190
191sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
192sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE)
193sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
194sanity-kind-tim-multi-olt-multi-pon-multi-onu: voltha-tim-test
195
LupoAndreaSperanza0f3fbc22023-05-16 21:02:40 +0200196sanity-kind-tim-mcast: ROBOT_MISC_ARGS += -i sanityTIM-MCast $(ROBOT_DEBUG_LOG_OPT)
197sanity-kind-tim-mcast: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MCAST_SINGLE_PON_FILE)
198sanity-kind-tim-mcast: ROBOT_FILE := Voltha_TIM_PODTests.robot
199sanity-kind-tim-mcast: voltha-tim-test
200
201sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM-MCast $(ROBOT_DEBUG_LOG_OPT)
202sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MCAST_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE)
203sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
204sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: voltha-tim-test
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200205
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000206# target to invoke multiple OLTs Functional scenarios
Suchitra Vemuri2a6975a2020-11-25 12:49:38 -0800207functional-multi-olt: ROBOT_MISC_ARGS += -i sanityORfunctional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000208functional-multi-olt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800209functional-multi-olt: ROBOT_FILE := Voltha_PODTests.robot
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000210functional-multi-olt: voltha-test
211
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000212functional-multiuni-multiolt-att: ROBOT_MISC_ARGS += -X -i sanityORmulti-uni $(ROBOT_DEBUG_LOG_OPT)
213functional-multiuni-multiolt-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
214functional-multiuni-multiolt-att: ROBOT_FILE := Voltha_PODTests.robot
215functional-multiuni-multiolt-att: voltha-test
216
TorstenThieme90a99f82021-05-05 09:17:37 +0000217# target to invoke test with openonu go adapter applying 1T1GEM tech-profile at single ONU
2181t1gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T1GEM
2191t1gem-openonu-go-adapter-test: openonu-go-adapter-test
220
TorstenThiemefe7099e2021-01-29 08:41:04 +0000221# target to invoke test with openonu go adapter applying 1T4GEM tech-profile at single ONU
2221t4gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T4GEM
2231t4gem-openonu-go-adapter-test: openonu-go-adapter-test
224
225# target to invoke test with openonu go adapter applying 1T8GEM tech-profile at single ONU
2261t8gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T8GEM
2271t8gem-openonu-go-adapter-test: openonu-go-adapter-test
228
TorstenThieme1619db22020-04-03 12:01:15 +0000229# target to invoke openonu go adapter
TorstenThieme66c91a82020-10-19 13:37:53 +0000230openonu-go-adapter-test: ROBOT_MISC_ARGS += -v state2test:omci-flows-pushed -v testmode:SingleStateTime
Hardik Windlass9e3db232021-10-14 07:10:47 +0000231openonu-go-adapter-test: ROBOT_MISC_ARGS += -i sanityOnuGo -i functionalOnuGo
TorstenThieme41097be2021-07-06 09:52:50 +0000232openonu-go-adapter-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme1619db22020-04-03 12:01:15 +0000233openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
234openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUStateTests.robot
TorstenThieme89caa142020-10-05 08:20:31 +0000235openonu-go-adapter-test: openonu-go-adapter-tests
TorstenThieme1619db22020-04-03 12:01:15 +0000236
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200237# target to invoke bbf adapter
238bbf-adapter: ROBOT_MISC_ARGS += -i sanityBbfAdapter $(ROBOT_DEBUG_LOG_OPT)
239bbf-adapter: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_SINGLE_PON_FILE)
240bbf-adapter: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
241bbf-adapter: voltha-bbf-adapter-test
242
243bbf-adapter-functionality: ROBOT_MISC_ARGS += -i bbfAdapterFunctionality $(ROBOT_DEBUG_LOG_OPT)
244bbf-adapter-functionality: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE)
245bbf-adapter-functionality: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
246bbf-adapter-functionality: voltha-bbf-adapter-test
247
248bbf-adapter-functionality-single: ROBOT_MISC_ARGS += -i bbfAdapterFunctionalitySingleTest $(ROBOT_DEBUG_LOG_OPT)
249bbf-adapter-functionality-single: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE)
250bbf-adapter-functionality-single: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
251bbf-adapter-functionality-single: voltha-bbf-adapter-test
252
TorstenThieme89caa142020-10-05 08:20:31 +0000253# target to invoke test with openonu go adapter applying MIB-Upload-Templating
Hardik Windlass9e3db232021-10-14 07:10:47 +0000254mib-upload-templating-openonu-go-adapter-test: ROBOT_MISC_ARGS += -i functionalOnuGo
TorstenThieme5db695e2022-04-01 08:19:05 +0000255mib-upload-templating-openonu-go-adapter-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme89caa142020-10-05 08:20:31 +0000256mib-upload-templating-openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
257mib-upload-templating-openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUTemplateTests.robot
258mib-upload-templating-openonu-go-adapter-test: openonu-go-adapter-tests
TorstenThieme280c3802020-08-07 07:07:42 +0000259
TorstenThieme53450ff2021-05-11 09:44:33 +0000260# target to invoke test with openonu go adapter applying 1T8GEM tech-profile at single ONU with OMCI hardening
261# timeout is determined for omci_response_rate=9 and omci_timeout=1s
262openonu-go-adapter-omci-hardening-passed-test: ROBOT_MISC_ARGS += -v timeout:180s -v techprofile:1T8GEM
263openonu-go-adapter-omci-hardening-passed-test: openonu-go-adapter-test
264
265# target to invoke openonu go adapter failed state test at single ONU with OMCI hardening
266# test should show in case of too small omci_response_rate (<=7) in BBSIM that OMCI hardening does not work
267# test is PASS when ONU does not leave state 'starting-openomci'
Hardik Windlass9e3db232021-10-14 07:10:47 +0000268openonu-go-adapter-omci-hardening-failed-test: ROBOT_MISC_ARGS += -v timeout:300s -i NegativeStateTestOnuGo
TorstenThieme5db695e2022-04-01 08:19:05 +0000269openonu-go-adapter-omci-hardening-failed-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme53450ff2021-05-11 09:44:33 +0000270openonu-go-adapter-omci-hardening-failed-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
271openonu-go-adapter-omci-hardening-failed-test: ROBOT_FILE := Voltha_ONUNegativeStateTests.robot
272openonu-go-adapter-omci-hardening-failed-test: openonu-go-adapter-tests
273
TorstenThieme379c3da2021-03-23 10:27:32 +0000274# target to invoke reconcile tests with openonu go adapter at single ONU with ATT workflow (default workflow)
TorstenThieme90a99f82021-05-05 09:17:37 +0000275reconcile-openonu-go-adapter-test-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
276reconcile-openonu-go-adapter-test-att: reconcile-openonu-go-adapter-tests-att
TorstenThieme3d8bf552021-02-08 08:41:52 +0000277
TorstenThiemefe7099e2021-01-29 08:41:04 +0000278# target to invoke reconcile tests with openonu go adapter at single ONU with DT workflow
TorstenThieme3d8bf552021-02-08 08:41:52 +0000279reconcile-openonu-go-adapter-test-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
TorstenThieme379c3da2021-03-23 10:27:32 +0000280reconcile-openonu-go-adapter-test-dt: reconcile-openonu-go-adapter-tests-dt
TorstenThiemefe7099e2021-01-29 08:41:04 +0000281
282# target to invoke reconcile tests with openonu go adapter at single ONU with TT workflow
TorstenThieme3d8bf552021-02-08 08:41:52 +0000283reconcile-openonu-go-adapter-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
TorstenThieme379c3da2021-03-23 10:27:32 +0000284reconcile-openonu-go-adapter-test-tt: reconcile-openonu-go-adapter-tests-tt
TorstenThiemefe7099e2021-01-29 08:41:04 +0000285
TorstenThieme00fe8262022-01-19 10:43:07 +0000286# target to invoke reconcile tests with openonu go adapter at single ONU multi UNI with TT workflow
287reconcile-openonu-go-adapter-multi-uni-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
288reconcile-openonu-go-adapter-multi-uni-test-tt: ROBOT_MISC_ARGS += -v unitag_sub:True
289reconcile-openonu-go-adapter-multi-uni-test-tt: reconcile-openonu-go-adapter-tests-tt
290
TorstenThieme379c3da2021-03-23 10:27:32 +0000291# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with ATT workflow (default workflow)
TorstenThieme90a99f82021-05-05 09:17:37 +0000292reconcile-openonu-go-adapter-multi-olt-test-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
293reconcile-openonu-go-adapter-multi-olt-test-att: reconcile-openonu-go-adapter-tests-att
TorstenThieme379c3da2021-03-23 10:27:32 +0000294
295# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with DT workflow
296reconcile-openonu-go-adapter-multi-olt-test-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
297reconcile-openonu-go-adapter-multi-olt-test-dt: reconcile-openonu-go-adapter-tests-dt
298
299# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with TT workflow
300reconcile-openonu-go-adapter-multi-olt-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
301reconcile-openonu-go-adapter-multi-olt-test-tt: reconcile-openonu-go-adapter-tests-tt
302
TorstenThieme00fe8262022-01-19 10:43:07 +0000303# target to invoke reconcile tests with openonu go adapter with multiple OLTs multi UNI scenario with TT workflow
304reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_MULTIPLE_OLT_FILE)
305reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: ROBOT_MISC_ARGS += -v unitag_sub:True
306reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: reconcile-openonu-go-adapter-tests-tt
307
TorstenThieme90a99f82021-05-05 09:17:37 +0000308# target to invoke reconcile tests with openonu go adapter with ATT workflow
309reconcile-openonu-go-adapter-tests-att: ROBOT_MISC_ARGS += -v workflow:ATT
310reconcile-openonu-go-adapter-tests-att: reconcile-openonu-go-adapter-tests
311
TorstenThieme379c3da2021-03-23 10:27:32 +0000312# target to invoke reconcile tests with openonu go adapter with DT workflow
313reconcile-openonu-go-adapter-tests-dt: ROBOT_MISC_ARGS += -v workflow:DT
314reconcile-openonu-go-adapter-tests-dt: reconcile-openonu-go-adapter-tests
315
316# target to invoke reconcile tests with openonu go adapter with TT workflow
317reconcile-openonu-go-adapter-tests-tt: ROBOT_MISC_ARGS += -v workflow:TT
318reconcile-openonu-go-adapter-tests-tt: reconcile-openonu-go-adapter-tests
319
320# target to invoke reconcile tests with openonu go adapter at single ONU resp. multiple OLTs
Hardik Windlass9e3db232021-10-14 07:10:47 +0000321reconcile-openonu-go-adapter-tests: ROBOT_MISC_ARGS += -i functionalOnuGo
TorstenThieme0ec95eb2021-11-23 14:56:26 +0000322reconcile-openonu-go-adapter-tests: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme3d8bf552021-02-08 08:41:52 +0000323reconcile-openonu-go-adapter-tests: ROBOT_FILE := Voltha_ONUReconcileTests.robot
324reconcile-openonu-go-adapter-tests: openonu-go-adapter-tests
TorstenThieme440b7c02020-12-18 15:42:57 +0000325
TorstenThieme90a99f82021-05-05 09:17:37 +0000326# target to invoke test with openonu go adapter applying 1T1GEM tech-profile with multiple OLTs scenarios with ATT workflow
3271t1gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T1GEM
3281t1gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
329
TorstenThiemefe7099e2021-01-29 08:41:04 +0000330# target to invoke test with openonu go adapter applying 1T4GEM tech-profile with multiple OLTs scenarios with ATT workflow
3311t4gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T4GEM
3321t4gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
TorstenThiemec3c23232021-01-13 13:06:31 +0000333
TorstenThiemefe7099e2021-01-29 08:41:04 +0000334# target to invoke test with openonu go adapter applying 1T8GEM tech-profile with multiple OLTs scenarios with ATT workflow
3351t8gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T8GEM
TorstenThieme3d8bf552021-02-08 08:41:52 +00003361t8gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
TorstenThiemefe7099e2021-01-29 08:41:04 +0000337
338# target to invoke test with openonu go adapter (applying 1T1GEM tech-profile) with multiple OLTs scenarios with ATT workflow
339openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v state2test:omci-flows-pushed -v testmode:SingleStateTime
Hardik Windlass9e3db232021-10-14 07:10:47 +0000340openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -i sanityOnuGo -i functionalOnuGo
TorstenThieme41097be2021-07-06 09:52:50 +0000341openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThiemefe7099e2021-01-29 08:41:04 +0000342openonu-go-adapter-multi-olt-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
343openonu-go-adapter-multi-olt-test: ROBOT_FILE := Voltha_ONUStateTests.robot
344openonu-go-adapter-multi-olt-test: openonu-go-adapter-tests
TorstenThieme70bc5262021-01-19 12:12:55 +0000345
David Bainbridgef81cd642019-11-20 00:14:47 +0000346sanity-single-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500347sanity-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
348sanity-single-kind: bbsim-kind
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000349
Hardik Windlass9e3db232021-10-14 07:10:47 +0000350sanity-bbsim-att: ROBOT_MISC_ARGS += -v workflow:ATT
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700351sanity-bbsim-att: sanity-bbsim
352
Hardik Windlass9e3db232021-10-14 07:10:47 +0000353sanity-bbsim-dt: ROBOT_MISC_ARGS += -v workflow:DT
Matteo Scandolof310d962021-05-18 10:35:48 -0700354sanity-bbsim-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
355sanity-bbsim-dt: ROBOT_FILE := Voltha_BBSimTests.robot
356sanity-bbsim-dt: voltha-bbsim-test
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700357
Hardik Windlass9e3db232021-10-14 07:10:47 +0000358sanity-bbsim-tt: ROBOT_MISC_ARGS += -v workflow:TT
Matteo Scandolof310d962021-05-18 10:35:48 -0700359sanity-bbsim-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
360sanity-bbsim-tt: ROBOT_FILE := Voltha_BBSimTests.robot
361sanity-bbsim-tt: voltha-bbsim-test
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700362
363sanity-bbsim: ROBOT_MISC_ARGS += -i bbsimSanity $(ROBOT_DEBUG_LOG_OPT)
364sanity-bbsim: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
365sanity-bbsim: ROBOT_FILE := Voltha_BBSimTests.robot
366sanity-bbsim: voltha-bbsim-test
367
Matteo Scandolo95b22152021-02-05 15:39:34 -0800368voltha-bbsim-test: vst_venv
369 source ./$</bin/activate ; set -u ;\
370 cd tests/bbsim ;\
371 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
372
David Bainbridge32c45632020-04-13 08:47:09 -0700373rwcore-restart-single-kind: ROBOT_MISC_ARGS += -X -i functionalANDrwcore-restart $(ROBOT_DEBUG_LOG_OPT)
David Bainbridgef81cd642019-11-20 00:14:47 +0000374rwcore-restart-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_FAIL_SINGLE_PON_FILE)
ubuntu6b6e7d42020-03-02 12:35:42 -0800375rwcore-restart-single-kind: ROBOT_FILE := Voltha_FailureScenarios.robot
David Bainbridgef81cd642019-11-20 00:14:47 +0000376rwcore-restart-single-kind: voltha-test
377
David Bainbridge3d6d5d32019-12-17 19:05:35 +0000378single-kind: ROBOT_MISC_ARGS += -X -i $(TEST_TAGS) $(ROBOT_DEBUG_LOG_OPT)
379single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
380single-kind: ROBOT_FILE := Voltha_PODTests.robot
381single-kind: voltha-test
382
David Bainbridgef81cd642019-11-20 00:14:47 +0000383sanity-multi-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500384sanity-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
385sanity-multi-kind: bbsim-kind
Andy Bavierba9866b2019-10-11 07:11:53 -0700386
Andy Bavier8da0e132020-04-13 10:25:16 -0700387functional-multi-kind: ROBOT_MISC_ARGS += -i sanityORfunctional $(ROBOT_DEBUG_LOG_OPT)
388functional-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
389functional-multi-kind: bbsim-kind
390
Suchitra Vemuri8a9c3782019-10-23 12:43:01 -0700391bbsim-kind: ROBOT_MISC_ARGS += -X
Gilles Depatie45fbe042019-11-11 17:10:06 -0500392bbsim-kind: ROBOT_FILE := Voltha_PODTests.robot
393bbsim-kind: voltha-test
394
David Bainbridgef81cd642019-11-20 00:14:47 +0000395scale-single-kind: ROBOT_MISC_ARGS += -i active $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500396scale-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SCALE_SINGLE_PON_FILE)
397scale-single-kind: bbsim-scale-kind
398
David Bainbridgef81cd642019-11-20 00:14:47 +0000399scale-multi-kind: ROBOT_MISC_ARGS += -i active $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500400scale-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SCALE_MULT_PON_FILE)
401scale-multi-kind: bbsim-scale-kind
402
David Bainbridgef81cd642019-11-20 00:14:47 +0000403bbsim-scale-kind: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500404bbsim-scale-kind: ROBOT_FILE := Voltha_ScaleFunctionalTests.robot
405bbsim-scale-kind: voltha-test
Zack Williamsec53a1b2019-09-16 15:50:52 -0700406
hwchiuab524f02020-02-03 23:24:19 +0000407#Only supported in full mode
408system-scale-test: ROBOT_FILE := K8S_SystemTest.robot
Matteo Scandolo66fe6452021-01-05 13:03:41 -0800409system-scale-test: ROBOT_MISC_ARGS += -X -i functional $(ROBOT_DEBUG_LOG_OPT) -v teardown_device:True
hwchiuab524f02020-02-03 23:24:19 +0000410system-scale-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
411system-scale-test: voltha-test
hwchiu11289122019-11-27 16:20:15 +0000412
hwchiu85695932019-12-18 08:05:25 +0000413failure-test: ROBOT_MISC_ARGS += -X -i FailureTest $(ROBOT_DEBUG_LOG_OPT)
hwchiu3d9a0982020-02-06 00:19:19 +0000414failure-test: ROBOT_FILE := K8S_SystemTest.robot
hwchiu85695932019-12-18 08:05:25 +0000415failure-test: ROBOT_CONFIG_FILE := $(ROBOT_FAIL_SINGLE_PON_FILE)
416failure-test: voltha-test
417
Scott Baker60e570d2020-02-02 22:10:13 -0800418bbsim-alarms-kind: ROBOT_MISC_ARGS += -X -i active
419bbsim-alarms-kind: ROBOT_FILE := Voltha_AlarmTests.robot
Andy Baviere118e052020-03-06 12:49:24 -0700420bbsim-alarms-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
Scott Baker60e570d2020-02-02 22:10:13 -0800421bbsim-alarms-kind: voltctl-docker-image-build voltctl-docker-image-install-kind voltha-test
422
Andy Bavierc1904dc2020-03-20 11:39:15 -0700423bbsim-errorscenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
424bbsim-errorscenarios: ROBOT_FILE := Voltha_ErrorScenarios.robot
425bbsim-errorscenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
426bbsim-errorscenarios: voltha-test
427
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000428bbsim-multiuni-errorscenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
429bbsim-multiuni-errorscenarios-att: ROBOT_FILE := Voltha_ErrorScenarios.robot
430bbsim-multiuni-errorscenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
431bbsim-multiuni-errorscenarios-att: voltha-test
432
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800433bbsim-multiolt-errorscenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
434bbsim-multiolt-errorscenarios: ROBOT_FILE := Voltha_ErrorScenarios.robot
435bbsim-multiolt-errorscenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
436bbsim-multiolt-errorscenarios: voltha-test
437
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000438bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
439bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_FILE := Voltha_ErrorScenarios.robot
440bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
441bbsim-multiuni-multiolt-errorscenarios-att: voltha-test
442
Hardik Windlasscbcca312020-04-20 21:46:11 +0530443bbsim-errorscenarios-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
444bbsim-errorscenarios-dt: ROBOT_FILE := Voltha_ErrorScenarios.robot
445bbsim-errorscenarios-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
446bbsim-errorscenarios-dt: voltha-test
447
Hardik Windlasse05e4712020-04-29 10:40:42 +0530448bbsim-failurescenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
Andy Bavier8da0e132020-04-13 10:25:16 -0700449bbsim-failurescenarios: ROBOT_FILE := Voltha_FailureScenarios.robot
450bbsim-failurescenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
451bbsim-failurescenarios: voltha-test
452
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000453bbsim-multiuni-failurescenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
454bbsim-multiuni-failurescenarios-att: ROBOT_FILE := Voltha_FailureScenarios.robot
455bbsim-multiuni-failurescenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
456bbsim-multiuni-failurescenarios-att: voltha-test
457
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800458bbsim-multiolt-failurescenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
459bbsim-multiolt-failurescenarios: ROBOT_FILE := Voltha_FailureScenarios.robot
460bbsim-multiolt-failurescenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
461bbsim-multiolt-failurescenarios: voltha-test
462
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000463bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
464bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_FILE := Voltha_FailureScenarios.robot
465bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
466bbsim-multiuni-multiolt-failurescenarios-att: voltha-test
467
Hardik Windlass5ceb84e2021-02-11 11:17:08 +0000468bbsim-multiolt-kind: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalReboot
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800469bbsim-multiolt-kind: ROBOT_FILE := Voltha_MultiOLT_Tests.robot
470bbsim-multiolt-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
471bbsim-multiolt-kind: voltha-test
472
Hardik Windlass5ceb84e2021-02-11 11:17:08 +0000473bbsim-multiolt-kind-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalRebootDt
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800474bbsim-multiolt-kind-dt: ROBOT_FILE := Voltha_DT_MultiOLT_Tests.robot
475bbsim-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
476bbsim-multiolt-kind-dt: voltha-dt-test
477
bharat raj58488b32023-05-11 22:46:18 +0530478bbsim-multiolt-kind-dt-vgc: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalRebootDt
479bbsim-multiolt-kind-dt-vgc: ROBOT_FILE := Voltha_DT_MultiOLT_Tests_VGC.robot
480bbsim-multiolt-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE_VGC)
481bbsim-multiolt-kind-dt-vgc: voltha-dt-test
482
483multiolt-kind-dt-vgc: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -i functionalDt
484multiolt-kind-dt-vgc: ROBOT_FILE := Voltha_DT_MultiOLT_Tests_VGC.robot
485multiolt-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE_VGC)
486multiolt-kind-dt-vgc: voltha-dt-test
487
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800488multiolt-kind-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -i functionalDt
489multiolt-kind-dt: ROBOT_FILE := Voltha_DT_MultiOLT_Tests.robot
490multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
491multiolt-kind-dt: voltha-dt-test
492
Hardik Windlass9df139e2020-04-24 14:54:54 +0530493bbsim-failurescenarios-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitchOnuRebootDt -e PhysicalOltRebootDt
494bbsim-failurescenarios-dt: ROBOT_FILE := Voltha_DT_FailureScenarios.robot
495bbsim-failurescenarios-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
496bbsim-failurescenarios-dt: voltha-dt-test
497
Hardik Windlassb1bda362021-11-24 11:54:36 +0000498bbsim-failurescenarios-tt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOltRebootTT -e dataplaneTT
TorstenThieme136ebf72021-02-26 14:27:07 +0000499bbsim-failurescenarios-tt: ROBOT_FILE := Voltha_TT_FailureScenarios.robot
500bbsim-failurescenarios-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
501bbsim-failurescenarios-tt: voltha-tt-test
502
Andrea Campanellaf1081572021-10-06 16:06:55 +0200503onos-ha-test: ROBOT_MISC_ARGS += -e notready -X $(ROBOT_DEBUG_LOG_OPT)
504onos-ha-test: ROBOT_FILE := Voltha_ONOSHATests.robot
505onos-ha-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
506onos-ha-test: voltha-test
507
Matteo Scandoloab48f9e2021-06-11 17:08:00 +0200508voltha-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
hwchiu11289122019-11-27 16:20:15 +0000509
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700510voltha-test: vst_venv
511 source ./$</bin/activate ; set -u ;\
512 cd tests/functional ;\
513 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
514
TorstenThiemef8f9a802020-12-16 15:25:25 +0000515bbsim-dmi-hw-management-test: ROBOT_MISC_ARGS += -e notreadyDMI -i functionalDMI -e bbsimUnimplementedDMI
516bbsim-dmi-hw-management-test: ROBOT_FILE := dmi-hw-management.robot
517bbsim-dmi-hw-management-test: ROBOT_CONFIG_FILE := $(ROBOT_DMI_SINGLE_BBSIM_FILE)
518bbsim-dmi-hw-management-test: voltha-dmi-test
uwe ottrembka504ca3e2020-11-23 12:02:20 +0100519
TorstenThiemef8f9a802020-12-16 15:25:25 +0000520voltha-dmi-hw-management-test: ROBOT_MISC_ARGS += -e notreadyDMI -i functionalDMI
521voltha-dmi-hw-management-test: ROBOT_FILE := dmi-hw-management.robot
522voltha-dmi-hw-management-test: ROBOT_CONFIG_FILE := $(ROBOT_DMI_SINGLE_ADTRAN_FILE)
523voltha-dmi-hw-management-test: voltha-dmi-test
524
525voltha-dmi-test: vst_venv
uwe ottrembka504ca3e2020-11-23 12:02:20 +0100526 source ./$</bin/activate ; set -u ;\
527 cd tests/dmi-interface ;\
528 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
529
TorstenThiemeff9c9142021-04-08 07:21:34 +0000530# target to invoke single ONU pm data scenarios in ATT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000531voltha-pm-data-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000532voltha-pm-data-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
533voltha-pm-data-single-kind-att: voltha-pm-data-tests
534
535# target to invoke single ONU pm data scenarios in DT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000536voltha-pm-data-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000537voltha-pm-data-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
538voltha-pm-data-single-kind-dt: voltha-pm-data-tests
539
540# target to invoke single ONU pm data scenarios in TT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000541voltha-pm-data-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
TorstenThieme90a99f82021-05-05 09:17:37 +0000542voltha-pm-data-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
543voltha-pm-data-single-kind-tt: voltha-pm-data-tests
TorstenThiemeff9c9142021-04-08 07:21:34 +0000544
545# target to invoke multiple OLTs pm data scenarios in ATT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000546voltha-pm-data-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000547voltha-pm-data-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
548voltha-pm-data-multiolt-kind-att: voltha-pm-data-tests
549
550# target to invoke multiple OLTs pm data scenarios in DT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000551voltha-pm-data-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000552voltha-pm-data-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
553voltha-pm-data-multiolt-kind-dt: voltha-pm-data-tests
554
555# target to invoke multiple OLTs pm data scenarios in TT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000556voltha-pm-data-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000557voltha-pm-data-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
558voltha-pm-data-multiolt-kind-tt: voltha-pm-data-tests
559
560voltha-pm-data-tests: ROBOT_MISC_ARGS += -i functional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
561voltha-pm-data-tests: ROBOT_PM_CONFIG_FILE := $(ROBOT_PM_DATA_FILE)
562voltha-pm-data-tests: ROBOT_FILE := Voltha_ONUPMTests.robot
563voltha-pm-data-tests: voltha-pm-data-test
564
565voltha-pm-data-test: vst_venv
566 source ./$</bin/activate ; set -u ;\
567 cd tests/pm-data ;\
568 robot -V $(ROBOT_CONFIG_FILE) -V $(ROBOT_PM_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
569
TorstenThieme1c1f5fa2021-06-18 13:40:30 +0000570# target to invoke single ONU OMCI Get scenarios in ATT workflow
571voltha-onu-omci-get-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
572voltha-onu-omci-get-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
573voltha-onu-omci-get-single-kind-att: voltha-onu-omci-get-tests
574
575# target to invoke single ONU OMCI Get scenarios in DT workflow
576voltha-onu-omci-get-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
577voltha-onu-omci-get-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
578voltha-onu-omci-get-single-kind-dt: voltha-onu-omci-get-tests
579
TorstenThiemea7315f12021-07-23 11:56:34 +0000580# target to invoke single ONU OMCI Get scenarios in TT workflow
TorstenThieme1c1f5fa2021-06-18 13:40:30 +0000581voltha-onu-omci-get-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
582voltha-onu-omci-get-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
583voltha-onu-omci-get-single-kind-tt: voltha-onu-omci-get-tests
584
585# target to invoke multiple OLTs OMCI Get scenarios in ATT workflow
586voltha-onu-omci-get-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
587voltha-onu-omci-get-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
588voltha-onu-omci-get-multiolt-kind-att: voltha-onu-omci-get-tests
589
590# target to invoke multiple OLTs OMCI Get scenarios in DT workflow
591voltha-onu-omci-get-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
592voltha-onu-omci-get-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
593voltha-onu-omci-get-multiolt-kind-dt: voltha-onu-omci-get-tests
594
595# target to invoke multiple OLTs OMCI Get scenarios in TT workflow
596voltha-onu-omci-get-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
597voltha-onu-omci-get-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
598voltha-onu-omci-get-multiolt-kind-tt: voltha-onu-omci-get-tests
599
600voltha-onu-omci-get-tests: ROBOT_MISC_ARGS += -i functionalOnuGo -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
601voltha-onu-omci-get-tests: ROBOT_FILE := Voltha_ONUOmciGetTest.robot
602voltha-onu-omci-get-tests: openonu-go-adapter-tests
603
TorstenThiemea7315f12021-07-23 11:56:34 +0000604# target to invoke single ONU Flows Check in ATT workflow
605voltha-onu-flows-check-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
606voltha-onu-flows-check-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
607voltha-onu-flows-check-single-kind-att: voltha-onu-flows-check-tests
608
609# target to invoke single ONU Flows Check scenarios in DT workflow
610voltha-onu-flows-check-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT -v techprofile:1T8GEM
611voltha-onu-flows-check-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
612voltha-onu-flows-check-single-kind-dt: voltha-onu-flows-check-tests
613
614# target to invoke single ONU Flows Check scenarios in TT workflow
615voltha-onu-flows-check-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT -v techprofile:1T4GEM
616voltha-onu-flows-check-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
617voltha-onu-flows-check-single-kind-tt: voltha-onu-flows-check-tests
618
619# target to invoke multiple OLTs Flows Check scenarios in ATT workflow
620voltha-onu-flows-check-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
621voltha-onu-flows-check-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
622voltha-onu-flows-check-multiolt-kind-att: voltha-onu-flows-check-tests
623
624# target to invoke multiple OLTs Flows Check scenarios in DT workflow
625voltha-onu-flows-check-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT -v techprofile:1T8GEM
626voltha-onu-flows-check-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
627voltha-onu-flows-check-multiolt-kind-dt: voltha-onu-flows-check-tests
628
629# target to invoke multiple OLTs Flows Check scenarios in TT workflow
630voltha-onu-flows-check-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT -v techprofile:1T4GEM
631voltha-onu-flows-check-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
632voltha-onu-flows-check-multiolt-kind-tt: voltha-onu-flows-check-tests
633
634voltha-onu-flows-check-tests: ROBOT_MISC_ARGS += -i functionalOnuGo -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
635voltha-onu-flows-check-tests: ROBOT_FILE := Voltha_ONUFlowChecks.robot
636voltha-onu-flows-check-tests: openonu-go-adapter-tests
637
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000638# 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 +0000639# <app-name>,<version>,<oar-url>*<app-name>,<version>,<oar-url>*
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000640onos-app-upgrade-test: ROBOT_MISC_ARGS += -e notready -i functional
641onos-app-upgrade-test: ROBOT_FILE := ONOS_AppsUpgrade.robot
Hardik Windlass17bd1142021-03-12 08:15:25 +0000642onos-app-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000643onos-app-upgrade-test: software-upgrade-test
644
645# 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 +0000646# <comp-label>,<comp-container>,<comp-image>*<comp-label>,<comp-container>,<comp-image>*
Hardik Windlass76f68212022-01-19 08:16:14 +0000647voltha-comp-upgrade-test: ROBOT_MISC_ARGS += -e notready -i VolthaCompMinorVerUpgrade
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000648voltha-comp-upgrade-test: ROBOT_FILE := Voltha_ComponentsUpgrade.robot
Hardik Windlass17bd1142021-03-12 08:15:25 +0000649voltha-comp-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000650voltha-comp-upgrade-test: software-upgrade-test
651
Hardik Windlass76f68212022-01-19 08:16:14 +0000652# Voltha Components to test for Software Upgrade need to be passed in the 'voltha_comps_under_test' variable in format:
653# <comp-label>,<comp-container>,<comp-image>*<comp-label>,<comp-container>,<comp-image>*
654voltha-comp-rolling-upgrade-test: ROBOT_MISC_ARGS += -e notready -i VolthaCompMinorVerRollingUpgrade
655voltha-comp-rolling-upgrade-test: ROBOT_FILE := Voltha_ComponentsUpgrade.robot
656voltha-comp-rolling-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
657voltha-comp-rolling-upgrade-test: software-upgrade-test
658
Hardik Windlass17bd1142021-03-12 08:15:25 +0000659# Requirement: Pass ONU image details in following parameters
Hardik Windlassba1bd272021-06-22 08:29:33 +0000660# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
Hardik Windlass17bd1142021-03-12 08:15:25 +0000661onu-upgrade-test: ROBOT_MISC_ARGS += -e notready -i functional
662onu-upgrade-test: ROBOT_FILE := ONU_Upgrade.robot
663onu-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
664onu-upgrade-test: software-upgrade-test
665
TorstenThiemef3e492c2021-11-08 15:25:48 +0000666# Requirement: Pass ONU image details in following parameters
667# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
668onu-upgrade-test-multiolt-kind-att: ROBOT_MISC_ARGS += -e notready -i functionalMultipleONUs
669onu-upgrade-test-multiolt-kind-att: ROBOT_FILE := ONU_Upgrade.robot
670onu-upgrade-test-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
671onu-upgrade-test-multiolt-kind-att: software-upgrade-test
672
TorstenThieme0c8cc6f2022-02-16 13:48:21 +0000673# Voltha openonu MIB Audit tests att workflow single kind
674onu-mib-audit-test-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
675onu-mib-audit-test-single-kind-att: voltha-onu-mib-audit-tests
676
677# Voltha openonu MIB Audit tests t workflow single kind
678onu-mib-audit-test-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
679onu-mib-audit-test-single-kind-dt: voltha-onu-mib-audit-tests
680
681# Voltha openonu MIB Audit tests tt workflow single kind
682onu-mib-audit-test-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
683onu-mib-audit-test-single-kind-tt: voltha-onu-mib-audit-tests
684
685# Voltha openonu MIB Audit tests att workflow multiple OLTs
686onu-mib-audit-test-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
687onu-mib-audit-test-multiolt-kind-att: voltha-onu-mib-audit-tests
688
689# Voltha openonu MIB Audit tests tt workflow multiple OLTs
690onu-mib-audit-test-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
691onu-mib-audit-test-multiolt-kind-dt: voltha-onu-mib-audit-tests
692
693# Voltha openonu MIB Audit tests tt workflow multiple OLTs
694onu-mib-audit-test-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
695onu-mib-audit-test-multiolt-kind-tt: voltha-onu-mib-audit-tests
696
697voltha-onu-mib-audit-tests: ROBOT_MISC_ARGS += -i functional -e notready --noncritical non-critical
698voltha-onu-mib-audit-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
699voltha-onu-mib-audit-tests: ROBOT_FILE := Voltha_ONUMibAudit.robot
700voltha-onu-mib-audit-tests: openonu-go-adapter-tests
701
TorstenThieme0fa54432023-02-14 13:27:20 +0000702# Voltha Components Memory Leak tests dt workflow 1 OLT 1 PON 2 ONUs
703memory-leak-test-single-pon-multi-onu-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_MULTI_ONU_FILE)
704memory-leak-test-single-pon-multi-onu-dt: voltha-memory-leak-tests
TorstenThieme700ccbf2022-02-11 10:24:05 +0000705
706voltha-memory-leak-tests: ROBOT_MISC_ARGS += -i functionalMemoryLeak -e notready --noncritical non-critical
707voltha-memory-leak-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
708voltha-memory-leak-tests: ROBOT_FILE := VOLTHA_Memory_Leak_Tests.robot
709voltha-memory-leak-tests: voltha-memory-leak-test
710
TorstenThiemed9cc06e2022-11-09 12:12:46 +0000711# Voltha openonu robustness tests att workflow
712onu-robustness-test-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
713onu-robustness-test-single-kind-att: ROBOT_MISC_ARGS += -i functional
714onu-robustness-test-single-kind-att: voltha-onu-robustness-tests
715
716# Voltha openonu robustness tests dt workflow
717onu-robustness-test-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
718onu-robustness-test-single-kind-dt: ROBOT_MISC_ARGS += -i functional
719onu-robustness-test-single-kind-dt: voltha-onu-robustness-tests
720
721# Voltha openonu robustness tests tt workflow
722onu-robustness-test-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
723onu-robustness-test-single-kind-tt: ROBOT_MISC_ARGS += -i functional
724onu-robustness-test-single-kind-tt: voltha-onu-robustness-tests
725
726# Voltha openonu robustness tests multi-uni tt workflow
727onu-robustness-test-multi-uni-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
728onu-robustness-test-multi-uni-kind-tt: ROBOT_MISC_ARGS += -v unitag_sub:True -i functionalMultiUni
729onu-robustness-test-multi-uni-kind-tt: voltha-onu-robustness-tests
730
731voltha-onu-robustness-tests: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
732voltha-onu-robustness-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
733voltha-onu-robustness-tests: ROBOT_FILE := Voltha_ONUErrorTests.robot
734voltha-onu-robustness-tests: openonu-go-adapter-tests
735
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000736software-upgrade-test: vst_venv
737 source ./$</bin/activate ; set -u ;\
738 cd tests/software-upgrades ;\
739 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
740
Matteo Scandoloab48f9e2021-06-11 17:08:00 +0200741voltha-dt-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Hardik Windlass79b40ff2020-06-11 22:55:47 +0530742
Hardik Windlassa3d04b92020-02-17 15:06:05 +0000743voltha-dt-test: vst_venv
744 source ./$</bin/activate ; set -u ;\
745 cd tests/dt-workflow ;\
746 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
747
Emrehan UZUNd6f85892021-07-01 13:54:26 +0000748voltha-tt-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Hardik Windlass43118692020-07-01 22:16:47 +0530749
750voltha-tt-test: vst_venv
751 source ./$</bin/activate ; set -u ;\
752 cd tests/tt-workflow ;\
753 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
754
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200755voltha-tim-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
756
757voltha-tim-test: vst_venv
758 source ./$</bin/activate ; set -u ;\
759 cd tests/tim-workflow ;\
760 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
761
Matteo Scandolo142e6272020-04-29 17:36:59 -0700762voltha-scale-test: vst_venv
763 source ./$</bin/activate ; set -u ;\
764 cd tests/scale ;\
765 robot $(ROBOT_MISC_ARGS) Voltha_Scale_Tests.robot
766
TorstenThieme89caa142020-10-05 08:20:31 +0000767openonu-go-adapter-tests: vst_venv
TorstenThieme1619db22020-04-03 12:01:15 +0000768 source ./$</bin/activate ; set -u ;\
769 cd tests/openonu-go-adapter ;\
770 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
771
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200772voltha-bbf-adapter-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
773voltha-bbf-adapter-test: vst_venv
774 source ./$</bin/activate ; set -u ;\
775 cd tests/bbf-adapter ;\
776 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
777
TorstenThieme700ccbf2022-02-11 10:24:05 +0000778voltha-memory-leak-test: vst_venv
779 source ./$</bin/activate ; set -u ;\
780 cd tests/memory-leak ;\
781 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
TorstenThieme1619db22020-04-03 12:01:15 +0000782
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700783# self-test, lint, and setup targets
784
Joey Armstrong83874cc2022-11-26 09:40:08 -0500785# -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700786# virtualenv for the robot tools
Andy Bavier952b95b2020-03-06 09:53:42 -0700787# VOL-2724 Invoke pip via python3 to avoid pathname too long on QA jobs
Joey Armstrong83874cc2022-11-26 09:40:08 -0500788# Verify installation: make lint -or- make test
789# vol-4874 - python_310_migration.sh
790# -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700791vst_venv:
Joey Armstrong83874cc2022-11-26 09:40:08 -0500792 @echo "============================="
793 @echo "Installing python virtual env"
794 @echo "============================="
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700795 virtualenv -p python3 $@ ;\
796 source ./$@/bin/activate ;\
Andy Baviere118e052020-03-06 12:49:24 -0700797 python -m pip install -r requirements.txt
Joey Armstrong83874cc2022-11-26 09:40:08 -0500798 @echo
799 @echo "========================================"
800 @echo "Applying python 3.10.x migration patches"
801 @echo "========================================"
802 ./patches/python_310_migration.sh 'apply'
Joey Armstronga45431a2022-12-01 17:49:54 -0500803 @echo
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700804
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400805##----------------##
Joey Armstrong57bd70f2023-01-12 05:25:51 -0500806##---] TEST [---##
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400807##----------------##
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700808test: lint
809
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700810# tidy target will be more useful once issue with removing leading comments
811# is resolved: https://github.com/robotframework/robotframework/issues/3263
812tidy-robot: vst_venv
813 source ./$</bin/activate ; set -u ;\
814 python -m robot.tidy --inplace $(ROBOT_FILES);
815
816## Variables for gendocs
817TEST_SOURCE := $(wildcard tests/*/*.robot)
818TEST_BASENAME := $(basename $(TEST_SOURCE))
819TEST_DIRS := $(dir $(TEST_SOURCE))
820
Joey Armstrong83874cc2022-11-26 09:40:08 -0500821LIB_SOURCE := $(wildcard libraries/*.robot)
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700822LIB_BASENAME := $(basename $(LIB_SOURCE))
Joey Armstrong83874cc2022-11-26 09:40:08 -0500823LIB_DIRS := $(sort $(dir $(LIB_SOURCE)))
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700824
825.PHONY: gendocs lint test
826# In future explore use of --docformat REST - integration w/Sphinx?
Zack Williamsec53a1b2019-09-16 15:50:52 -0700827gendocs: vst_venv
Joey Armstronga45431a2022-12-01 17:49:54 -0500828 $(HIDE)echo " ** $(make) $@: ENTER"
829 source ./$</bin/activate \
830 && set -u \
831 && echo \
832 && echo " ** $(make) $@: robot.libdoc" \
833 && mkdir -pv $(addprefix $@/,$(LIB_DIRS)) \
834 && for dir in $(LIB_BASENAME); do\
Joey Armstrong83874cc2022-11-26 09:40:08 -0500835 python -m robot.libdoc --format HTML $$dir.robot $@/$$dir.html ;\
Joey Armstronga45431a2022-12-01 17:49:54 -0500836 done \
837 && echo \
838 && echo " ** $(make) $@: robot.testdoc" \
839 && mkdir -vp $(addprefix $@/,$(TEST_DIRS)) \
840 && for dir in $(TEST_BASENAME); do\
hwchiu0601ec72019-10-08 00:04:43 +0000841 python -m robot.testdoc $$dir.robot $@/$$dir.html ;\
842 done
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## -----------------------------------------------------------------------
Zack Williamsec53a1b2019-09-16 15:50:52 -0700847clean:
Joey Armstrong83874cc2022-11-26 09:40:08 -0500848 $(RM) -r gendocs
849 find . -name output.xml -print # no action performed ?
Zack Williamsec53a1b2019-09-16 15:50:52 -0700850
Joey Armstrong83874cc2022-11-26 09:40:08 -0500851clean-all sterile: clean
852 $(RM) -r vst_venv
Scott Baker60e570d2020-02-02 22:10:13 -0800853
Joey Armstrong83874cc2022-11-26 09:40:08 -0500854## -----------------------------------------------------------------------
855## -----------------------------------------------------------------------
Scott Baker60e570d2020-02-02 22:10:13 -0800856voltctl-docker-image-build:
857 cd docker && docker build -t opencord/voltctl:local -f Dockerfile.voltctl .
858
Joey Armstrong9684bea2023-07-19 12:04:09 -0400859## -----------------------------------------------------------------------
860## -----------------------------------------------------------------------
Scott Baker60e570d2020-02-02 22:10:13 -0800861voltctl-docker-image-install-kind:
Matteo Scandolo10acf562021-05-03 15:35:16 -0700862 @if [ "`kind get clusters | grep kind`" = '' ]; then echo "no kind cluster found" && exit 1; fi
863 kind load docker-image --name `kind get clusters | grep kind` opencord/voltctl:local
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400864
Joey Armstrong9684bea2023-07-19 12:04:09 -0400865## -----------------------------------------------------------------------
866## Intent: [yuck] replace with a standalone reusable installer 4script
867## -----------------------------------------------------------------------
868.PHONY: voltctl-download-url
869voltctl-download-url:
870 curl --silent https://api.github.com/repos/opencord/voltctl/releases/latest \
871 | grep 'browser_download_url' \
872 | grep 'linux-amd64'
873
874# [latest] https://github.com/opencord/voltctl/releases/download/untagged-cd611c39178f25b95a87/voltctl-1.9.1-linux-amd64
875
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400876# [EOF]