blob: 5613b8414f86a09195e8b080230a3d1c883c3d2b [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
Suchitra Vemuria311faf2020-11-23 13:46:52 -080043ROBOT_SANITY_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON.yaml
TorstenThieme379c3da2021-03-23 10:27:32 +000044ROBOT_SANITY_DT_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON-dt.yaml
45ROBOT_SANITY_TT_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON-tt.yaml
Zack Williamsa8fe75a2020-01-10 14:25:27 -070046ROBOT_FAIL_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind.yaml
47ROBOT_SANITY_MULT_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2x2.yaml
48ROBOT_SCALE_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-16.yaml
49ROBOT_SCALE_MULT_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-8x2.yaml
TorstenThiemeffb33922020-06-18 08:41:17 +000050ROBOT_SCALE_MULT_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-8x8.yaml
Zack Williamsa8fe75a2020-01-10 14:25:27 -070051ROBOT_DEBUG_LOG_OPT ?=
52ROBOT_MISC_ARGS ?=
Matteo Scandolo549df9e2020-09-04 11:09:18 -070053ROBOT_SANITY_TT_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tt.yaml
uwe ottrembka504ca3e2020-11-23 12:02:20 +010054ROBOT_DMI_SINGLE_BBSIM_FILE ?= $(ROOT_DIR)/tests/data/dmi-components-bbsim.yaml
TorstenThiemef8f9a802020-12-16 15:25:25 +000055ROBOT_DMI_SINGLE_ADTRAN_FILE ?= $(ROOT_DIR)/tests/data/dmi-components-adtran.yaml
Hardik Windlass17bd1142021-03-12 08:15:25 +000056ROBOT_SW_UPGRADE_FILE ?= $(ROOT_DIR)/tests/data/software-upgrade.yaml
TorstenThiemeff9c9142021-04-08 07:21:34 +000057ROBOT_PM_DATA_FILE ?= $(ROOT_DIR)/tests/data/pm-data.yaml
Hardik Windlass1ed2eee2021-06-25 09:51:03 +000058ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-multi-uni.yaml
59ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-multi-uni-2OLTx2ONUx2PON.yaml
60ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-multi-uni-tt.yaml
TorstenThieme00fe8262022-01-19 10:43:07 +000061ROBOT_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 +000062ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-fttb-1OLTx1PONx2ONUx2UNI.yaml
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +020063ROBOT_SANITY_TIM_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim.yaml
64ROBOT_SANITY_TIM_SINGLE_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-OLTxPONx2ONU.yaml
65ROBOT_SANITY_TIM_MULTI_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-OLTx2PONx2ONU.yaml
66ROBOT_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 +020067ROBOT_SANITY_BBF_ADPATER_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-bbf-adapter.yaml
68ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE ?= $(ROOT_DIR)/tests/data/bbsim-bbf-adapter_addDelete_tests.yaml
TorstenThieme0fa54432023-02-14 13:27:20 +000069ROBOT_SANITY_DT_SINGLE_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-1OLTx1PONx2ONU.yaml
Zack Williamsa8fe75a2020-01-10 14:25:27 -070070
Gilles Depatie45fbe042019-11-11 17:10:06 -050071# for backwards compatibility
72sanity-kind: sanity-single-kind
73
Matteo Scandolod7ca7f22021-01-26 14:10:37 -080074# to simplify ci
75sanity-kind-att: sanity-single-kind
76
Hardik Windlass1ed2eee2021-06-25 09:51:03 +000077# ATT Multi-UNI Sanity Target
78sanity-kind-multiuni-att: ROBOT_MISC_ARGS += -X -i sanity $(ROBOT_DEBUG_LOG_OPT)
79sanity-kind-multiuni-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
80sanity-kind-multiuni-att: ROBOT_FILE := Voltha_PODTests.robot
81sanity-kind-multiuni-att: voltha-test
82
83# ATT Multi-UNI Functional Suite Target
84functional-single-kind-multiuni-att: ROBOT_MISC_ARGS += -X -i sanityORmulti-uni $(ROBOT_DEBUG_LOG_OPT)
85functional-single-kind-multiuni-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
86functional-single-kind-multiuni-att: ROBOT_FILE := Voltha_PODTests.robot
87functional-single-kind-multiuni-att: voltha-test
88
Matteo Scandolo142e6272020-04-29 17:36:59 -070089# for scale pipeline
Hardik Windlass513afd12021-02-03 15:19:46 +000090voltha-scale: ROBOT_MISC_ARGS += -i activation -v NAMESPACE:voltha $(ROBOT_DEBUG_LOG_OPT)
Matteo Scandolo142e6272020-04-29 17:36:59 -070091voltha-scale: voltha-scale-test
92
Hardik Windlassf8b3ee62022-01-24 16:36:32 +000093# for onu-upgrade scale pipeline
94# Requirement: Pass ONU image details in following parameters
95# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
96voltha-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)
97voltha-scale-onu-upgrade: voltha-scale-test
98
Hardik Windlassa3d04b92020-02-17 15:06:05 +000099# target to invoke DT Workflow Sanity
100sanity-kind-dt: ROBOT_MISC_ARGS += -i sanityDt $(ROBOT_DEBUG_LOG_OPT)
101sanity-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
102sanity-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
103sanity-kind-dt: voltha-dt-test
104
Hardik Windlassa7b34be2022-03-22 17:28:31 +0000105# target to invoke DT FTTB Workflow Sanity
106sanity-kind-dt-fttb: ROBOT_MISC_ARGS += -i sanityDtFttb $(ROBOT_DEBUG_LOG_OPT)
107sanity-kind-dt-fttb: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE)
108sanity-kind-dt-fttb: ROBOT_FILE := Voltha_DT_FTTB_Tests.robot
109sanity-kind-dt-fttb: voltha-dt-test
110
Hardik Windlassd6aa0822020-06-29 20:18:12 +0530111functional-single-kind: ROBOT_MISC_ARGS += -i sanityORfunctional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Andy Bavier33e6dd32020-01-16 13:35:20 -0700112functional-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
113functional-single-kind: bbsim-kind
114
Matteo Scandolod7ca7f22021-01-26 14:10:37 -0800115# to simplify ci
116functional-single-kind-att: functional-single-kind
117
Hardik Windlass35706ba2020-02-20 08:16:42 +0000118# target to invoke DT Workflow Functional scenarios
Hardik Windlassd6aa0822020-06-29 20:18:12 +0530119functional-single-kind-dt: ROBOT_MISC_ARGS += -i sanityDtORfunctionalDt -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Hardik Windlass35706ba2020-02-20 08:16:42 +0000120functional-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
121functional-single-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
122functional-single-kind-dt: voltha-dt-test
123
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700124# target to invoke TT Workflow Sanity
Hardik Windlass43118692020-07-01 22:16:47 +0530125sanity-kind-tt: ROBOT_MISC_ARGS += -i sanityTT $(ROBOT_DEBUG_LOG_OPT)
126sanity-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
127sanity-kind-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
128sanity-kind-tt: voltha-tt-test
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700129
Hardik Windlassc609eb02022-02-22 11:28:37 +0000130sanity-kind-tt-maclearning: ROBOT_MISC_ARGS += -i sanityTT -v with_maclearning:True $(ROBOT_DEBUG_LOG_OPT)
131sanity-kind-tt-maclearning: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
132sanity-kind-tt-maclearning: ROBOT_FILE := Voltha_TT_PODTests.robot
133sanity-kind-tt-maclearning: voltha-tt-test
134
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000135sanity-kind-multiuni-tt: ROBOT_MISC_ARGS += -i sanityTT $(ROBOT_DEBUG_LOG_OPT)
136sanity-kind-multiuni-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
137sanity-kind-multiuni-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
138sanity-kind-multiuni-tt: voltha-tt-test
139
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700140# target to invoke TT Workflow Functional scenarios
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000141functional-single-kind-tt: ROBOT_MISC_ARGS += -i sanityTTORfunctionalTT -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700142functional-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
143functional-single-kind-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
144functional-single-kind-tt: voltha-tt-test
145
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000146functional-single-kind-multiuni-tt: ROBOT_MISC_ARGS += -i sanityTTORfunctionalTT -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
147functional-single-kind-multiuni-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
148functional-single-kind-multiuni-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
149functional-single-kind-multiuni-tt: voltha-tt-test
150
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200151# target to invoke TIM Workflow Sanity
152sanity-kind-tim: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
153sanity-kind-tim: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_SINGLE_PON_FILE)
154sanity-kind-tim: ROBOT_FILE := Voltha_TIM_PODTests.robot
155sanity-kind-tim: voltha-tim-test
156
157sanity-kind-tim-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
158sanity-kind-tim-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_SINGLE_PON_MULTI_ONU_FILE)
159sanity-kind-tim-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
160sanity-kind-tim-multi-onu: voltha-tim-test
161
162sanity-kind-tim-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
163sanity-kind-tim-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MULTI_PON_MULTI_ONU_FILE)
164sanity-kind-tim-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
165sanity-kind-tim-multi-pon-multi-onu: voltha-tim-test
166
167sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
168sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE)
169sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
170sanity-kind-tim-multi-olt-multi-pon-multi-onu: voltha-tim-test
171
172
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000173# target to invoke multiple OLTs Functional scenarios
Suchitra Vemuri2a6975a2020-11-25 12:49:38 -0800174functional-multi-olt: ROBOT_MISC_ARGS += -i sanityORfunctional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000175functional-multi-olt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800176functional-multi-olt: ROBOT_FILE := Voltha_PODTests.robot
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000177functional-multi-olt: voltha-test
178
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000179functional-multiuni-multiolt-att: ROBOT_MISC_ARGS += -X -i sanityORmulti-uni $(ROBOT_DEBUG_LOG_OPT)
180functional-multiuni-multiolt-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
181functional-multiuni-multiolt-att: ROBOT_FILE := Voltha_PODTests.robot
182functional-multiuni-multiolt-att: voltha-test
183
TorstenThieme90a99f82021-05-05 09:17:37 +0000184# target to invoke test with openonu go adapter applying 1T1GEM tech-profile at single ONU
1851t1gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T1GEM
1861t1gem-openonu-go-adapter-test: openonu-go-adapter-test
187
TorstenThiemefe7099e2021-01-29 08:41:04 +0000188# target to invoke test with openonu go adapter applying 1T4GEM tech-profile at single ONU
1891t4gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T4GEM
1901t4gem-openonu-go-adapter-test: openonu-go-adapter-test
191
192# target to invoke test with openonu go adapter applying 1T8GEM tech-profile at single ONU
1931t8gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T8GEM
1941t8gem-openonu-go-adapter-test: openonu-go-adapter-test
195
TorstenThieme1619db22020-04-03 12:01:15 +0000196# target to invoke openonu go adapter
TorstenThieme66c91a82020-10-19 13:37:53 +0000197openonu-go-adapter-test: ROBOT_MISC_ARGS += -v state2test:omci-flows-pushed -v testmode:SingleStateTime
Hardik Windlass9e3db232021-10-14 07:10:47 +0000198openonu-go-adapter-test: ROBOT_MISC_ARGS += -i sanityOnuGo -i functionalOnuGo
TorstenThieme41097be2021-07-06 09:52:50 +0000199openonu-go-adapter-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme1619db22020-04-03 12:01:15 +0000200openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
201openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUStateTests.robot
TorstenThieme89caa142020-10-05 08:20:31 +0000202openonu-go-adapter-test: openonu-go-adapter-tests
TorstenThieme1619db22020-04-03 12:01:15 +0000203
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200204# target to invoke bbf adapter
205bbf-adapter: ROBOT_MISC_ARGS += -i sanityBbfAdapter $(ROBOT_DEBUG_LOG_OPT)
206bbf-adapter: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_SINGLE_PON_FILE)
207bbf-adapter: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
208bbf-adapter: voltha-bbf-adapter-test
209
210bbf-adapter-functionality: ROBOT_MISC_ARGS += -i bbfAdapterFunctionality $(ROBOT_DEBUG_LOG_OPT)
211bbf-adapter-functionality: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE)
212bbf-adapter-functionality: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
213bbf-adapter-functionality: voltha-bbf-adapter-test
214
215bbf-adapter-functionality-single: ROBOT_MISC_ARGS += -i bbfAdapterFunctionalitySingleTest $(ROBOT_DEBUG_LOG_OPT)
216bbf-adapter-functionality-single: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE)
217bbf-adapter-functionality-single: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
218bbf-adapter-functionality-single: voltha-bbf-adapter-test
219
TorstenThieme89caa142020-10-05 08:20:31 +0000220# target to invoke test with openonu go adapter applying MIB-Upload-Templating
Hardik Windlass9e3db232021-10-14 07:10:47 +0000221mib-upload-templating-openonu-go-adapter-test: ROBOT_MISC_ARGS += -i functionalOnuGo
TorstenThieme5db695e2022-04-01 08:19:05 +0000222mib-upload-templating-openonu-go-adapter-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme89caa142020-10-05 08:20:31 +0000223mib-upload-templating-openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
224mib-upload-templating-openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUTemplateTests.robot
225mib-upload-templating-openonu-go-adapter-test: openonu-go-adapter-tests
TorstenThieme280c3802020-08-07 07:07:42 +0000226
TorstenThieme53450ff2021-05-11 09:44:33 +0000227# target to invoke test with openonu go adapter applying 1T8GEM tech-profile at single ONU with OMCI hardening
228# timeout is determined for omci_response_rate=9 and omci_timeout=1s
229openonu-go-adapter-omci-hardening-passed-test: ROBOT_MISC_ARGS += -v timeout:180s -v techprofile:1T8GEM
230openonu-go-adapter-omci-hardening-passed-test: openonu-go-adapter-test
231
232# target to invoke openonu go adapter failed state test at single ONU with OMCI hardening
233# test should show in case of too small omci_response_rate (<=7) in BBSIM that OMCI hardening does not work
234# test is PASS when ONU does not leave state 'starting-openomci'
Hardik Windlass9e3db232021-10-14 07:10:47 +0000235openonu-go-adapter-omci-hardening-failed-test: ROBOT_MISC_ARGS += -v timeout:300s -i NegativeStateTestOnuGo
TorstenThieme5db695e2022-04-01 08:19:05 +0000236openonu-go-adapter-omci-hardening-failed-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme53450ff2021-05-11 09:44:33 +0000237openonu-go-adapter-omci-hardening-failed-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
238openonu-go-adapter-omci-hardening-failed-test: ROBOT_FILE := Voltha_ONUNegativeStateTests.robot
239openonu-go-adapter-omci-hardening-failed-test: openonu-go-adapter-tests
240
TorstenThieme379c3da2021-03-23 10:27:32 +0000241# target to invoke reconcile tests with openonu go adapter at single ONU with ATT workflow (default workflow)
TorstenThieme90a99f82021-05-05 09:17:37 +0000242reconcile-openonu-go-adapter-test-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
243reconcile-openonu-go-adapter-test-att: reconcile-openonu-go-adapter-tests-att
TorstenThieme3d8bf552021-02-08 08:41:52 +0000244
TorstenThiemefe7099e2021-01-29 08:41:04 +0000245# target to invoke reconcile tests with openonu go adapter at single ONU with DT workflow
TorstenThieme3d8bf552021-02-08 08:41:52 +0000246reconcile-openonu-go-adapter-test-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
TorstenThieme379c3da2021-03-23 10:27:32 +0000247reconcile-openonu-go-adapter-test-dt: reconcile-openonu-go-adapter-tests-dt
TorstenThiemefe7099e2021-01-29 08:41:04 +0000248
249# target to invoke reconcile tests with openonu go adapter at single ONU with TT workflow
TorstenThieme3d8bf552021-02-08 08:41:52 +0000250reconcile-openonu-go-adapter-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
TorstenThieme379c3da2021-03-23 10:27:32 +0000251reconcile-openonu-go-adapter-test-tt: reconcile-openonu-go-adapter-tests-tt
TorstenThiemefe7099e2021-01-29 08:41:04 +0000252
TorstenThieme00fe8262022-01-19 10:43:07 +0000253# target to invoke reconcile tests with openonu go adapter at single ONU multi UNI with TT workflow
254reconcile-openonu-go-adapter-multi-uni-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
255reconcile-openonu-go-adapter-multi-uni-test-tt: ROBOT_MISC_ARGS += -v unitag_sub:True
256reconcile-openonu-go-adapter-multi-uni-test-tt: reconcile-openonu-go-adapter-tests-tt
257
TorstenThieme379c3da2021-03-23 10:27:32 +0000258# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with ATT workflow (default workflow)
TorstenThieme90a99f82021-05-05 09:17:37 +0000259reconcile-openonu-go-adapter-multi-olt-test-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
260reconcile-openonu-go-adapter-multi-olt-test-att: reconcile-openonu-go-adapter-tests-att
TorstenThieme379c3da2021-03-23 10:27:32 +0000261
262# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with DT workflow
263reconcile-openonu-go-adapter-multi-olt-test-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
264reconcile-openonu-go-adapter-multi-olt-test-dt: reconcile-openonu-go-adapter-tests-dt
265
266# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with TT workflow
267reconcile-openonu-go-adapter-multi-olt-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
268reconcile-openonu-go-adapter-multi-olt-test-tt: reconcile-openonu-go-adapter-tests-tt
269
TorstenThieme00fe8262022-01-19 10:43:07 +0000270# target to invoke reconcile tests with openonu go adapter with multiple OLTs multi UNI scenario with TT workflow
271reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_MULTIPLE_OLT_FILE)
272reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: ROBOT_MISC_ARGS += -v unitag_sub:True
273reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: reconcile-openonu-go-adapter-tests-tt
274
TorstenThieme90a99f82021-05-05 09:17:37 +0000275# target to invoke reconcile tests with openonu go adapter with ATT workflow
276reconcile-openonu-go-adapter-tests-att: ROBOT_MISC_ARGS += -v workflow:ATT
277reconcile-openonu-go-adapter-tests-att: reconcile-openonu-go-adapter-tests
278
TorstenThieme379c3da2021-03-23 10:27:32 +0000279# target to invoke reconcile tests with openonu go adapter with DT workflow
280reconcile-openonu-go-adapter-tests-dt: ROBOT_MISC_ARGS += -v workflow:DT
281reconcile-openonu-go-adapter-tests-dt: reconcile-openonu-go-adapter-tests
282
283# target to invoke reconcile tests with openonu go adapter with TT workflow
284reconcile-openonu-go-adapter-tests-tt: ROBOT_MISC_ARGS += -v workflow:TT
285reconcile-openonu-go-adapter-tests-tt: reconcile-openonu-go-adapter-tests
286
287# target to invoke reconcile tests with openonu go adapter at single ONU resp. multiple OLTs
Hardik Windlass9e3db232021-10-14 07:10:47 +0000288reconcile-openonu-go-adapter-tests: ROBOT_MISC_ARGS += -i functionalOnuGo
TorstenThieme0ec95eb2021-11-23 14:56:26 +0000289reconcile-openonu-go-adapter-tests: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme3d8bf552021-02-08 08:41:52 +0000290reconcile-openonu-go-adapter-tests: ROBOT_FILE := Voltha_ONUReconcileTests.robot
291reconcile-openonu-go-adapter-tests: openonu-go-adapter-tests
TorstenThieme440b7c02020-12-18 15:42:57 +0000292
TorstenThieme90a99f82021-05-05 09:17:37 +0000293# target to invoke test with openonu go adapter applying 1T1GEM tech-profile with multiple OLTs scenarios with ATT workflow
2941t1gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T1GEM
2951t1gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
296
TorstenThiemefe7099e2021-01-29 08:41:04 +0000297# target to invoke test with openonu go adapter applying 1T4GEM tech-profile with multiple OLTs scenarios with ATT workflow
2981t4gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T4GEM
2991t4gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
TorstenThiemec3c23232021-01-13 13:06:31 +0000300
TorstenThiemefe7099e2021-01-29 08:41:04 +0000301# target to invoke test with openonu go adapter applying 1T8GEM tech-profile with multiple OLTs scenarios with ATT workflow
3021t8gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T8GEM
TorstenThieme3d8bf552021-02-08 08:41:52 +00003031t8gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
TorstenThiemefe7099e2021-01-29 08:41:04 +0000304
305# target to invoke test with openonu go adapter (applying 1T1GEM tech-profile) with multiple OLTs scenarios with ATT workflow
306openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v state2test:omci-flows-pushed -v testmode:SingleStateTime
Hardik Windlass9e3db232021-10-14 07:10:47 +0000307openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -i sanityOnuGo -i functionalOnuGo
TorstenThieme41097be2021-07-06 09:52:50 +0000308openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThiemefe7099e2021-01-29 08:41:04 +0000309openonu-go-adapter-multi-olt-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
310openonu-go-adapter-multi-olt-test: ROBOT_FILE := Voltha_ONUStateTests.robot
311openonu-go-adapter-multi-olt-test: openonu-go-adapter-tests
TorstenThieme70bc5262021-01-19 12:12:55 +0000312
David Bainbridgef81cd642019-11-20 00:14:47 +0000313sanity-single-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500314sanity-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
315sanity-single-kind: bbsim-kind
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000316
Hardik Windlass9e3db232021-10-14 07:10:47 +0000317sanity-bbsim-att: ROBOT_MISC_ARGS += -v workflow:ATT
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700318sanity-bbsim-att: sanity-bbsim
319
Hardik Windlass9e3db232021-10-14 07:10:47 +0000320sanity-bbsim-dt: ROBOT_MISC_ARGS += -v workflow:DT
Matteo Scandolof310d962021-05-18 10:35:48 -0700321sanity-bbsim-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
322sanity-bbsim-dt: ROBOT_FILE := Voltha_BBSimTests.robot
323sanity-bbsim-dt: voltha-bbsim-test
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700324
Hardik Windlass9e3db232021-10-14 07:10:47 +0000325sanity-bbsim-tt: ROBOT_MISC_ARGS += -v workflow:TT
Matteo Scandolof310d962021-05-18 10:35:48 -0700326sanity-bbsim-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
327sanity-bbsim-tt: ROBOT_FILE := Voltha_BBSimTests.robot
328sanity-bbsim-tt: voltha-bbsim-test
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700329
330sanity-bbsim: ROBOT_MISC_ARGS += -i bbsimSanity $(ROBOT_DEBUG_LOG_OPT)
331sanity-bbsim: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
332sanity-bbsim: ROBOT_FILE := Voltha_BBSimTests.robot
333sanity-bbsim: voltha-bbsim-test
334
Matteo Scandolo95b22152021-02-05 15:39:34 -0800335voltha-bbsim-test: vst_venv
336 source ./$</bin/activate ; set -u ;\
337 cd tests/bbsim ;\
338 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
339
David Bainbridge32c45632020-04-13 08:47:09 -0700340rwcore-restart-single-kind: ROBOT_MISC_ARGS += -X -i functionalANDrwcore-restart $(ROBOT_DEBUG_LOG_OPT)
David Bainbridgef81cd642019-11-20 00:14:47 +0000341rwcore-restart-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_FAIL_SINGLE_PON_FILE)
ubuntu6b6e7d42020-03-02 12:35:42 -0800342rwcore-restart-single-kind: ROBOT_FILE := Voltha_FailureScenarios.robot
David Bainbridgef81cd642019-11-20 00:14:47 +0000343rwcore-restart-single-kind: voltha-test
344
David Bainbridge3d6d5d32019-12-17 19:05:35 +0000345single-kind: ROBOT_MISC_ARGS += -X -i $(TEST_TAGS) $(ROBOT_DEBUG_LOG_OPT)
346single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
347single-kind: ROBOT_FILE := Voltha_PODTests.robot
348single-kind: voltha-test
349
David Bainbridgef81cd642019-11-20 00:14:47 +0000350sanity-multi-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500351sanity-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
352sanity-multi-kind: bbsim-kind
Andy Bavierba9866b2019-10-11 07:11:53 -0700353
Andy Bavier8da0e132020-04-13 10:25:16 -0700354functional-multi-kind: ROBOT_MISC_ARGS += -i sanityORfunctional $(ROBOT_DEBUG_LOG_OPT)
355functional-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
356functional-multi-kind: bbsim-kind
357
Suchitra Vemuri8a9c3782019-10-23 12:43:01 -0700358bbsim-kind: ROBOT_MISC_ARGS += -X
Gilles Depatie45fbe042019-11-11 17:10:06 -0500359bbsim-kind: ROBOT_FILE := Voltha_PODTests.robot
360bbsim-kind: voltha-test
361
David Bainbridgef81cd642019-11-20 00:14:47 +0000362scale-single-kind: ROBOT_MISC_ARGS += -i active $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500363scale-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SCALE_SINGLE_PON_FILE)
364scale-single-kind: bbsim-scale-kind
365
David Bainbridgef81cd642019-11-20 00:14:47 +0000366scale-multi-kind: ROBOT_MISC_ARGS += -i active $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500367scale-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SCALE_MULT_PON_FILE)
368scale-multi-kind: bbsim-scale-kind
369
David Bainbridgef81cd642019-11-20 00:14:47 +0000370bbsim-scale-kind: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500371bbsim-scale-kind: ROBOT_FILE := Voltha_ScaleFunctionalTests.robot
372bbsim-scale-kind: voltha-test
Zack Williamsec53a1b2019-09-16 15:50:52 -0700373
hwchiuab524f02020-02-03 23:24:19 +0000374#Only supported in full mode
375system-scale-test: ROBOT_FILE := K8S_SystemTest.robot
Matteo Scandolo66fe6452021-01-05 13:03:41 -0800376system-scale-test: ROBOT_MISC_ARGS += -X -i functional $(ROBOT_DEBUG_LOG_OPT) -v teardown_device:True
hwchiuab524f02020-02-03 23:24:19 +0000377system-scale-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
378system-scale-test: voltha-test
hwchiu11289122019-11-27 16:20:15 +0000379
hwchiu85695932019-12-18 08:05:25 +0000380failure-test: ROBOT_MISC_ARGS += -X -i FailureTest $(ROBOT_DEBUG_LOG_OPT)
hwchiu3d9a0982020-02-06 00:19:19 +0000381failure-test: ROBOT_FILE := K8S_SystemTest.robot
hwchiu85695932019-12-18 08:05:25 +0000382failure-test: ROBOT_CONFIG_FILE := $(ROBOT_FAIL_SINGLE_PON_FILE)
383failure-test: voltha-test
384
Scott Baker60e570d2020-02-02 22:10:13 -0800385bbsim-alarms-kind: ROBOT_MISC_ARGS += -X -i active
386bbsim-alarms-kind: ROBOT_FILE := Voltha_AlarmTests.robot
Andy Baviere118e052020-03-06 12:49:24 -0700387bbsim-alarms-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
Scott Baker60e570d2020-02-02 22:10:13 -0800388bbsim-alarms-kind: voltctl-docker-image-build voltctl-docker-image-install-kind voltha-test
389
Andy Bavierc1904dc2020-03-20 11:39:15 -0700390bbsim-errorscenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
391bbsim-errorscenarios: ROBOT_FILE := Voltha_ErrorScenarios.robot
392bbsim-errorscenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
393bbsim-errorscenarios: voltha-test
394
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000395bbsim-multiuni-errorscenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
396bbsim-multiuni-errorscenarios-att: ROBOT_FILE := Voltha_ErrorScenarios.robot
397bbsim-multiuni-errorscenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
398bbsim-multiuni-errorscenarios-att: voltha-test
399
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800400bbsim-multiolt-errorscenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
401bbsim-multiolt-errorscenarios: ROBOT_FILE := Voltha_ErrorScenarios.robot
402bbsim-multiolt-errorscenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
403bbsim-multiolt-errorscenarios: voltha-test
404
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000405bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
406bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_FILE := Voltha_ErrorScenarios.robot
407bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
408bbsim-multiuni-multiolt-errorscenarios-att: voltha-test
409
Hardik Windlasscbcca312020-04-20 21:46:11 +0530410bbsim-errorscenarios-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
411bbsim-errorscenarios-dt: ROBOT_FILE := Voltha_ErrorScenarios.robot
412bbsim-errorscenarios-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
413bbsim-errorscenarios-dt: voltha-test
414
Hardik Windlasse05e4712020-04-29 10:40:42 +0530415bbsim-failurescenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
Andy Bavier8da0e132020-04-13 10:25:16 -0700416bbsim-failurescenarios: ROBOT_FILE := Voltha_FailureScenarios.robot
417bbsim-failurescenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
418bbsim-failurescenarios: voltha-test
419
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000420bbsim-multiuni-failurescenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
421bbsim-multiuni-failurescenarios-att: ROBOT_FILE := Voltha_FailureScenarios.robot
422bbsim-multiuni-failurescenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
423bbsim-multiuni-failurescenarios-att: voltha-test
424
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800425bbsim-multiolt-failurescenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
426bbsim-multiolt-failurescenarios: ROBOT_FILE := Voltha_FailureScenarios.robot
427bbsim-multiolt-failurescenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
428bbsim-multiolt-failurescenarios: voltha-test
429
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000430bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
431bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_FILE := Voltha_FailureScenarios.robot
432bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
433bbsim-multiuni-multiolt-failurescenarios-att: voltha-test
434
Hardik Windlass5ceb84e2021-02-11 11:17:08 +0000435bbsim-multiolt-kind: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalReboot
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800436bbsim-multiolt-kind: ROBOT_FILE := Voltha_MultiOLT_Tests.robot
437bbsim-multiolt-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
438bbsim-multiolt-kind: voltha-test
439
Hardik Windlass5ceb84e2021-02-11 11:17:08 +0000440bbsim-multiolt-kind-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalRebootDt
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800441bbsim-multiolt-kind-dt: ROBOT_FILE := Voltha_DT_MultiOLT_Tests.robot
442bbsim-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
443bbsim-multiolt-kind-dt: voltha-dt-test
444
445multiolt-kind-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -i functionalDt
446multiolt-kind-dt: ROBOT_FILE := Voltha_DT_MultiOLT_Tests.robot
447multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
448multiolt-kind-dt: voltha-dt-test
449
Hardik Windlass9df139e2020-04-24 14:54:54 +0530450bbsim-failurescenarios-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitchOnuRebootDt -e PhysicalOltRebootDt
451bbsim-failurescenarios-dt: ROBOT_FILE := Voltha_DT_FailureScenarios.robot
452bbsim-failurescenarios-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
453bbsim-failurescenarios-dt: voltha-dt-test
454
Hardik Windlassb1bda362021-11-24 11:54:36 +0000455bbsim-failurescenarios-tt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOltRebootTT -e dataplaneTT
TorstenThieme136ebf72021-02-26 14:27:07 +0000456bbsim-failurescenarios-tt: ROBOT_FILE := Voltha_TT_FailureScenarios.robot
457bbsim-failurescenarios-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
458bbsim-failurescenarios-tt: voltha-tt-test
459
Andrea Campanellaf1081572021-10-06 16:06:55 +0200460onos-ha-test: ROBOT_MISC_ARGS += -e notready -X $(ROBOT_DEBUG_LOG_OPT)
461onos-ha-test: ROBOT_FILE := Voltha_ONOSHATests.robot
462onos-ha-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
463onos-ha-test: voltha-test
464
Matteo Scandoloab48f9e2021-06-11 17:08:00 +0200465voltha-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
hwchiu11289122019-11-27 16:20:15 +0000466
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700467voltha-test: vst_venv
468 source ./$</bin/activate ; set -u ;\
469 cd tests/functional ;\
470 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
471
TorstenThiemef8f9a802020-12-16 15:25:25 +0000472bbsim-dmi-hw-management-test: ROBOT_MISC_ARGS += -e notreadyDMI -i functionalDMI -e bbsimUnimplementedDMI
473bbsim-dmi-hw-management-test: ROBOT_FILE := dmi-hw-management.robot
474bbsim-dmi-hw-management-test: ROBOT_CONFIG_FILE := $(ROBOT_DMI_SINGLE_BBSIM_FILE)
475bbsim-dmi-hw-management-test: voltha-dmi-test
uwe ottrembka504ca3e2020-11-23 12:02:20 +0100476
TorstenThiemef8f9a802020-12-16 15:25:25 +0000477voltha-dmi-hw-management-test: ROBOT_MISC_ARGS += -e notreadyDMI -i functionalDMI
478voltha-dmi-hw-management-test: ROBOT_FILE := dmi-hw-management.robot
479voltha-dmi-hw-management-test: ROBOT_CONFIG_FILE := $(ROBOT_DMI_SINGLE_ADTRAN_FILE)
480voltha-dmi-hw-management-test: voltha-dmi-test
481
482voltha-dmi-test: vst_venv
uwe ottrembka504ca3e2020-11-23 12:02:20 +0100483 source ./$</bin/activate ; set -u ;\
484 cd tests/dmi-interface ;\
485 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
486
TorstenThiemeff9c9142021-04-08 07:21:34 +0000487# target to invoke single ONU pm data scenarios in ATT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000488voltha-pm-data-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000489voltha-pm-data-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
490voltha-pm-data-single-kind-att: voltha-pm-data-tests
491
492# target to invoke single ONU pm data scenarios in DT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000493voltha-pm-data-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000494voltha-pm-data-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
495voltha-pm-data-single-kind-dt: voltha-pm-data-tests
496
497# target to invoke single ONU pm data scenarios in TT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000498voltha-pm-data-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
TorstenThieme90a99f82021-05-05 09:17:37 +0000499voltha-pm-data-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
500voltha-pm-data-single-kind-tt: voltha-pm-data-tests
TorstenThiemeff9c9142021-04-08 07:21:34 +0000501
502# target to invoke multiple OLTs pm data scenarios in ATT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000503voltha-pm-data-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000504voltha-pm-data-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
505voltha-pm-data-multiolt-kind-att: voltha-pm-data-tests
506
507# target to invoke multiple OLTs pm data scenarios in DT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000508voltha-pm-data-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000509voltha-pm-data-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
510voltha-pm-data-multiolt-kind-dt: voltha-pm-data-tests
511
512# target to invoke multiple OLTs pm data scenarios in TT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000513voltha-pm-data-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000514voltha-pm-data-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
515voltha-pm-data-multiolt-kind-tt: voltha-pm-data-tests
516
517voltha-pm-data-tests: ROBOT_MISC_ARGS += -i functional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
518voltha-pm-data-tests: ROBOT_PM_CONFIG_FILE := $(ROBOT_PM_DATA_FILE)
519voltha-pm-data-tests: ROBOT_FILE := Voltha_ONUPMTests.robot
520voltha-pm-data-tests: voltha-pm-data-test
521
522voltha-pm-data-test: vst_venv
523 source ./$</bin/activate ; set -u ;\
524 cd tests/pm-data ;\
525 robot -V $(ROBOT_CONFIG_FILE) -V $(ROBOT_PM_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
526
TorstenThieme1c1f5fa2021-06-18 13:40:30 +0000527# target to invoke single ONU OMCI Get scenarios in ATT workflow
528voltha-onu-omci-get-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
529voltha-onu-omci-get-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
530voltha-onu-omci-get-single-kind-att: voltha-onu-omci-get-tests
531
532# target to invoke single ONU OMCI Get scenarios in DT workflow
533voltha-onu-omci-get-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
534voltha-onu-omci-get-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
535voltha-onu-omci-get-single-kind-dt: voltha-onu-omci-get-tests
536
TorstenThiemea7315f12021-07-23 11:56:34 +0000537# target to invoke single ONU OMCI Get scenarios in TT workflow
TorstenThieme1c1f5fa2021-06-18 13:40:30 +0000538voltha-onu-omci-get-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
539voltha-onu-omci-get-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
540voltha-onu-omci-get-single-kind-tt: voltha-onu-omci-get-tests
541
542# target to invoke multiple OLTs OMCI Get scenarios in ATT workflow
543voltha-onu-omci-get-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
544voltha-onu-omci-get-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
545voltha-onu-omci-get-multiolt-kind-att: voltha-onu-omci-get-tests
546
547# target to invoke multiple OLTs OMCI Get scenarios in DT workflow
548voltha-onu-omci-get-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
549voltha-onu-omci-get-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
550voltha-onu-omci-get-multiolt-kind-dt: voltha-onu-omci-get-tests
551
552# target to invoke multiple OLTs OMCI Get scenarios in TT workflow
553voltha-onu-omci-get-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
554voltha-onu-omci-get-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
555voltha-onu-omci-get-multiolt-kind-tt: voltha-onu-omci-get-tests
556
557voltha-onu-omci-get-tests: ROBOT_MISC_ARGS += -i functionalOnuGo -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
558voltha-onu-omci-get-tests: ROBOT_FILE := Voltha_ONUOmciGetTest.robot
559voltha-onu-omci-get-tests: openonu-go-adapter-tests
560
TorstenThiemea7315f12021-07-23 11:56:34 +0000561# target to invoke single ONU Flows Check in ATT workflow
562voltha-onu-flows-check-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
563voltha-onu-flows-check-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
564voltha-onu-flows-check-single-kind-att: voltha-onu-flows-check-tests
565
566# target to invoke single ONU Flows Check scenarios in DT workflow
567voltha-onu-flows-check-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT -v techprofile:1T8GEM
568voltha-onu-flows-check-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
569voltha-onu-flows-check-single-kind-dt: voltha-onu-flows-check-tests
570
571# target to invoke single ONU Flows Check scenarios in TT workflow
572voltha-onu-flows-check-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT -v techprofile:1T4GEM
573voltha-onu-flows-check-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
574voltha-onu-flows-check-single-kind-tt: voltha-onu-flows-check-tests
575
576# target to invoke multiple OLTs Flows Check scenarios in ATT workflow
577voltha-onu-flows-check-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
578voltha-onu-flows-check-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
579voltha-onu-flows-check-multiolt-kind-att: voltha-onu-flows-check-tests
580
581# target to invoke multiple OLTs Flows Check scenarios in DT workflow
582voltha-onu-flows-check-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT -v techprofile:1T8GEM
583voltha-onu-flows-check-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
584voltha-onu-flows-check-multiolt-kind-dt: voltha-onu-flows-check-tests
585
586# target to invoke multiple OLTs Flows Check scenarios in TT workflow
587voltha-onu-flows-check-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT -v techprofile:1T4GEM
588voltha-onu-flows-check-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
589voltha-onu-flows-check-multiolt-kind-tt: voltha-onu-flows-check-tests
590
591voltha-onu-flows-check-tests: ROBOT_MISC_ARGS += -i functionalOnuGo -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
592voltha-onu-flows-check-tests: ROBOT_FILE := Voltha_ONUFlowChecks.robot
593voltha-onu-flows-check-tests: openonu-go-adapter-tests
594
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000595# 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 +0000596# <app-name>,<version>,<oar-url>*<app-name>,<version>,<oar-url>*
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000597onos-app-upgrade-test: ROBOT_MISC_ARGS += -e notready -i functional
598onos-app-upgrade-test: ROBOT_FILE := ONOS_AppsUpgrade.robot
Hardik Windlass17bd1142021-03-12 08:15:25 +0000599onos-app-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000600onos-app-upgrade-test: software-upgrade-test
601
602# 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 +0000603# <comp-label>,<comp-container>,<comp-image>*<comp-label>,<comp-container>,<comp-image>*
Hardik Windlass76f68212022-01-19 08:16:14 +0000604voltha-comp-upgrade-test: ROBOT_MISC_ARGS += -e notready -i VolthaCompMinorVerUpgrade
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000605voltha-comp-upgrade-test: ROBOT_FILE := Voltha_ComponentsUpgrade.robot
Hardik Windlass17bd1142021-03-12 08:15:25 +0000606voltha-comp-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000607voltha-comp-upgrade-test: software-upgrade-test
608
Hardik Windlass76f68212022-01-19 08:16:14 +0000609# Voltha Components to test for Software Upgrade need to be passed in the 'voltha_comps_under_test' variable in format:
610# <comp-label>,<comp-container>,<comp-image>*<comp-label>,<comp-container>,<comp-image>*
611voltha-comp-rolling-upgrade-test: ROBOT_MISC_ARGS += -e notready -i VolthaCompMinorVerRollingUpgrade
612voltha-comp-rolling-upgrade-test: ROBOT_FILE := Voltha_ComponentsUpgrade.robot
613voltha-comp-rolling-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
614voltha-comp-rolling-upgrade-test: software-upgrade-test
615
Hardik Windlass17bd1142021-03-12 08:15:25 +0000616# Requirement: Pass ONU image details in following parameters
Hardik Windlassba1bd272021-06-22 08:29:33 +0000617# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
Hardik Windlass17bd1142021-03-12 08:15:25 +0000618onu-upgrade-test: ROBOT_MISC_ARGS += -e notready -i functional
619onu-upgrade-test: ROBOT_FILE := ONU_Upgrade.robot
620onu-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
621onu-upgrade-test: software-upgrade-test
622
TorstenThiemef3e492c2021-11-08 15:25:48 +0000623# Requirement: Pass ONU image details in following parameters
624# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
625onu-upgrade-test-multiolt-kind-att: ROBOT_MISC_ARGS += -e notready -i functionalMultipleONUs
626onu-upgrade-test-multiolt-kind-att: ROBOT_FILE := ONU_Upgrade.robot
627onu-upgrade-test-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
628onu-upgrade-test-multiolt-kind-att: software-upgrade-test
629
TorstenThieme0c8cc6f2022-02-16 13:48:21 +0000630# Voltha openonu MIB Audit tests att workflow single kind
631onu-mib-audit-test-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
632onu-mib-audit-test-single-kind-att: voltha-onu-mib-audit-tests
633
634# Voltha openonu MIB Audit tests t workflow single kind
635onu-mib-audit-test-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
636onu-mib-audit-test-single-kind-dt: voltha-onu-mib-audit-tests
637
638# Voltha openonu MIB Audit tests tt workflow single kind
639onu-mib-audit-test-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
640onu-mib-audit-test-single-kind-tt: voltha-onu-mib-audit-tests
641
642# Voltha openonu MIB Audit tests att workflow multiple OLTs
643onu-mib-audit-test-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
644onu-mib-audit-test-multiolt-kind-att: voltha-onu-mib-audit-tests
645
646# Voltha openonu MIB Audit tests tt workflow multiple OLTs
647onu-mib-audit-test-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
648onu-mib-audit-test-multiolt-kind-dt: voltha-onu-mib-audit-tests
649
650# Voltha openonu MIB Audit tests tt workflow multiple OLTs
651onu-mib-audit-test-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
652onu-mib-audit-test-multiolt-kind-tt: voltha-onu-mib-audit-tests
653
654voltha-onu-mib-audit-tests: ROBOT_MISC_ARGS += -i functional -e notready --noncritical non-critical
655voltha-onu-mib-audit-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
656voltha-onu-mib-audit-tests: ROBOT_FILE := Voltha_ONUMibAudit.robot
657voltha-onu-mib-audit-tests: openonu-go-adapter-tests
658
TorstenThieme0fa54432023-02-14 13:27:20 +0000659# Voltha Components Memory Leak tests dt workflow 1 OLT 1 PON 2 ONUs
660memory-leak-test-single-pon-multi-onu-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_MULTI_ONU_FILE)
661memory-leak-test-single-pon-multi-onu-dt: voltha-memory-leak-tests
TorstenThieme700ccbf2022-02-11 10:24:05 +0000662
663voltha-memory-leak-tests: ROBOT_MISC_ARGS += -i functionalMemoryLeak -e notready --noncritical non-critical
664voltha-memory-leak-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
665voltha-memory-leak-tests: ROBOT_FILE := VOLTHA_Memory_Leak_Tests.robot
666voltha-memory-leak-tests: voltha-memory-leak-test
667
TorstenThiemed9cc06e2022-11-09 12:12:46 +0000668# Voltha openonu robustness tests att workflow
669onu-robustness-test-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
670onu-robustness-test-single-kind-att: ROBOT_MISC_ARGS += -i functional
671onu-robustness-test-single-kind-att: voltha-onu-robustness-tests
672
673# Voltha openonu robustness tests dt workflow
674onu-robustness-test-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
675onu-robustness-test-single-kind-dt: ROBOT_MISC_ARGS += -i functional
676onu-robustness-test-single-kind-dt: voltha-onu-robustness-tests
677
678# Voltha openonu robustness tests tt workflow
679onu-robustness-test-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
680onu-robustness-test-single-kind-tt: ROBOT_MISC_ARGS += -i functional
681onu-robustness-test-single-kind-tt: voltha-onu-robustness-tests
682
683# Voltha openonu robustness tests multi-uni tt workflow
684onu-robustness-test-multi-uni-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
685onu-robustness-test-multi-uni-kind-tt: ROBOT_MISC_ARGS += -v unitag_sub:True -i functionalMultiUni
686onu-robustness-test-multi-uni-kind-tt: voltha-onu-robustness-tests
687
688voltha-onu-robustness-tests: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
689voltha-onu-robustness-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
690voltha-onu-robustness-tests: ROBOT_FILE := Voltha_ONUErrorTests.robot
691voltha-onu-robustness-tests: openonu-go-adapter-tests
692
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000693software-upgrade-test: vst_venv
694 source ./$</bin/activate ; set -u ;\
695 cd tests/software-upgrades ;\
696 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
697
Matteo Scandoloab48f9e2021-06-11 17:08:00 +0200698voltha-dt-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Hardik Windlass79b40ff2020-06-11 22:55:47 +0530699
Hardik Windlassa3d04b92020-02-17 15:06:05 +0000700voltha-dt-test: vst_venv
701 source ./$</bin/activate ; set -u ;\
702 cd tests/dt-workflow ;\
703 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
704
Emrehan UZUNd6f85892021-07-01 13:54:26 +0000705voltha-tt-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Hardik Windlass43118692020-07-01 22:16:47 +0530706
707voltha-tt-test: vst_venv
708 source ./$</bin/activate ; set -u ;\
709 cd tests/tt-workflow ;\
710 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
711
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200712voltha-tim-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
713
714voltha-tim-test: vst_venv
715 source ./$</bin/activate ; set -u ;\
716 cd tests/tim-workflow ;\
717 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
718
Matteo Scandolo142e6272020-04-29 17:36:59 -0700719voltha-scale-test: vst_venv
720 source ./$</bin/activate ; set -u ;\
721 cd tests/scale ;\
722 robot $(ROBOT_MISC_ARGS) Voltha_Scale_Tests.robot
723
TorstenThieme89caa142020-10-05 08:20:31 +0000724openonu-go-adapter-tests: vst_venv
TorstenThieme1619db22020-04-03 12:01:15 +0000725 source ./$</bin/activate ; set -u ;\
726 cd tests/openonu-go-adapter ;\
727 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
728
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200729voltha-bbf-adapter-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
730voltha-bbf-adapter-test: vst_venv
731 source ./$</bin/activate ; set -u ;\
732 cd tests/bbf-adapter ;\
733 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
734
TorstenThieme700ccbf2022-02-11 10:24:05 +0000735voltha-memory-leak-test: vst_venv
736 source ./$</bin/activate ; set -u ;\
737 cd tests/memory-leak ;\
738 robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
TorstenThieme1619db22020-04-03 12:01:15 +0000739
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700740# self-test, lint, and setup targets
741
Joey Armstrong83874cc2022-11-26 09:40:08 -0500742# -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700743# virtualenv for the robot tools
Andy Bavier952b95b2020-03-06 09:53:42 -0700744# VOL-2724 Invoke pip via python3 to avoid pathname too long on QA jobs
Joey Armstrong83874cc2022-11-26 09:40:08 -0500745# Verify installation: make lint -or- make test
746# vol-4874 - python_310_migration.sh
747# -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700748vst_venv:
Joey Armstrong83874cc2022-11-26 09:40:08 -0500749 @echo "============================="
750 @echo "Installing python virtual env"
751 @echo "============================="
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700752 virtualenv -p python3 $@ ;\
753 source ./$@/bin/activate ;\
Andy Baviere118e052020-03-06 12:49:24 -0700754 python -m pip install -r requirements.txt
Joey Armstrong83874cc2022-11-26 09:40:08 -0500755 @echo
756 @echo "========================================"
757 @echo "Applying python 3.10.x migration patches"
758 @echo "========================================"
759 ./patches/python_310_migration.sh 'apply'
Joey Armstronga45431a2022-12-01 17:49:54 -0500760 @echo
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700761
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400762##----------------##
Joey Armstrong57bd70f2023-01-12 05:25:51 -0500763##---] TEST [---##
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400764##----------------##
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700765test: lint
766
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700767# tidy target will be more useful once issue with removing leading comments
768# is resolved: https://github.com/robotframework/robotframework/issues/3263
769tidy-robot: vst_venv
770 source ./$</bin/activate ; set -u ;\
771 python -m robot.tidy --inplace $(ROBOT_FILES);
772
773## Variables for gendocs
774TEST_SOURCE := $(wildcard tests/*/*.robot)
775TEST_BASENAME := $(basename $(TEST_SOURCE))
776TEST_DIRS := $(dir $(TEST_SOURCE))
777
Joey Armstrong83874cc2022-11-26 09:40:08 -0500778LIB_SOURCE := $(wildcard libraries/*.robot)
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700779LIB_BASENAME := $(basename $(LIB_SOURCE))
Joey Armstrong83874cc2022-11-26 09:40:08 -0500780LIB_DIRS := $(sort $(dir $(LIB_SOURCE)))
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700781
782.PHONY: gendocs lint test
783# In future explore use of --docformat REST - integration w/Sphinx?
Zack Williamsec53a1b2019-09-16 15:50:52 -0700784gendocs: vst_venv
Joey Armstronga45431a2022-12-01 17:49:54 -0500785 $(HIDE)echo " ** $(make) $@: ENTER"
786 source ./$</bin/activate \
787 && set -u \
788 && echo \
789 && echo " ** $(make) $@: robot.libdoc" \
790 && mkdir -pv $(addprefix $@/,$(LIB_DIRS)) \
791 && for dir in $(LIB_BASENAME); do\
Joey Armstrong83874cc2022-11-26 09:40:08 -0500792 python -m robot.libdoc --format HTML $$dir.robot $@/$$dir.html ;\
Joey Armstronga45431a2022-12-01 17:49:54 -0500793 done \
794 && echo \
795 && echo " ** $(make) $@: robot.testdoc" \
796 && mkdir -vp $(addprefix $@/,$(TEST_DIRS)) \
797 && for dir in $(TEST_BASENAME); do\
hwchiu0601ec72019-10-08 00:04:43 +0000798 python -m robot.testdoc $$dir.robot $@/$$dir.html ;\
799 done
Joey Armstronga45431a2022-12-01 17:49:54 -0500800 $(HIDE)echo " ** $(make) $@: LEAVE"
Zack Williamsec53a1b2019-09-16 15:50:52 -0700801
Joey Armstrong83874cc2022-11-26 09:40:08 -0500802## -----------------------------------------------------------------------
803## -----------------------------------------------------------------------
Zack Williamsec53a1b2019-09-16 15:50:52 -0700804clean:
Joey Armstrong83874cc2022-11-26 09:40:08 -0500805 $(RM) -r gendocs
806 find . -name output.xml -print # no action performed ?
Zack Williamsec53a1b2019-09-16 15:50:52 -0700807
Joey Armstrong83874cc2022-11-26 09:40:08 -0500808clean-all sterile: clean
809 $(RM) -r vst_venv
Scott Baker60e570d2020-02-02 22:10:13 -0800810
Joey Armstrong83874cc2022-11-26 09:40:08 -0500811## -----------------------------------------------------------------------
812## -----------------------------------------------------------------------
Scott Baker60e570d2020-02-02 22:10:13 -0800813voltctl-docker-image-build:
814 cd docker && docker build -t opencord/voltctl:local -f Dockerfile.voltctl .
815
816voltctl-docker-image-install-kind:
Matteo Scandolo10acf562021-05-03 15:35:16 -0700817 @if [ "`kind get clusters | grep kind`" = '' ]; then echo "no kind cluster found" && exit 1; fi
818 kind load docker-image --name `kind get clusters | grep kind` opencord/voltctl:local
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400819
820# [EOF]