Adding YANG live compilation STC scenario.

Change-Id: I40388b560f5d7406bff443ac1f2abf0b4ac61f95
diff --git a/tools/test/scenarios/smoke.xml b/tools/test/scenarios/smoke.xml
index 8c278f3..c08e8a4 100644
--- a/tools/test/scenarios/smoke.xml
+++ b/tools/test/scenarios/smoke.xml
@@ -21,6 +21,7 @@
     <import file="${ONOS_SCENARIOS}/dist-test.xml"/>
     <import file="${ONOS_SCENARIOS}/smoke-internal.xml"/>
     <import file="${ONOS_SCENARIOS}/yang-smoke.xml"/>
+    <import file="${ONOS_SCENARIOS}/yang-live-compile.xml"/>
 
     <dependency name="Setup" requires="Prerequisites,Net-Prerequisites"/>
     <dependency name="Net-Smoke" requires="Setup"/>
@@ -30,7 +31,8 @@
     <dependency name="Netcfg" requires="Setup"/>
     <dependency name="Distributed-Primitives" requires="Setup"/>
     <dependency name="YANG-Smoke" requires="Setup,~Distributed-Primitives"/>
+    <dependency name="YANG-Live-Compile" requires="Setup,~YANG-Smoke"/>
 
     <import file="${ONOS_SCENARIOS}/wrapup.xml"/>
-    <dependency name="Wrapup" requires="~Setup,~Net-Smoke,~Drivers-Test,~Meta-App,~Netcfg,~YANG-Smoke"/>
+    <dependency name="Wrapup" requires="~Setup,~Net-Smoke,~Drivers-Test,~Meta-App,~Netcfg,~YANG-Smoke,~YANG-Live-Compile"/>
 </scenario>
diff --git a/tools/test/scenarios/yang-live-compile.xml b/tools/test/scenarios/yang-live-compile.xml
new file mode 100644
index 0000000..5aebcda
--- /dev/null
+++ b/tools/test/scenarios/yang-live-compile.xml
@@ -0,0 +1,31 @@
+<!--
+  ~ Copyright 2017-present Open Networking Foundation
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+<scenario name="yang-lve-compile" description="Live YANG compilation">
+    <group name="YANG-Live-Compile">
+        <step name="Activate-YANG-Runtime" exec="onos ${OC1} app activate org.onosproject.yang"/>
+        <step name="Pre-Cleanup-YANG-Model" exec="onos ${OC1} app uninstall l3vpn" env="~"/>
+        <step name="Check-YANG-Runtime" exec="onos-check-apps ${OC1} drivers,yang includes"
+              requires="Activate-YANG-Runtime"/>
+        <step name="Compile-YANG-Model" exec="onos-compile-yang ${OC1} ${ONOS_ROOT}/models/l3vpn"
+              requires="Check-YANG-Runtime,Pre-Cleanup-YANG-Model"/>
+        <step name="Verify-YANG-Models" exec="onos ${OC1} models | grep l3vpn"
+              requires="Compile-YANG-Model"/>
+        <step name="Verify-YANG-Apps" exec="onos-check-apps ${OC1} drivers,yang,l3vpn includes"
+              requires="Compile-YANG-Model"/>
+        <step name="Cleanup-YANG-Model" exec="onos ${OC1} app uninstall l3vpn"
+              requires="Verify-YANG-Apps"/>
+    </group>
+</scenario>