SEBA-972 Changes necessary for physical OLT tests
Change-Id: If44d9195d8abe9766cd3bc9c44c36ddd1d960752
diff --git a/Makefile b/Makefile
index 3b0e919..ea75952 100644
--- a/Makefile
+++ b/Makefile
@@ -37,8 +37,10 @@
ROBOT_MOCK_OLT_FILE ?= $(ROOT_DIR)/demo_test/functional_test/robot-mock-olt.yaml
ROBOT_MOCK_OLT_SINGLE_FILE ?= $(ROOT_DIR)/demo_test/functional_test/robot-mock-olt-single.yaml
+ROBOT_PHYSICAL_OLT_SINGLE_FILE ?= $(ROOT_DIR)/demo_test/functional_test/robot-physical-olt-single.yaml
ROBOT_DEBUG_LOG_OPT ?=
ROBOT_MISC_ARGS ?=
+ROBOT_EXTRA_ARGS ?=
help:
@echo "Usage: make [<target>]"
@@ -67,10 +69,16 @@
# target to invoke mock-olt robot tests, single OLT
functional-mock-test-single: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
-functional-mock-test-single: ROBOT_CONFIG_FILE := $(ROBOT_MOCK_OLT_FILE)
+functional-mock-test-single: ROBOT_CONFIG_FILE := $(ROBOT_MOCK_OLT_SINGLE_FILE)
functional-mock-test-single: ROBOT_FILE := $(ROOT_DIR)/demo_test/functional_test/importer.robot
functional-mock-test-single: importer-functional-test
+# target to invoke physical-olt robot tests, single OLT
+functional-physical-test-single: ROBOT_MISC_ARGS += $(ROBOT_DEBUG_LOG_OPT)
+functional-physical-test-single: ROBOT_CONFIG_FILE := $(ROBOT_PHYSICAL_OLT_SINGLE_FILE)
+functional-physical-test-single: ROBOT_FILE := $(ROOT_DIR)/demo_test/functional_test/importer.robot
+functional-physical-test-single: importer-functional-test
+
proto/importer.pb.go: proto/importer.proto
mkdir -p proto
protoc --proto_path=proto \
@@ -176,4 +184,4 @@
importer-functional-test: vst_venv
VIRTUAL_ENV_DISABLE_PROMPT=true source ./$</bin/activate ; set -u ;\
cd demo_test/functional_test ;\
- robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
+ robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_EXTRA_ARGS) $(ROBOT_FILE)