blob: 13ff62a7239aeb3f495c18ffc7c64e3cfa64f9d1 [file] [log] [blame]
Joey Armstrong83874cc2022-11-26 09:40:08 -05001# -*- makefile -*-
2# -----------------------------------------------------------------------
Joey Armstrong9fadcbe2024-01-17 19:00:37 -05003# Copyright 2022-2024 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 Armstronga5278142023-06-28 16:56:54 -040020##-------------------##
21##---] GLOBALS [---##
22##-------------------##
23TOP ?=$(strip \
24 $(dir \
25 $(abspath $(lastword $(MAKEFILE_LIST)))\
26 )\
27)
28
Joey Armstrong83874cc2022-11-26 09:40:08 -050029# Assign early: altered by include
Zack Williamsa8fe75a2020-01-10 14:25:27 -070030ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
Kailash92764922019-07-25 08:21:39 -070031
Joey Armstrong83874cc2022-11-26 09:40:08 -050032##--------------------##
33##---] INCLUDES [---##
34##--------------------##
Joey Armstronga5278142023-06-28 16:56:54 -040035include $(TOP)/config.mk# # configure
36include $(TOP)/makefiles/include.mk # top level include
Joey Armstrong83874cc2022-11-26 09:40:08 -050037
Zack Williamsa8fe75a2020-01-10 14:25:27 -070038# Configuration and lists of files for linting/testing
39VERSION ?= $(shell cat ./VERSION)
Zack Williamsa8fe75a2020-01-10 14:25:27 -070040
Joey Armstronga5278142023-06-28 16:56:54 -040041## -----------------------------------------------------------------------
42## Consumed by makefiles/lint/*/include.mk
43## -----------------------------------------------------------------------
44# JSON_FILES := $(shell find ./tests -name *.json -print)
45# PYTHON_FILES := $(wildcard libraries/*.py)
46# ROBOT_FILES := $(shell find . -name *.robot -print)
47# YAML_FILES := $(shell find ./tests -type f \( -name *.yaml -o -name *.yml \) -print)
Zack Williamsa8fe75a2020-01-10 14:25:27 -070048
Joey Armstronga5278142023-06-28 16:56:54 -040049## -----------------------------------------------------------------------
50## Intent: Helper macros
51## -----------------------------------------------------------------------
52run-robot-test =$(strip \
53 $(foreach path,$(1),\
54 $(activate) \
55 && cd $(path) \
56 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE) \
57 ))
58
59## -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -070060# Robot config
Joey Armstronga5278142023-06-28 16:56:54 -040061## -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -070062ROBOT_SANITY_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind.yaml
Hardik Windlassa3d04b92020-02-17 15:06:05 +000063ROBOT_SANITY_DT_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt.yaml
bharat raj58488b32023-05-11 22:46:18 +053064ROBOT_SANITY_DT_SINGLE_PON_FILE_VGC ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-vgc.yaml
Suchitra Vemuria311faf2020-11-23 13:46:52 -080065ROBOT_SANITY_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON.yaml
bharat raj58488b32023-05-11 22:46:18 +053066ROBOT_SANITY_MULTIPLE_OLT_FILE_VGC ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON_VGC.yaml
TorstenThieme379c3da2021-03-23 10:27:32 +000067ROBOT_SANITY_DT_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON-dt.yaml
68ROBOT_SANITY_TT_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2OLTx2ONUx2PON-tt.yaml
Zack Williamsa8fe75a2020-01-10 14:25:27 -070069ROBOT_FAIL_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind.yaml
70ROBOT_SANITY_MULT_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2x2.yaml
71ROBOT_SCALE_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-16.yaml
72ROBOT_SCALE_MULT_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-8x2.yaml
TorstenThiemeffb33922020-06-18 08:41:17 +000073ROBOT_SCALE_MULT_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-8x8.yaml
Zack Williamsa8fe75a2020-01-10 14:25:27 -070074ROBOT_DEBUG_LOG_OPT ?=
75ROBOT_MISC_ARGS ?=
Matteo Scandolo549df9e2020-09-04 11:09:18 -070076ROBOT_SANITY_TT_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tt.yaml
uwe ottrembka504ca3e2020-11-23 12:02:20 +010077ROBOT_DMI_SINGLE_BBSIM_FILE ?= $(ROOT_DIR)/tests/data/dmi-components-bbsim.yaml
TorstenThiemef8f9a802020-12-16 15:25:25 +000078ROBOT_DMI_SINGLE_ADTRAN_FILE ?= $(ROOT_DIR)/tests/data/dmi-components-adtran.yaml
Hardik Windlass17bd1142021-03-12 08:15:25 +000079ROBOT_SW_UPGRADE_FILE ?= $(ROOT_DIR)/tests/data/software-upgrade.yaml
TorstenThiemeff9c9142021-04-08 07:21:34 +000080ROBOT_PM_DATA_FILE ?= $(ROOT_DIR)/tests/data/pm-data.yaml
Hardik Windlass1ed2eee2021-06-25 09:51:03 +000081ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-multi-uni.yaml
82ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-multi-uni-2OLTx2ONUx2PON.yaml
83ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-multi-uni-tt.yaml
TorstenThieme00fe8262022-01-19 10:43:07 +000084ROBOT_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 +000085ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-fttb-1OLTx1PONx2ONUx2UNI.yaml
bharat raj58488b32023-05-11 22:46:18 +053086ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE_VGC ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-fttb-1OLTx1PONx2ONUx2UNI.yaml
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +020087ROBOT_SANITY_TIM_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim.yaml
88ROBOT_SANITY_TIM_SINGLE_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-OLTxPONx2ONU.yaml
89ROBOT_SANITY_TIM_MULTI_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-OLTx2PONx2ONU.yaml
90ROBOT_SANITY_TIM_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-2OLTx2PONx2ONU.yaml
LupoAndreaSperanza0f3fbc22023-05-16 21:02:40 +020091ROBOT_SANITY_TIM_MCAST_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-tim-Mcast.yaml
92ROBOT_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 +020093ROBOT_SANITY_BBF_ADPATER_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-bbf-adapter.yaml
94ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE ?= $(ROOT_DIR)/tests/data/bbsim-bbf-adapter_addDelete_tests.yaml
TorstenThieme0fa54432023-02-14 13:27:20 +000095ROBOT_SANITY_DT_SINGLE_PON_MULTI_ONU_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt-1OLTx1PONx2ONU.yaml
Zack Williamsa8fe75a2020-01-10 14:25:27 -070096
Joey Armstrong04cdd9f2023-06-09 15:18:23 -040097#ROBOT_CONFIG_FILE ?= $(error ROBOT_CONFIG_FILE= is required)
98
Gilles Depatie45fbe042019-11-11 17:10:06 -050099# for backwards compatibility
100sanity-kind: sanity-single-kind
101
Matteo Scandolod7ca7f22021-01-26 14:10:37 -0800102# to simplify ci
103sanity-kind-att: sanity-single-kind
104
Joey Armstronga5278142023-06-28 16:56:54 -0400105# -----------------------------------------------------------------------
106# -----------------------------------------------------------------------
107help ::
108 @echo ' sanity-kind-multiuni-att'
109 @echo ' functional-single-kind-multiuni-att'
110
111# -----------------------------------------------------------------------
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000112# ATT Multi-UNI Sanity Target
Joey Armstronga5278142023-06-28 16:56:54 -0400113# -----------------------------------------------------------------------
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000114sanity-kind-multiuni-att: ROBOT_MISC_ARGS += -X -i sanity $(ROBOT_DEBUG_LOG_OPT)
115sanity-kind-multiuni-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
116sanity-kind-multiuni-att: ROBOT_FILE := Voltha_PODTests.robot
117sanity-kind-multiuni-att: voltha-test
118
119# ATT Multi-UNI Functional Suite Target
120functional-single-kind-multiuni-att: ROBOT_MISC_ARGS += -X -i sanityORmulti-uni $(ROBOT_DEBUG_LOG_OPT)
121functional-single-kind-multiuni-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
122functional-single-kind-multiuni-att: ROBOT_FILE := Voltha_PODTests.robot
123functional-single-kind-multiuni-att: voltha-test
124
Joey Armstronga5278142023-06-28 16:56:54 -0400125# -----------------------------------------------------------------------
126# -----------------------------------------------------------------------
127help ::
128 @echo ' voltha-scale'
129 @echo ' voltha-scale-onu-upgrade'
130
131# -----------------------------------------------------------------------
Matteo Scandolo142e6272020-04-29 17:36:59 -0700132# for scale pipeline
Joey Armstronga5278142023-06-28 16:56:54 -0400133# -----------------------------------------------------------------------
Hardik Windlass513afd12021-02-03 15:19:46 +0000134voltha-scale: ROBOT_MISC_ARGS += -i activation -v NAMESPACE:voltha $(ROBOT_DEBUG_LOG_OPT)
Matteo Scandolo142e6272020-04-29 17:36:59 -0700135voltha-scale: voltha-scale-test
136
Hardik Windlassf8b3ee62022-01-24 16:36:32 +0000137# for onu-upgrade scale pipeline
138# Requirement: Pass ONU image details in following parameters
139# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
140voltha-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)
141voltha-scale-onu-upgrade: voltha-scale-test
142
Joey Armstronga5278142023-06-28 16:56:54 -0400143# -----------------------------------------------------------------------
144# -----------------------------------------------------------------------
145help ::
146 @echo ' sanity-kind-dt'
147 @echo ' sanity-kind-dt-vgc'
148 @echo ' sanity-kind-dt-fttb'
149 @echo ' sanity-kind-dt-fttb-vgc'
150
151# -----------------------------------------------------------------------
Hardik Windlassa3d04b92020-02-17 15:06:05 +0000152# target to invoke DT Workflow Sanity
Joey Armstronga5278142023-06-28 16:56:54 -0400153# -----------------------------------------------------------------------
Hardik Windlassa3d04b92020-02-17 15:06:05 +0000154sanity-kind-dt: ROBOT_MISC_ARGS += -i sanityDt $(ROBOT_DEBUG_LOG_OPT)
155sanity-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
156sanity-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
157sanity-kind-dt: voltha-dt-test
158
Joey Armstronga5278142023-06-28 16:56:54 -0400159# -----------------------------------------------------------------------
bharat raj58488b32023-05-11 22:46:18 +0530160# target to invoke DT Workflow Sanity for VGC
Joey Armstronga5278142023-06-28 16:56:54 -0400161# -----------------------------------------------------------------------
bharat raj58488b32023-05-11 22:46:18 +0530162sanity-kind-dt-vgc: ROBOT_MISC_ARGS += -i sanityDt $(ROBOT_DEBUG_LOG_OPT)
163sanity-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE_VGC)
164sanity-kind-dt-vgc: ROBOT_FILE := Voltha_DT_PODTests_VGC.robot
165sanity-kind-dt-vgc: voltha-dt-test
166
Joey Armstronga5278142023-06-28 16:56:54 -0400167# -----------------------------------------------------------------------
Hardik Windlassa7b34be2022-03-22 17:28:31 +0000168# target to invoke DT FTTB Workflow Sanity
Joey Armstronga5278142023-06-28 16:56:54 -0400169# -----------------------------------------------------------------------
Hardik Windlassa7b34be2022-03-22 17:28:31 +0000170sanity-kind-dt-fttb: ROBOT_MISC_ARGS += -i sanityDtFttb $(ROBOT_DEBUG_LOG_OPT)
171sanity-kind-dt-fttb: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE)
172sanity-kind-dt-fttb: ROBOT_FILE := Voltha_DT_FTTB_Tests.robot
173sanity-kind-dt-fttb: voltha-dt-test
174
Joey Armstronga5278142023-06-28 16:56:54 -0400175# -----------------------------------------------------------------------
bharat raj58488b32023-05-11 22:46:18 +0530176# target to invoke DT FTTB Workflow Sanity for VGC
Joey Armstronga5278142023-06-28 16:56:54 -0400177# -----------------------------------------------------------------------
bharat raj58488b32023-05-11 22:46:18 +0530178sanity-kind-dt-fttb-vgc: ROBOT_MISC_ARGS += -i sanityDtFttb $(ROBOT_DEBUG_LOG_OPT)
179sanity-kind-dt-fttb-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_FTTB_SINGLE_PON_FILE_VGC)
180sanity-kind-dt-fttb-vgc: ROBOT_FILE := Voltha_DT_FTTB_Tests_VGC.robot
181sanity-kind-dt-fttb-vgc: voltha-dt-test
182
Joey Armstronga5278142023-06-28 16:56:54 -0400183# -----------------------------------------------------------------------
184# -----------------------------------------------------------------------
185help ::
186 @echo ' functional-single-kind'
187 @echo ' functional-single-kind-att'
188 @echo ' functional-single-kind-dt'
189 @echo ' functional-single-kind-dt-vgc'
190
191# -----------------------------------------------------------------------
192# -----------------------------------------------------------------------
Hardik Windlassd6aa0822020-06-29 20:18:12 +0530193functional-single-kind: ROBOT_MISC_ARGS += -i sanityORfunctional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Andy Bavier33e6dd32020-01-16 13:35:20 -0700194functional-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
195functional-single-kind: bbsim-kind
196
Matteo Scandolod7ca7f22021-01-26 14:10:37 -0800197# to simplify ci
198functional-single-kind-att: functional-single-kind
199
Joey Armstronga5278142023-06-28 16:56:54 -0400200# -----------------------------------------------------------------------
Hardik Windlass35706ba2020-02-20 08:16:42 +0000201# target to invoke DT Workflow Functional scenarios
Joey Armstronga5278142023-06-28 16:56:54 -0400202# -----------------------------------------------------------------------
Hardik Windlassd6aa0822020-06-29 20:18:12 +0530203functional-single-kind-dt: ROBOT_MISC_ARGS += -i sanityDtORfunctionalDt -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Hardik Windlass35706ba2020-02-20 08:16:42 +0000204functional-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
205functional-single-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
206functional-single-kind-dt: voltha-dt-test
207
Joey Armstronga5278142023-06-28 16:56:54 -0400208# -----------------------------------------------------------------------
bharat raj58488b32023-05-11 22:46:18 +0530209# target to invoke DT Workflow Functional scenarios
Joey Armstronga5278142023-06-28 16:56:54 -0400210# -----------------------------------------------------------------------
bharat raj58488b32023-05-11 22:46:18 +0530211functional-single-kind-dt-vgc: ROBOT_MISC_ARGS += -i sanityDtORfunctionalDt -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
212functional-single-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE_VGC)
213functional-single-kind-dt-vgc: ROBOT_FILE := Voltha_DT_PODTests_VGC.robot
214functional-single-kind-dt-vgc: voltha-dt-test
215
Joey Armstronga5278142023-06-28 16:56:54 -0400216# -----------------------------------------------------------------------
217# -----------------------------------------------------------------------
218help ::
219 @echo ' sanity-kind-tt'
220 @echo ' sanity-kind-tt-maclearning'
221 @echo ' sanity-kind-multiuni-tt'
bharat raj58488b32023-05-11 22:46:18 +0530222
Joey Armstronga5278142023-06-28 16:56:54 -0400223# -----------------------------------------------------------------------
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700224# target to invoke TT Workflow Sanity
Joey Armstronga5278142023-06-28 16:56:54 -0400225# -----------------------------------------------------------------------
Hardik Windlass43118692020-07-01 22:16:47 +0530226sanity-kind-tt: ROBOT_MISC_ARGS += -i sanityTT $(ROBOT_DEBUG_LOG_OPT)
227sanity-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
228sanity-kind-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
229sanity-kind-tt: voltha-tt-test
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700230
Joey Armstronga5278142023-06-28 16:56:54 -0400231# -----------------------------------------------------------------------
232# -----------------------------------------------------------------------
Hardik Windlassc609eb02022-02-22 11:28:37 +0000233sanity-kind-tt-maclearning: ROBOT_MISC_ARGS += -i sanityTT -v with_maclearning:True $(ROBOT_DEBUG_LOG_OPT)
234sanity-kind-tt-maclearning: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
235sanity-kind-tt-maclearning: ROBOT_FILE := Voltha_TT_PODTests.robot
236sanity-kind-tt-maclearning: voltha-tt-test
237
Joey Armstronga5278142023-06-28 16:56:54 -0400238# -----------------------------------------------------------------------
239# -----------------------------------------------------------------------
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000240sanity-kind-multiuni-tt: ROBOT_MISC_ARGS += -i sanityTT $(ROBOT_DEBUG_LOG_OPT)
241sanity-kind-multiuni-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
242sanity-kind-multiuni-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
243sanity-kind-multiuni-tt: voltha-tt-test
244
Joey Armstronga5278142023-06-28 16:56:54 -0400245# -----------------------------------------------------------------------
246# -----------------------------------------------------------------------
247help ::
248 @echo ' functional-single-kind-tt'
249 @echo ' functional-single-kind-multiuni-tt'
250
251# -----------------------------------------------------------------------
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700252# target to invoke TT Workflow Functional scenarios
Joey Armstronga5278142023-06-28 16:56:54 -0400253# -----------------------------------------------------------------------
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000254functional-single-kind-tt: ROBOT_MISC_ARGS += -i sanityTTORfunctionalTT -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
Suchitra Vemuri2f1e07d2020-06-26 19:18:01 -0700255functional-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
256functional-single-kind-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
257functional-single-kind-tt: voltha-tt-test
258
Joey Armstronga5278142023-06-28 16:56:54 -0400259# -----------------------------------------------------------------------
260# -----------------------------------------------------------------------
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000261functional-single-kind-multiuni-tt: ROBOT_MISC_ARGS += -i sanityTTORfunctionalTT -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
262functional-single-kind-multiuni-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
263functional-single-kind-multiuni-tt: ROBOT_FILE := Voltha_TT_PODTests.robot
264functional-single-kind-multiuni-tt: voltha-tt-test
265
Joey Armstronga5278142023-06-28 16:56:54 -0400266# -----------------------------------------------------------------------
267# -----------------------------------------------------------------------
268help ::
269 @echo ' sanity-kind-tim'
270 @echo ' sanity-kind-tim-multi-onu'
271 @echo ' sanity-kind-tim-multi-pon-multi-onu'
272 @echo ' sanity-kind-tim-multi-olt-multi-pon-multi-onu'
273
274# -----------------------------------------------------------------------
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200275# target to invoke TIM Workflow Sanity
Joey Armstronga5278142023-06-28 16:56:54 -0400276# -----------------------------------------------------------------------
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200277sanity-kind-tim: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
278sanity-kind-tim: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_SINGLE_PON_FILE)
279sanity-kind-tim: ROBOT_FILE := Voltha_TIM_PODTests.robot
280sanity-kind-tim: voltha-tim-test
281
Joey Armstronga5278142023-06-28 16:56:54 -0400282# -----------------------------------------------------------------------
283# -----------------------------------------------------------------------
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200284sanity-kind-tim-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
285sanity-kind-tim-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_SINGLE_PON_MULTI_ONU_FILE)
286sanity-kind-tim-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
287sanity-kind-tim-multi-onu: voltha-tim-test
288
Joey Armstronga5278142023-06-28 16:56:54 -0400289# -----------------------------------------------------------------------
290# -----------------------------------------------------------------------:
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200291sanity-kind-tim-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
292sanity-kind-tim-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MULTI_PON_MULTI_ONU_FILE)
293sanity-kind-tim-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
294sanity-kind-tim-multi-pon-multi-onu: voltha-tim-test
295
Joey Armstronga5278142023-06-28 16:56:54 -0400296# -----------------------------------------------------------------------
297# -----------------------------------------------------------------------:
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200298sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM $(ROBOT_DEBUG_LOG_OPT)
299sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE)
300sanity-kind-tim-multi-olt-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
301sanity-kind-tim-multi-olt-multi-pon-multi-onu: voltha-tim-test
302
Joey Armstronga5278142023-06-28 16:56:54 -0400303# -----------------------------------------------------------------------
304# -----------------------------------------------------------------------
305help ::
306 @echo ' sanity-kind-tim-mcast'
307 @echo ' sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu'
308
309# -----------------------------------------------------------------------
310# -----------------------------------------------------------------------
LupoAndreaSperanza0f3fbc22023-05-16 21:02:40 +0200311sanity-kind-tim-mcast: ROBOT_MISC_ARGS += -i sanityTIM-MCast $(ROBOT_DEBUG_LOG_OPT)
312sanity-kind-tim-mcast: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MCAST_SINGLE_PON_FILE)
313sanity-kind-tim-mcast: ROBOT_FILE := Voltha_TIM_PODTests.robot
314sanity-kind-tim-mcast: voltha-tim-test
315
Joey Armstronga5278142023-06-28 16:56:54 -0400316# -----------------------------------------------------------------------
317# -----------------------------------------------------------------------
LupoAndreaSperanza0f3fbc22023-05-16 21:02:40 +0200318sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: ROBOT_MISC_ARGS += -i sanityTIM-MCast $(ROBOT_DEBUG_LOG_OPT)
319sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TIM_MCAST_MULTI_OLT_MULTI_PON_MULTI_ONU_FILE)
320sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: ROBOT_FILE := Voltha_TIM_PODTests.robot
321sanity-kind-tim-mcast-multi-olt-multi-pon-multi-onu: voltha-tim-test
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200322
Joey Armstronga5278142023-06-28 16:56:54 -0400323# -----------------------------------------------------------------------
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000324# target to invoke multiple OLTs Functional scenarios
Joey Armstronga5278142023-06-28 16:56:54 -0400325# -----------------------------------------------------------------------
Suchitra Vemuri2a6975a2020-11-25 12:49:38 -0800326functional-multi-olt: ROBOT_MISC_ARGS += -i sanityORfunctional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000327functional-multi-olt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800328functional-multi-olt: ROBOT_FILE := Voltha_PODTests.robot
TorstenThiemebccd3ae2020-02-20 12:56:44 +0000329functional-multi-olt: voltha-test
330
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000331functional-multiuni-multiolt-att: ROBOT_MISC_ARGS += -X -i sanityORmulti-uni $(ROBOT_DEBUG_LOG_OPT)
332functional-multiuni-multiolt-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
333functional-multiuni-multiolt-att: ROBOT_FILE := Voltha_PODTests.robot
334functional-multiuni-multiolt-att: voltha-test
335
TorstenThieme90a99f82021-05-05 09:17:37 +0000336# target to invoke test with openonu go adapter applying 1T1GEM tech-profile at single ONU
3371t1gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T1GEM
3381t1gem-openonu-go-adapter-test: openonu-go-adapter-test
339
TorstenThiemefe7099e2021-01-29 08:41:04 +0000340# target to invoke test with openonu go adapter applying 1T4GEM tech-profile at single ONU
3411t4gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T4GEM
3421t4gem-openonu-go-adapter-test: openonu-go-adapter-test
343
344# target to invoke test with openonu go adapter applying 1T8GEM tech-profile at single ONU
3451t8gem-openonu-go-adapter-test: ROBOT_MISC_ARGS += -v techprofile:1T8GEM
3461t8gem-openonu-go-adapter-test: openonu-go-adapter-test
347
TorstenThieme1619db22020-04-03 12:01:15 +0000348# target to invoke openonu go adapter
TorstenThieme66c91a82020-10-19 13:37:53 +0000349openonu-go-adapter-test: ROBOT_MISC_ARGS += -v state2test:omci-flows-pushed -v testmode:SingleStateTime
Hardik Windlass9e3db232021-10-14 07:10:47 +0000350openonu-go-adapter-test: ROBOT_MISC_ARGS += -i sanityOnuGo -i functionalOnuGo
TorstenThieme41097be2021-07-06 09:52:50 +0000351openonu-go-adapter-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme1619db22020-04-03 12:01:15 +0000352openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
353openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUStateTests.robot
TorstenThieme89caa142020-10-05 08:20:31 +0000354openonu-go-adapter-test: openonu-go-adapter-tests
TorstenThieme1619db22020-04-03 12:01:15 +0000355
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200356# target to invoke bbf adapter
357bbf-adapter: ROBOT_MISC_ARGS += -i sanityBbfAdapter $(ROBOT_DEBUG_LOG_OPT)
358bbf-adapter: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_SINGLE_PON_FILE)
359bbf-adapter: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
360bbf-adapter: voltha-bbf-adapter-test
361
362bbf-adapter-functionality: ROBOT_MISC_ARGS += -i bbfAdapterFunctionality $(ROBOT_DEBUG_LOG_OPT)
363bbf-adapter-functionality: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE)
364bbf-adapter-functionality: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
365bbf-adapter-functionality: voltha-bbf-adapter-test
366
367bbf-adapter-functionality-single: ROBOT_MISC_ARGS += -i bbfAdapterFunctionalitySingleTest $(ROBOT_DEBUG_LOG_OPT)
368bbf-adapter-functionality-single: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_BBF_ADPATER_ADD_DELETE_FILE)
369bbf-adapter-functionality-single: ROBOT_FILE := Voltha_BBF_Adapter_Tests.robot
370bbf-adapter-functionality-single: voltha-bbf-adapter-test
371
TorstenThieme89caa142020-10-05 08:20:31 +0000372# target to invoke test with openonu go adapter applying MIB-Upload-Templating
Hardik Windlass9e3db232021-10-14 07:10:47 +0000373mib-upload-templating-openonu-go-adapter-test: ROBOT_MISC_ARGS += -i functionalOnuGo
TorstenThieme5db695e2022-04-01 08:19:05 +0000374mib-upload-templating-openonu-go-adapter-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme89caa142020-10-05 08:20:31 +0000375mib-upload-templating-openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
376mib-upload-templating-openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUTemplateTests.robot
377mib-upload-templating-openonu-go-adapter-test: openonu-go-adapter-tests
TorstenThieme280c3802020-08-07 07:07:42 +0000378
TorstenThieme53450ff2021-05-11 09:44:33 +0000379# target to invoke test with openonu go adapter applying 1T8GEM tech-profile at single ONU with OMCI hardening
380# timeout is determined for omci_response_rate=9 and omci_timeout=1s
381openonu-go-adapter-omci-hardening-passed-test: ROBOT_MISC_ARGS += -v timeout:180s -v techprofile:1T8GEM
382openonu-go-adapter-omci-hardening-passed-test: openonu-go-adapter-test
383
384# target to invoke openonu go adapter failed state test at single ONU with OMCI hardening
385# test should show in case of too small omci_response_rate (<=7) in BBSIM that OMCI hardening does not work
386# test is PASS when ONU does not leave state 'starting-openomci'
Hardik Windlass9e3db232021-10-14 07:10:47 +0000387openonu-go-adapter-omci-hardening-failed-test: ROBOT_MISC_ARGS += -v timeout:300s -i NegativeStateTestOnuGo
TorstenThieme5db695e2022-04-01 08:19:05 +0000388openonu-go-adapter-omci-hardening-failed-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme53450ff2021-05-11 09:44:33 +0000389openonu-go-adapter-omci-hardening-failed-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
390openonu-go-adapter-omci-hardening-failed-test: ROBOT_FILE := Voltha_ONUNegativeStateTests.robot
391openonu-go-adapter-omci-hardening-failed-test: openonu-go-adapter-tests
392
TorstenThieme379c3da2021-03-23 10:27:32 +0000393# target to invoke reconcile tests with openonu go adapter at single ONU with ATT workflow (default workflow)
TorstenThieme90a99f82021-05-05 09:17:37 +0000394reconcile-openonu-go-adapter-test-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
395reconcile-openonu-go-adapter-test-att: reconcile-openonu-go-adapter-tests-att
TorstenThieme3d8bf552021-02-08 08:41:52 +0000396
TorstenThiemefe7099e2021-01-29 08:41:04 +0000397# target to invoke reconcile tests with openonu go adapter at single ONU with DT workflow
TorstenThieme3d8bf552021-02-08 08:41:52 +0000398reconcile-openonu-go-adapter-test-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
TorstenThieme379c3da2021-03-23 10:27:32 +0000399reconcile-openonu-go-adapter-test-dt: reconcile-openonu-go-adapter-tests-dt
TorstenThiemefe7099e2021-01-29 08:41:04 +0000400
401# target to invoke reconcile tests with openonu go adapter at single ONU with TT workflow
TorstenThieme3d8bf552021-02-08 08:41:52 +0000402reconcile-openonu-go-adapter-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
TorstenThieme379c3da2021-03-23 10:27:32 +0000403reconcile-openonu-go-adapter-test-tt: reconcile-openonu-go-adapter-tests-tt
TorstenThiemefe7099e2021-01-29 08:41:04 +0000404
TorstenThieme00fe8262022-01-19 10:43:07 +0000405# target to invoke reconcile tests with openonu go adapter at single ONU multi UNI with TT workflow
406reconcile-openonu-go-adapter-multi-uni-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
407reconcile-openonu-go-adapter-multi-uni-test-tt: ROBOT_MISC_ARGS += -v unitag_sub:True
408reconcile-openonu-go-adapter-multi-uni-test-tt: reconcile-openonu-go-adapter-tests-tt
409
TorstenThieme379c3da2021-03-23 10:27:32 +0000410# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with ATT workflow (default workflow)
TorstenThieme90a99f82021-05-05 09:17:37 +0000411reconcile-openonu-go-adapter-multi-olt-test-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
412reconcile-openonu-go-adapter-multi-olt-test-att: reconcile-openonu-go-adapter-tests-att
TorstenThieme379c3da2021-03-23 10:27:32 +0000413
414# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with DT workflow
415reconcile-openonu-go-adapter-multi-olt-test-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
416reconcile-openonu-go-adapter-multi-olt-test-dt: reconcile-openonu-go-adapter-tests-dt
417
418# target to invoke reconcile tests with openonu go adapter with multiple OLTs scenario with TT workflow
419reconcile-openonu-go-adapter-multi-olt-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
420reconcile-openonu-go-adapter-multi-olt-test-tt: reconcile-openonu-go-adapter-tests-tt
421
TorstenThieme00fe8262022-01-19 10:43:07 +0000422# target to invoke reconcile tests with openonu go adapter with multiple OLTs multi UNI scenario with TT workflow
423reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_MULTIPLE_OLT_FILE)
424reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: ROBOT_MISC_ARGS += -v unitag_sub:True
425reconcile-openonu-go-adapter-multi-olt-multi-uni-test-tt: reconcile-openonu-go-adapter-tests-tt
426
TorstenThieme90a99f82021-05-05 09:17:37 +0000427# target to invoke reconcile tests with openonu go adapter with ATT workflow
428reconcile-openonu-go-adapter-tests-att: ROBOT_MISC_ARGS += -v workflow:ATT
429reconcile-openonu-go-adapter-tests-att: reconcile-openonu-go-adapter-tests
430
TorstenThieme379c3da2021-03-23 10:27:32 +0000431# target to invoke reconcile tests with openonu go adapter with DT workflow
432reconcile-openonu-go-adapter-tests-dt: ROBOT_MISC_ARGS += -v workflow:DT
433reconcile-openonu-go-adapter-tests-dt: reconcile-openonu-go-adapter-tests
434
435# target to invoke reconcile tests with openonu go adapter with TT workflow
436reconcile-openonu-go-adapter-tests-tt: ROBOT_MISC_ARGS += -v workflow:TT
437reconcile-openonu-go-adapter-tests-tt: reconcile-openonu-go-adapter-tests
438
439# target to invoke reconcile tests with openonu go adapter at single ONU resp. multiple OLTs
Hardik Windlass9e3db232021-10-14 07:10:47 +0000440reconcile-openonu-go-adapter-tests: ROBOT_MISC_ARGS += -i functionalOnuGo
TorstenThieme0ec95eb2021-11-23 14:56:26 +0000441reconcile-openonu-go-adapter-tests: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThieme3d8bf552021-02-08 08:41:52 +0000442reconcile-openonu-go-adapter-tests: ROBOT_FILE := Voltha_ONUReconcileTests.robot
443reconcile-openonu-go-adapter-tests: openonu-go-adapter-tests
TorstenThieme440b7c02020-12-18 15:42:57 +0000444
TorstenThieme90a99f82021-05-05 09:17:37 +0000445# target to invoke test with openonu go adapter applying 1T1GEM tech-profile with multiple OLTs scenarios with ATT workflow
4461t1gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T1GEM
4471t1gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
448
TorstenThiemefe7099e2021-01-29 08:41:04 +0000449# target to invoke test with openonu go adapter applying 1T4GEM tech-profile with multiple OLTs scenarios with ATT workflow
4501t4gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T4GEM
4511t4gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
TorstenThiemec3c23232021-01-13 13:06:31 +0000452
TorstenThiemefe7099e2021-01-29 08:41:04 +0000453# target to invoke test with openonu go adapter applying 1T8GEM tech-profile with multiple OLTs scenarios with ATT workflow
4541t8gem-openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v techprofile:1T8GEM
TorstenThieme3d8bf552021-02-08 08:41:52 +00004551t8gem-openonu-go-adapter-multi-olt-test: openonu-go-adapter-multi-olt-test
TorstenThiemefe7099e2021-01-29 08:41:04 +0000456
457# target to invoke test with openonu go adapter (applying 1T1GEM tech-profile) with multiple OLTs scenarios with ATT workflow
458openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -v state2test:omci-flows-pushed -v testmode:SingleStateTime
Hardik Windlass9e3db232021-10-14 07:10:47 +0000459openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -i sanityOnuGo -i functionalOnuGo
TorstenThieme41097be2021-07-06 09:52:50 +0000460openonu-go-adapter-multi-olt-test: ROBOT_MISC_ARGS += -e notreadyOnuGo $(ROBOT_DEBUG_LOG_OPT)
TorstenThiemefe7099e2021-01-29 08:41:04 +0000461openonu-go-adapter-multi-olt-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
462openonu-go-adapter-multi-olt-test: ROBOT_FILE := Voltha_ONUStateTests.robot
463openonu-go-adapter-multi-olt-test: openonu-go-adapter-tests
TorstenThieme70bc5262021-01-19 12:12:55 +0000464
David Bainbridgef81cd642019-11-20 00:14:47 +0000465sanity-single-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500466sanity-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
467sanity-single-kind: bbsim-kind
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000468
Joey Armstronga5278142023-06-28 16:56:54 -0400469## -----------------------------------------------------------------------
470## Intent: sanity-bbsim tests
471## -----------------------------------------------------------------------
472help ::
473 @echo ' sanity-bbsim{-att,-dt,-tt}'
474 @echo ' voltha-bbsim-test Parameterized test target'
475
476## -----------------------------------------------------------------------
477## -----------------------------------------------------------------------
Hardik Windlass9e3db232021-10-14 07:10:47 +0000478sanity-bbsim-att: ROBOT_MISC_ARGS += -v workflow:ATT
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700479sanity-bbsim-att: sanity-bbsim
480
Joey Armstronga5278142023-06-28 16:56:54 -0400481## -----------------------------------------------------------------------
482## -----------------------------------------------------------------------
Hardik Windlass9e3db232021-10-14 07:10:47 +0000483sanity-bbsim-dt: ROBOT_MISC_ARGS += -v workflow:DT
Matteo Scandolof310d962021-05-18 10:35:48 -0700484sanity-bbsim-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
485sanity-bbsim-dt: ROBOT_FILE := Voltha_BBSimTests.robot
486sanity-bbsim-dt: voltha-bbsim-test
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700487
Joey Armstronga5278142023-06-28 16:56:54 -0400488## -----------------------------------------------------------------------
489## -----------------------------------------------------------------------
Hardik Windlass9e3db232021-10-14 07:10:47 +0000490sanity-bbsim-tt: ROBOT_MISC_ARGS += -v workflow:TT
Matteo Scandolof310d962021-05-18 10:35:48 -0700491sanity-bbsim-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
492sanity-bbsim-tt: ROBOT_FILE := Voltha_BBSimTests.robot
493sanity-bbsim-tt: voltha-bbsim-test
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700494
Joey Armstronga5278142023-06-28 16:56:54 -0400495## -----------------------------------------------------------------------
496## -----------------------------------------------------------------------
Matteo Scandoloa80b4732020-09-04 13:51:10 -0700497sanity-bbsim: ROBOT_MISC_ARGS += -i bbsimSanity $(ROBOT_DEBUG_LOG_OPT)
498sanity-bbsim: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
499sanity-bbsim: ROBOT_FILE := Voltha_BBSimTests.robot
500sanity-bbsim: voltha-bbsim-test
501
Joey Armstronga5278142023-06-28 16:56:54 -0400502## -----------------------------------------------------------------------
503## Intent:
504## o $(MAKE) Named targets provides macro definitions.
505## o Alias uninitialized vars to improve readability
506## -----------------------------------------------------------------------
507# ROBOT_CONFIG_FILE ?= $(error ROBOT_CONFIG_FILE= is required)
508# ROBOT_FILE ?= $(error ROBOT_FILE= is required)
509
510## -----------------------------------------------------------------------
511## Intent: Parameterized test target
512## -----------------------------------------------------------------------
513voltha-bbsim-test: venv-activate-patched
514 $(call run-robot-test,tests/bbsim)
Matteo Scandolo95b22152021-02-05 15:39:34 -0800515
David Bainbridge32c45632020-04-13 08:47:09 -0700516rwcore-restart-single-kind: ROBOT_MISC_ARGS += -X -i functionalANDrwcore-restart $(ROBOT_DEBUG_LOG_OPT)
David Bainbridgef81cd642019-11-20 00:14:47 +0000517rwcore-restart-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_FAIL_SINGLE_PON_FILE)
ubuntu6b6e7d42020-03-02 12:35:42 -0800518rwcore-restart-single-kind: ROBOT_FILE := Voltha_FailureScenarios.robot
David Bainbridgef81cd642019-11-20 00:14:47 +0000519rwcore-restart-single-kind: voltha-test
520
David Bainbridge3d6d5d32019-12-17 19:05:35 +0000521single-kind: ROBOT_MISC_ARGS += -X -i $(TEST_TAGS) $(ROBOT_DEBUG_LOG_OPT)
522single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
523single-kind: ROBOT_FILE := Voltha_PODTests.robot
524single-kind: voltha-test
525
David Bainbridgef81cd642019-11-20 00:14:47 +0000526sanity-multi-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500527sanity-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
528sanity-multi-kind: bbsim-kind
Andy Bavierba9866b2019-10-11 07:11:53 -0700529
Andy Bavier8da0e132020-04-13 10:25:16 -0700530functional-multi-kind: ROBOT_MISC_ARGS += -i sanityORfunctional $(ROBOT_DEBUG_LOG_OPT)
531functional-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
532functional-multi-kind: bbsim-kind
533
Suchitra Vemuri8a9c3782019-10-23 12:43:01 -0700534bbsim-kind: ROBOT_MISC_ARGS += -X
Gilles Depatie45fbe042019-11-11 17:10:06 -0500535bbsim-kind: ROBOT_FILE := Voltha_PODTests.robot
536bbsim-kind: voltha-test
537
David Bainbridgef81cd642019-11-20 00:14:47 +0000538scale-single-kind: ROBOT_MISC_ARGS += -i active $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500539scale-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SCALE_SINGLE_PON_FILE)
540scale-single-kind: bbsim-scale-kind
541
David Bainbridgef81cd642019-11-20 00:14:47 +0000542scale-multi-kind: ROBOT_MISC_ARGS += -i active $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500543scale-multi-kind: ROBOT_CONFIG_FILE := $(ROBOT_SCALE_MULT_PON_FILE)
544scale-multi-kind: bbsim-scale-kind
545
David Bainbridgef81cd642019-11-20 00:14:47 +0000546bbsim-scale-kind: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
Gilles Depatie45fbe042019-11-11 17:10:06 -0500547bbsim-scale-kind: ROBOT_FILE := Voltha_ScaleFunctionalTests.robot
548bbsim-scale-kind: voltha-test
Zack Williamsec53a1b2019-09-16 15:50:52 -0700549
hwchiuab524f02020-02-03 23:24:19 +0000550#Only supported in full mode
551system-scale-test: ROBOT_FILE := K8S_SystemTest.robot
Matteo Scandolo66fe6452021-01-05 13:03:41 -0800552system-scale-test: ROBOT_MISC_ARGS += -X -i functional $(ROBOT_DEBUG_LOG_OPT) -v teardown_device:True
hwchiuab524f02020-02-03 23:24:19 +0000553system-scale-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULT_PON_FILE)
554system-scale-test: voltha-test
hwchiu11289122019-11-27 16:20:15 +0000555
hwchiu85695932019-12-18 08:05:25 +0000556failure-test: ROBOT_MISC_ARGS += -X -i FailureTest $(ROBOT_DEBUG_LOG_OPT)
hwchiu3d9a0982020-02-06 00:19:19 +0000557failure-test: ROBOT_FILE := K8S_SystemTest.robot
hwchiu85695932019-12-18 08:05:25 +0000558failure-test: ROBOT_CONFIG_FILE := $(ROBOT_FAIL_SINGLE_PON_FILE)
559failure-test: voltha-test
560
Scott Baker60e570d2020-02-02 22:10:13 -0800561bbsim-alarms-kind: ROBOT_MISC_ARGS += -X -i active
562bbsim-alarms-kind: ROBOT_FILE := Voltha_AlarmTests.robot
Andy Baviere118e052020-03-06 12:49:24 -0700563bbsim-alarms-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
Scott Baker60e570d2020-02-02 22:10:13 -0800564bbsim-alarms-kind: voltctl-docker-image-build voltctl-docker-image-install-kind voltha-test
565
Andy Bavierc1904dc2020-03-20 11:39:15 -0700566bbsim-errorscenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
567bbsim-errorscenarios: ROBOT_FILE := Voltha_ErrorScenarios.robot
568bbsim-errorscenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
569bbsim-errorscenarios: voltha-test
570
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000571bbsim-multiuni-errorscenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
572bbsim-multiuni-errorscenarios-att: ROBOT_FILE := Voltha_ErrorScenarios.robot
573bbsim-multiuni-errorscenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
574bbsim-multiuni-errorscenarios-att: voltha-test
575
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800576bbsim-multiolt-errorscenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
577bbsim-multiolt-errorscenarios: ROBOT_FILE := Voltha_ErrorScenarios.robot
578bbsim-multiolt-errorscenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
579bbsim-multiolt-errorscenarios: voltha-test
580
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000581bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
582bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_FILE := Voltha_ErrorScenarios.robot
583bbsim-multiuni-multiolt-errorscenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
584bbsim-multiuni-multiolt-errorscenarios-att: voltha-test
585
Hardik Windlasscbcca312020-04-20 21:46:11 +0530586bbsim-errorscenarios-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT)
587bbsim-errorscenarios-dt: ROBOT_FILE := Voltha_ErrorScenarios.robot
588bbsim-errorscenarios-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
589bbsim-errorscenarios-dt: voltha-test
590
Hardik Windlasse05e4712020-04-29 10:40:42 +0530591bbsim-failurescenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
Andy Bavier8da0e132020-04-13 10:25:16 -0700592bbsim-failurescenarios: ROBOT_FILE := Voltha_FailureScenarios.robot
593bbsim-failurescenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
594bbsim-failurescenarios: voltha-test
595
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000596bbsim-multiuni-failurescenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
597bbsim-multiuni-failurescenarios-att: ROBOT_FILE := Voltha_FailureScenarios.robot
598bbsim-multiuni-failurescenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_SINGLE_PON_FILE)
599bbsim-multiuni-failurescenarios-att: voltha-test
600
Suchitra Vemuri9826c052020-11-18 14:11:51 -0800601bbsim-multiolt-failurescenarios: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
602bbsim-multiolt-failurescenarios: ROBOT_FILE := Voltha_FailureScenarios.robot
603bbsim-multiolt-failurescenarios: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
604bbsim-multiolt-failurescenarios: voltha-test
605
Hardik Windlass1ed2eee2021-06-25 09:51:03 +0000606bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOLTReboot
607bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_FILE := Voltha_FailureScenarios.robot
608bbsim-multiuni-multiolt-failurescenarios-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTI_UNI_MULTIPLE_OLT_FILE)
609bbsim-multiuni-multiolt-failurescenarios-att: voltha-test
610
Hardik Windlass5ceb84e2021-02-11 11:17:08 +0000611bbsim-multiolt-kind: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalReboot
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800612bbsim-multiolt-kind: ROBOT_FILE := Voltha_MultiOLT_Tests.robot
613bbsim-multiolt-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
614bbsim-multiolt-kind: voltha-test
615
Hardik Windlass5ceb84e2021-02-11 11:17:08 +0000616bbsim-multiolt-kind-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalRebootDt
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800617bbsim-multiolt-kind-dt: ROBOT_FILE := Voltha_DT_MultiOLT_Tests.robot
618bbsim-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
619bbsim-multiolt-kind-dt: voltha-dt-test
620
bharat raj58488b32023-05-11 22:46:18 +0530621bbsim-multiolt-kind-dt-vgc: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e MultiOLTPhysicalRebootDt
622bbsim-multiolt-kind-dt-vgc: ROBOT_FILE := Voltha_DT_MultiOLT_Tests_VGC.robot
623bbsim-multiolt-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE_VGC)
624bbsim-multiolt-kind-dt-vgc: voltha-dt-test
625
626multiolt-kind-dt-vgc: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -i functionalDt
627multiolt-kind-dt-vgc: ROBOT_FILE := Voltha_DT_MultiOLT_Tests_VGC.robot
628multiolt-kind-dt-vgc: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE_VGC)
629multiolt-kind-dt-vgc: voltha-dt-test
630
Suchitra Vemuri6971c392020-12-08 10:41:33 -0800631multiolt-kind-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -i functionalDt
632multiolt-kind-dt: ROBOT_FILE := Voltha_DT_MultiOLT_Tests.robot
633multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
634multiolt-kind-dt: voltha-dt-test
635
Hardik Windlass9df139e2020-04-24 14:54:54 +0530636bbsim-failurescenarios-dt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitchOnuRebootDt -e PhysicalOltRebootDt
637bbsim-failurescenarios-dt: ROBOT_FILE := Voltha_DT_FailureScenarios.robot
638bbsim-failurescenarios-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
639bbsim-failurescenarios-dt: voltha-dt-test
640
Hardik Windlassb1bda362021-11-24 11:54:36 +0000641bbsim-failurescenarios-tt: ROBOT_MISC_ARGS += -X $(ROBOT_DEBUG_LOG_OPT) -e PowerSwitch -e PhysicalOltRebootTT -e dataplaneTT
TorstenThieme136ebf72021-02-26 14:27:07 +0000642bbsim-failurescenarios-tt: ROBOT_FILE := Voltha_TT_FailureScenarios.robot
643bbsim-failurescenarios-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
644bbsim-failurescenarios-tt: voltha-tt-test
645
Andrea Campanellaf1081572021-10-06 16:06:55 +0200646onos-ha-test: ROBOT_MISC_ARGS += -e notready -X $(ROBOT_DEBUG_LOG_OPT)
647onos-ha-test: ROBOT_FILE := Voltha_ONOSHATests.robot
648onos-ha-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
649onos-ha-test: voltha-test
650
Matteo Scandoloab48f9e2021-06-11 17:08:00 +0200651voltha-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
hwchiu11289122019-11-27 16:20:15 +0000652
Joey Armstronga5278142023-06-28 16:56:54 -0400653## -----------------------------------------------------------------------
654## -----------------------------------------------------------------------
655voltha-test: venv-activate-patched
656 $(call run-robot-test,tests/functional)
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700657
TorstenThiemef8f9a802020-12-16 15:25:25 +0000658bbsim-dmi-hw-management-test: ROBOT_MISC_ARGS += -e notreadyDMI -i functionalDMI -e bbsimUnimplementedDMI
659bbsim-dmi-hw-management-test: ROBOT_FILE := dmi-hw-management.robot
660bbsim-dmi-hw-management-test: ROBOT_CONFIG_FILE := $(ROBOT_DMI_SINGLE_BBSIM_FILE)
661bbsim-dmi-hw-management-test: voltha-dmi-test
uwe ottrembka504ca3e2020-11-23 12:02:20 +0100662
TorstenThiemef8f9a802020-12-16 15:25:25 +0000663voltha-dmi-hw-management-test: ROBOT_MISC_ARGS += -e notreadyDMI -i functionalDMI
664voltha-dmi-hw-management-test: ROBOT_FILE := dmi-hw-management.robot
665voltha-dmi-hw-management-test: ROBOT_CONFIG_FILE := $(ROBOT_DMI_SINGLE_ADTRAN_FILE)
666voltha-dmi-hw-management-test: voltha-dmi-test
667
Joey Armstronga5278142023-06-28 16:56:54 -0400668## -----------------------------------------------------------------------
669## -----------------------------------------------------------------------
670voltha-dmi-test: venv-activate-patched
671 $(call run-robot-test,tests/dmi-interface)
uwe ottrembka504ca3e2020-11-23 12:02:20 +0100672
TorstenThiemeff9c9142021-04-08 07:21:34 +0000673# target to invoke single ONU pm data scenarios in ATT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000674voltha-pm-data-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000675voltha-pm-data-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
676voltha-pm-data-single-kind-att: voltha-pm-data-tests
677
678# target to invoke single ONU pm data scenarios in DT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000679voltha-pm-data-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000680voltha-pm-data-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
681voltha-pm-data-single-kind-dt: voltha-pm-data-tests
682
683# target to invoke single ONU pm data scenarios in TT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000684voltha-pm-data-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
TorstenThieme90a99f82021-05-05 09:17:37 +0000685voltha-pm-data-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
686voltha-pm-data-single-kind-tt: voltha-pm-data-tests
TorstenThiemeff9c9142021-04-08 07:21:34 +0000687
688# target to invoke multiple OLTs pm data scenarios in ATT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000689voltha-pm-data-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000690voltha-pm-data-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
691voltha-pm-data-multiolt-kind-att: voltha-pm-data-tests
692
693# target to invoke multiple OLTs pm data scenarios in DT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000694voltha-pm-data-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000695voltha-pm-data-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
696voltha-pm-data-multiolt-kind-dt: voltha-pm-data-tests
697
698# target to invoke multiple OLTs pm data scenarios in TT workflow
Hardik Windlass9e3db232021-10-14 07:10:47 +0000699voltha-pm-data-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
TorstenThiemeff9c9142021-04-08 07:21:34 +0000700voltha-pm-data-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
701voltha-pm-data-multiolt-kind-tt: voltha-pm-data-tests
702
703voltha-pm-data-tests: ROBOT_MISC_ARGS += -i functional -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
704voltha-pm-data-tests: ROBOT_PM_CONFIG_FILE := $(ROBOT_PM_DATA_FILE)
705voltha-pm-data-tests: ROBOT_FILE := Voltha_ONUPMTests.robot
706voltha-pm-data-tests: voltha-pm-data-test
707
Joey Armstronga5278142023-06-28 16:56:54 -0400708## -----------------------------------------------------------------------
709## -----------------------------------------------------------------------
710voltha-pm-data-test: venv-activate-patched
711# ROBOT_PM_CONFIG_FILE= is differnet
712# $(call run-robot-test,tests/pm-data)
713
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400714 $(activate) \
Joey Armstronga5278142023-06-28 16:56:54 -0400715 && cd tests/pm-data \
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400716 && robot -V $(ROBOT_CONFIG_FILE) -V $(ROBOT_PM_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
TorstenThiemeff9c9142021-04-08 07:21:34 +0000717
TorstenThieme1c1f5fa2021-06-18 13:40:30 +0000718# target to invoke single ONU OMCI Get scenarios in ATT workflow
719voltha-onu-omci-get-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
720voltha-onu-omci-get-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
721voltha-onu-omci-get-single-kind-att: voltha-onu-omci-get-tests
722
723# target to invoke single ONU OMCI Get scenarios in DT workflow
724voltha-onu-omci-get-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
725voltha-onu-omci-get-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
726voltha-onu-omci-get-single-kind-dt: voltha-onu-omci-get-tests
727
TorstenThiemea7315f12021-07-23 11:56:34 +0000728# target to invoke single ONU OMCI Get scenarios in TT workflow
TorstenThieme1c1f5fa2021-06-18 13:40:30 +0000729voltha-onu-omci-get-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
730voltha-onu-omci-get-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
731voltha-onu-omci-get-single-kind-tt: voltha-onu-omci-get-tests
732
733# target to invoke multiple OLTs OMCI Get scenarios in ATT workflow
734voltha-onu-omci-get-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
735voltha-onu-omci-get-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
736voltha-onu-omci-get-multiolt-kind-att: voltha-onu-omci-get-tests
737
738# target to invoke multiple OLTs OMCI Get scenarios in DT workflow
739voltha-onu-omci-get-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT
740voltha-onu-omci-get-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
741voltha-onu-omci-get-multiolt-kind-dt: voltha-onu-omci-get-tests
742
743# target to invoke multiple OLTs OMCI Get scenarios in TT workflow
744voltha-onu-omci-get-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT
745voltha-onu-omci-get-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
746voltha-onu-omci-get-multiolt-kind-tt: voltha-onu-omci-get-tests
747
748voltha-onu-omci-get-tests: ROBOT_MISC_ARGS += -i functionalOnuGo -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
749voltha-onu-omci-get-tests: ROBOT_FILE := Voltha_ONUOmciGetTest.robot
750voltha-onu-omci-get-tests: openonu-go-adapter-tests
751
TorstenThiemea7315f12021-07-23 11:56:34 +0000752# target to invoke single ONU Flows Check in ATT workflow
753voltha-onu-flows-check-single-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
754voltha-onu-flows-check-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
755voltha-onu-flows-check-single-kind-att: voltha-onu-flows-check-tests
756
757# target to invoke single ONU Flows Check scenarios in DT workflow
758voltha-onu-flows-check-single-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT -v techprofile:1T8GEM
759voltha-onu-flows-check-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
760voltha-onu-flows-check-single-kind-dt: voltha-onu-flows-check-tests
761
762# target to invoke single ONU Flows Check scenarios in TT workflow
763voltha-onu-flows-check-single-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT -v techprofile:1T4GEM
764voltha-onu-flows-check-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
765voltha-onu-flows-check-single-kind-tt: voltha-onu-flows-check-tests
766
767# target to invoke multiple OLTs Flows Check scenarios in ATT workflow
768voltha-onu-flows-check-multiolt-kind-att: ROBOT_MISC_ARGS += -v workflow:ATT
769voltha-onu-flows-check-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
770voltha-onu-flows-check-multiolt-kind-att: voltha-onu-flows-check-tests
771
772# target to invoke multiple OLTs Flows Check scenarios in DT workflow
773voltha-onu-flows-check-multiolt-kind-dt: ROBOT_MISC_ARGS += -v workflow:DT -v techprofile:1T8GEM
774voltha-onu-flows-check-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
775voltha-onu-flows-check-multiolt-kind-dt: voltha-onu-flows-check-tests
776
777# target to invoke multiple OLTs Flows Check scenarios in TT workflow
778voltha-onu-flows-check-multiolt-kind-tt: ROBOT_MISC_ARGS += -v workflow:TT -v techprofile:1T4GEM
779voltha-onu-flows-check-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
780voltha-onu-flows-check-multiolt-kind-tt: voltha-onu-flows-check-tests
781
782voltha-onu-flows-check-tests: ROBOT_MISC_ARGS += -i functionalOnuGo -e PowerSwitch $(ROBOT_DEBUG_LOG_OPT)
783voltha-onu-flows-check-tests: ROBOT_FILE := Voltha_ONUFlowChecks.robot
784voltha-onu-flows-check-tests: openonu-go-adapter-tests
785
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000786# 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 +0000787# <app-name>,<version>,<oar-url>*<app-name>,<version>,<oar-url>*
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000788onos-app-upgrade-test: ROBOT_MISC_ARGS += -e notready -i functional
789onos-app-upgrade-test: ROBOT_FILE := ONOS_AppsUpgrade.robot
Hardik Windlass17bd1142021-03-12 08:15:25 +0000790onos-app-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000791onos-app-upgrade-test: software-upgrade-test
792
793# 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 +0000794# <comp-label>,<comp-container>,<comp-image>*<comp-label>,<comp-container>,<comp-image>*
Hardik Windlass76f68212022-01-19 08:16:14 +0000795voltha-comp-upgrade-test: ROBOT_MISC_ARGS += -e notready -i VolthaCompMinorVerUpgrade
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000796voltha-comp-upgrade-test: ROBOT_FILE := Voltha_ComponentsUpgrade.robot
Hardik Windlass17bd1142021-03-12 08:15:25 +0000797voltha-comp-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000798voltha-comp-upgrade-test: software-upgrade-test
799
Hardik Windlass76f68212022-01-19 08:16:14 +0000800# Voltha Components to test for Software Upgrade need to be passed in the 'voltha_comps_under_test' variable in format:
801# <comp-label>,<comp-container>,<comp-image>*<comp-label>,<comp-container>,<comp-image>*
802voltha-comp-rolling-upgrade-test: ROBOT_MISC_ARGS += -e notready -i VolthaCompMinorVerRollingUpgrade
803voltha-comp-rolling-upgrade-test: ROBOT_FILE := Voltha_ComponentsUpgrade.robot
804voltha-comp-rolling-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
805voltha-comp-rolling-upgrade-test: software-upgrade-test
806
Hardik Windlass17bd1142021-03-12 08:15:25 +0000807# Requirement: Pass ONU image details in following parameters
Hardik Windlassba1bd272021-06-22 08:29:33 +0000808# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
Hardik Windlass17bd1142021-03-12 08:15:25 +0000809onu-upgrade-test: ROBOT_MISC_ARGS += -e notready -i functional
810onu-upgrade-test: ROBOT_FILE := ONU_Upgrade.robot
811onu-upgrade-test: ROBOT_CONFIG_FILE := $(ROBOT_SW_UPGRADE_FILE)
812onu-upgrade-test: software-upgrade-test
813
TorstenThiemef3e492c2021-11-08 15:25:48 +0000814# Requirement: Pass ONU image details in following parameters
815# image_version, image_url, image_vendor, image_activate_on_success, image_commit_on_success, image_crc
816onu-upgrade-test-multiolt-kind-att: ROBOT_MISC_ARGS += -e notready -i functionalMultipleONUs
817onu-upgrade-test-multiolt-kind-att: ROBOT_FILE := ONU_Upgrade.robot
818onu-upgrade-test-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
819onu-upgrade-test-multiolt-kind-att: software-upgrade-test
820
TorstenThieme0c8cc6f2022-02-16 13:48:21 +0000821# Voltha openonu MIB Audit tests att workflow single kind
822onu-mib-audit-test-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
823onu-mib-audit-test-single-kind-att: voltha-onu-mib-audit-tests
824
825# Voltha openonu MIB Audit tests t workflow single kind
826onu-mib-audit-test-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
827onu-mib-audit-test-single-kind-dt: voltha-onu-mib-audit-tests
828
829# Voltha openonu MIB Audit tests tt workflow single kind
830onu-mib-audit-test-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
831onu-mib-audit-test-single-kind-tt: voltha-onu-mib-audit-tests
832
833# Voltha openonu MIB Audit tests att workflow multiple OLTs
834onu-mib-audit-test-multiolt-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_MULTIPLE_OLT_FILE)
835onu-mib-audit-test-multiolt-kind-att: voltha-onu-mib-audit-tests
836
837# Voltha openonu MIB Audit tests tt workflow multiple OLTs
838onu-mib-audit-test-multiolt-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_MULTIPLE_OLT_FILE)
839onu-mib-audit-test-multiolt-kind-dt: voltha-onu-mib-audit-tests
840
841# Voltha openonu MIB Audit tests tt workflow multiple OLTs
842onu-mib-audit-test-multiolt-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTIPLE_OLT_FILE)
843onu-mib-audit-test-multiolt-kind-tt: voltha-onu-mib-audit-tests
844
845voltha-onu-mib-audit-tests: ROBOT_MISC_ARGS += -i functional -e notready --noncritical non-critical
846voltha-onu-mib-audit-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
847voltha-onu-mib-audit-tests: ROBOT_FILE := Voltha_ONUMibAudit.robot
848voltha-onu-mib-audit-tests: openonu-go-adapter-tests
849
TorstenThieme0fa54432023-02-14 13:27:20 +0000850# Voltha Components Memory Leak tests dt workflow 1 OLT 1 PON 2 ONUs
851memory-leak-test-single-pon-multi-onu-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_MULTI_ONU_FILE)
852memory-leak-test-single-pon-multi-onu-dt: voltha-memory-leak-tests
TorstenThieme700ccbf2022-02-11 10:24:05 +0000853
854voltha-memory-leak-tests: ROBOT_MISC_ARGS += -i functionalMemoryLeak -e notready --noncritical non-critical
855voltha-memory-leak-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
856voltha-memory-leak-tests: ROBOT_FILE := VOLTHA_Memory_Leak_Tests.robot
857voltha-memory-leak-tests: voltha-memory-leak-test
858
TorstenThiemed9cc06e2022-11-09 12:12:46 +0000859# Voltha openonu robustness tests att workflow
860onu-robustness-test-single-kind-att: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
861onu-robustness-test-single-kind-att: ROBOT_MISC_ARGS += -i functional
862onu-robustness-test-single-kind-att: voltha-onu-robustness-tests
863
864# Voltha openonu robustness tests dt workflow
865onu-robustness-test-single-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
866onu-robustness-test-single-kind-dt: ROBOT_MISC_ARGS += -i functional
867onu-robustness-test-single-kind-dt: voltha-onu-robustness-tests
868
869# Voltha openonu robustness tests tt workflow
870onu-robustness-test-single-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_SINGLE_PON_FILE)
871onu-robustness-test-single-kind-tt: ROBOT_MISC_ARGS += -i functional
872onu-robustness-test-single-kind-tt: voltha-onu-robustness-tests
873
874# Voltha openonu robustness tests multi-uni tt workflow
875onu-robustness-test-multi-uni-kind-tt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_TT_MULTI_UNI_SINGLE_PON_FILE)
876onu-robustness-test-multi-uni-kind-tt: ROBOT_MISC_ARGS += -v unitag_sub:True -i functionalMultiUni
877onu-robustness-test-multi-uni-kind-tt: voltha-onu-robustness-tests
878
879voltha-onu-robustness-tests: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
880voltha-onu-robustness-tests: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
881voltha-onu-robustness-tests: ROBOT_FILE := Voltha_ONUErrorTests.robot
882voltha-onu-robustness-tests: openonu-go-adapter-tests
883
Joey Armstronga5278142023-06-28 16:56:54 -0400884software-upgrade-test: venv-activate-patched
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400885 $(activate) \
886 && cd tests/software-upgrades \
887 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Hardik Windlassdd1a9a12021-02-23 15:34:50 +0000888
Matteo Scandoloab48f9e2021-06-11 17:08:00 +0200889voltha-dt-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Hardik Windlass79b40ff2020-06-11 22:55:47 +0530890
Joey Armstronga5278142023-06-28 16:56:54 -0400891## CHECK
892voltha-dt-test: venv-activate-patched
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400893 $(activate) \
894 && cd tests/dt-workflow \
895 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Hardik Windlassa3d04b92020-02-17 15:06:05 +0000896
Emrehan UZUNd6f85892021-07-01 13:54:26 +0000897voltha-tt-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Hardik Windlass43118692020-07-01 22:16:47 +0530898
Joey Armstronga5278142023-06-28 16:56:54 -0400899## CHECK
900voltha-tt-test: venv-activate-patched
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400901 $(activate) \
902 && cd tests/tt-workflow \
903 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Hardik Windlass43118692020-07-01 22:16:47 +0530904
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200905voltha-tim-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
906
Joey Armstronga5278142023-06-28 16:56:54 -0400907## Check
908voltha-tim-test: venv-activate-patched
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400909 $(activate) \
910 && cd tests/tim-workflow \
911 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
Andrea Speranzaa8cf80b2022-05-26 10:09:59 +0200912
Joey Armstronga5278142023-06-28 16:56:54 -0400913## CHECK
914voltha-scale-test: venv-activate-patched
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400915 $(activate) \
916 && cd tests/scale \
917 && robot $(ROBOT_MISC_ARGS) Voltha_Scale_Tests.robot
Matteo Scandolo142e6272020-04-29 17:36:59 -0700918
Joey Armstronga5278142023-06-28 16:56:54 -0400919## CHECK
920openonu-go-adapter-tests: venv-activate-patched
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400921 $(activate) \
922 && cd tests/openonu-go-adapter \
923 && robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
TorstenThieme1619db22020-04-03 12:01:15 +0000924
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200925voltha-bbf-adapter-test: ROBOT_MISC_ARGS += -e notready --noncritical non-critical
Joey Armstronga5278142023-06-28 16:56:54 -0400926voltha-bbf-adapter-test: venv-activate-patched
927 $(call run-robot-test,tests/bbf-adapter)
Andrea Speranza8b6f46f2022-08-23 14:22:15 +0200928
Joey Armstronga5278142023-06-28 16:56:54 -0400929voltha-memory-leak-test: venv-activate-patched
930 $(call run-robot-test,tests/memory-leak)
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700931
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400932##----------------##
Joey Armstrong57bd70f2023-01-12 05:25:51 -0500933##---] TEST [---##
Joey Armstrongfc2067f2022-10-11 23:04:49 -0400934##----------------##
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700935test: lint
936
Joey Armstronga5278142023-06-28 16:56:54 -0400937# -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700938# tidy target will be more useful once issue with removing leading comments
939# is resolved: https://github.com/robotframework/robotframework/issues/3263
Joey Armstronga5278142023-06-28 16:56:54 -0400940# -----------------------------------------------------------------------
941tidy-robot: venv-activate-patched
942 $(activate) && python -m robot.tidy --inplace $(ROBOT_FILES)
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700943
944## Variables for gendocs
Joey Armstronga5278142023-06-28 16:56:54 -0400945TEST_SOURCE := $(wildcard tests/*/*.robot)
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700946TEST_BASENAME := $(basename $(TEST_SOURCE))
Joey Armstronga5278142023-06-28 16:56:54 -0400947TEST_DIRS := $(dir $(TEST_SOURCE))
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700948
Joey Armstrong83874cc2022-11-26 09:40:08 -0500949LIB_SOURCE := $(wildcard libraries/*.robot)
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700950LIB_BASENAME := $(basename $(LIB_SOURCE))
Joey Armstrong83874cc2022-11-26 09:40:08 -0500951LIB_DIRS := $(sort $(dir $(LIB_SOURCE)))
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700952
Joey Armstronga5278142023-06-28 16:56:54 -0400953# -----------------------------------------------------------------------
954# -----------------------------------------------------------------------
955help ::
956 @echo ' gendocs'
957 @echo ' tidy-robot'
958
959# -----------------------------------------------------------------------
960# -----------------------------------------------------------------------
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700961.PHONY: gendocs lint test
962# In future explore use of --docformat REST - integration w/Sphinx?
Joey Armstronga5278142023-06-28 16:56:54 -0400963gendocs: venv-activate-patched
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400964
Joey Armstronga5278142023-06-28 16:56:54 -0400965 $(call banner-enter)
966
967 @echo
968 @echo " ** $(MAKE) $@: robot.libdoc"
969 @mkdir -pv $(addprefix $@/,$(LIB_DIRS))
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400970
971 $(activate) \
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400972 && for dir in $(LIB_BASENAME); do\
Joey Armstronga5278142023-06-28 16:56:54 -0400973 python -m robot.libdoc --format HTML $$dir.robot $@/$$dir.html ;\
974 done
975
976 @echo
977 @echo " ** $(make) $@: robot.testdoc"
978 @mkdir -vp $(addprefix $@/,$(TEST_DIRS))
979
980 $(activate) \
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400981 && for dir in $(TEST_BASENAME); do\
hwchiu0601ec72019-10-08 00:04:43 +0000982 python -m robot.testdoc $$dir.robot $@/$$dir.html ;\
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400983 done
984
Joey Armstronga5278142023-06-28 16:56:54 -0400985 $(call banner-leave)
Joey Armstrong04cdd9f2023-06-09 15:18:23 -0400986
987## -----------------------------------------------------------------------
988## -----------------------------------------------------------------------
989clean ::
Joey Armstrong83874cc2022-11-26 09:40:08 -0500990 $(RM) -r gendocs
991 find . -name output.xml -print # no action performed ?
Zack Williamsec53a1b2019-09-16 15:50:52 -0700992
Joey Armstrong83874cc2022-11-26 09:40:08 -0500993## -----------------------------------------------------------------------
994## -----------------------------------------------------------------------
Joey Armstronga5278142023-06-28 16:56:54 -0400995clean-all sterile :: clean
996 $(RM) -r venv-activate-patched
997
998# -----------------------------------------------------------------------
999# -----------------------------------------------------------------------
1000help ::
1001 @echo ' voltctl-docker-image-build'
1002 @echo ' voltctl-docker-image-install-kind'
1003
1004## -----------------------------------------------------------------------
1005## -----------------------------------------------------------------------
Scott Baker60e570d2020-02-02 22:10:13 -08001006voltctl-docker-image-build:
Joey Armstronga5278142023-06-28 16:56:54 -04001007 cd docker \
1008 && docker build -t opencord/voltctl:local -f Dockerfile.voltctl .
Scott Baker60e570d2020-02-02 22:10:13 -08001009
Joey Armstrong9684bea2023-07-19 12:04:09 -04001010## -----------------------------------------------------------------------
1011## -----------------------------------------------------------------------
Scott Baker60e570d2020-02-02 22:10:13 -08001012voltctl-docker-image-install-kind:
Matteo Scandolo10acf562021-05-03 15:35:16 -07001013 @if [ "`kind get clusters | grep kind`" = '' ]; then echo "no kind cluster found" && exit 1; fi
1014 kind load docker-image --name `kind get clusters | grep kind` opencord/voltctl:local
Joey Armstrongfc2067f2022-10-11 23:04:49 -04001015
Joey Armstrong9684bea2023-07-19 12:04:09 -04001016## -----------------------------------------------------------------------
Joey Armstrong9684bea2023-07-19 12:04:09 -04001017## -----------------------------------------------------------------------
1018.PHONY: voltctl-download-url
1019voltctl-download-url:
1020 curl --silent https://api.github.com/repos/opencord/voltctl/releases/latest \
1021 | grep 'browser_download_url' \
1022 | grep 'linux-amd64'
1023
Joey Armstrongfc2067f2022-10-11 23:04:49 -04001024# [EOF]