[VOL-2855] - Integration Test for OpenOnu go adapter
Change-Id: Iaefa1fc2bc9cad0a5dfa574b7586e3c2646316ec
diff --git a/Makefile b/Makefile
old mode 100644
new mode 100755
index fd803b5..b718b3d
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,14 @@
functional-single-kind-dt: ROBOT_FILE := Voltha_DT_PODTests.robot
functional-single-kind-dt: voltha-dt-test
+# target to invoke openonu go adapter
+openonu-go-adapter-test: ROBOT_MISC_ARGS += -v state2test:4 -v testmode:SingleState -v timeout:120s
+openonu-go-adapter-test: ROBOT_MISC_ARGS += -i statetest $(ROBOT_DEBUG_LOG_OPT)
+openonu-go-adapter-test: ROBOT_MISC_ARGS += -X
+openonu-go-adapter-test: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
+openonu-go-adapter-test: ROBOT_FILE := Voltha_ONUStateTests.robot
+openonu-go-adapter-test: openonu-go-adapter-statetest
+
sanity-single-kind: ROBOT_MISC_ARGS += -i sanity $(ROBOT_DEBUG_LOG_OPT)
sanity-single-kind: ROBOT_CONFIG_FILE := $(ROBOT_SANITY_SINGLE_PON_FILE)
sanity-single-kind: bbsim-kind
@@ -157,6 +165,12 @@
cd tests/scale ;\
robot $(ROBOT_MISC_ARGS) Voltha_Scale_Tests.robot
+openonu-go-adapter-statetest: vst_venv
+ source ./$</bin/activate ; set -u ;\
+ cd tests/openonu-go-adapter ;\
+ robot -V $(ROBOT_CONFIG_FILE) $(ROBOT_MISC_ARGS) $(ROBOT_FILE)
+
+
# self-test, lint, and setup targets
# virtualenv for the robot tools