[VOL-2483] DT workflow sanity test
Change-Id: I482dc6a463bb8bc733e37f8c7e093b52eea89de2
diff --git a/Makefile b/Makefile
index 1d75059..f2b7085 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,7 @@
# Robot config
ROBOT_SANITY_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind.yaml
+ROBOT_SANITY_DT_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-dt.yaml
ROBOT_FAIL_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind.yaml
ROBOT_SANITY_MULT_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-2x2.yaml
ROBOT_SCALE_SINGLE_PON_FILE ?= $(ROOT_DIR)/tests/data/bbsim-kind-16.yaml
@@ -45,6 +46,12 @@
# for backwards compatibility
sanity-kind: sanity-single-kind
+# target to invoke DT Workflow Sanity
+sanity-kind-dt: ROBOT_MISC_ARGS += -i sanityDt $(ROBOT_DEBUG_LOG_OPT)
+sanity-kind-dt: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_DT_SINGLE_PON_FILE)
+sanity-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
+sanity-kind-dt: voltha-dt-test
+
functional-single-kind: ROBOT_MISC_ARGS += -i sanity -i functional $(ROBOT_DEBUG_LOG_OPT)
functional-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
functional-single-kind: bbsim-kind
@@ -106,6 +113,11 @@
cd tests/functional ;\
robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
+voltha-dt-test: vst_venv
+ source ./$</bin/activate ; set -u ;\
+ cd tests/dt-workflow ;\
+ robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
+
# self-test, lint, and setup targets
# virtualenv for the robot tools