blob: 42c4ffbee4043ebdf83c5d9988ce668307399ebf [file] [log] [blame]
Thomas Vachuska4bfccd542015-05-30 00:35:25 -07001<!--
2 ~ Copyright 2015 Open Networking Laboratory
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16<scenario name="archetypes-test" description="ONOS archetypes test">
17 <group name="Archetypes" cwd="${WORKSPACE}/tmp/test-app">
18 <step name="Clean-Up" cwd="${WORKSPACE}/tmp" env="~"
19 exec="rm -r test-app"/>
20
21 <step name="Create-App" cwd="${WORKSPACE}/tmp" requires="Clean-Up"
22 exec="onos-create-app app org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
23 <step name="Build-App" requires="Create-App" exec="mvn clean install"/>
24 <step name="Install-App" requires="Build-App"
25 exec="onos-app ${OCI} install! target/test-app-1.2.3.oar"/>
26 <step name="Verify-App" requires="Install-App"
27 exec="onos-check-components ${OCI} org.test.app.AppComponent"/>
28
29 <step name="Create-App-CLI-Overlay" requires="Install-App"
30 exec="onos-create-app cli org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
31 <step name="Build-App-With-CLI" requires="Create-App-CLI-Overlay"
32 exec="mvn clean install"/>
33 <step name="Reinstall-App-With-CLI" requires="Build-App-With-CLI,-Verify-App"
34 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
35 <step name="Verify-CLI" requires="Reinstall-App-With-CLI"
36 exec="onos ${OCI} sample"/>
37
38 <step name="Create-App-UI-Overlay" requires="Reinstall-App-With-CLI"
39 exec="onos-create-app ui org.test.app test-app 1.2.3 org.test.app -DinteractiveMode=false"/>
40 <step name="Build-App-With-UI" requires="Create-App-UI-Overlay"
41 exec="mvn clean install"/>
42 <step name="Reinstall-App-With-UI" requires="Build-App-With-UI,-Verify-CLI"
43 exec="onos-app ${OCI} reinstall! target/test-app-1.2.3.oar"/>
44 </group>
45</scenario>