blob: 37c0815dfd6cb68bd73b3ec06f0c9f9ee352d005 [file] [log] [blame]
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07001<!--
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 ~ Copyright 2015-present Open Networking Laboratory
Thomas Vachuskaf9c84362015-04-15 11:20:45 -07003 ~
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 -->
Brian O'Connorc6dca1d2015-06-25 17:45:47 -040016<scenario name="foo" description="Test Scenario" logDir="${test.dir}/foo">
17 <import file="${test.dir}/one-scenario.xml" namespace="foo"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070018
Brian O'Connorc6dca1d2015-06-25 17:45:47 -040019 <import file="${test.dir}/two-scenario.xml"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070020
Thomas Vachuska18571b02015-05-31 22:30:06 -070021 <dependency name="dude" requires="~yolo"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070022
23 <step name="yo" exec="some-command ${HOME} and ${prop.foo} args" if="${prop.foo}"/>
24 <step name="hi" exec="some-command ${prop.bar} or ${HOME} other args"/>
25 <step name="there" exec="another-command" requires="yo,hi"/>
26
Thomas Vachuska18571b02015-05-31 22:30:06 -070027 <step name="maybe" exec="another-command" requires="~hi" unless="${prop.foo}"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070028
29 <group name="alpha" exec="same-command args" requires="yo">
30 <step name="one" exec="asdads"/>
31 <step name="two" exec="asdads"/>
32 <group name="three" exec="asdads" requires="one,two">
33 <step name="three.a"/>
34 <step name="three.b" requires="three.a"/>
35 <step name="three.c" requires="three.b"/>
36 </group>
37 </group>
38
39 <dependency name="maybe" requires="yo"/>
40
Thomas Vachuska8189a742015-05-29 10:02:52 -070041 <parallel var="${TOC#}" requires="alpha">
42 <step name="ping-${#}" exec="asdads ${TOC#}"/>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070043 <step name="pong-${#}" exec="asdads"/>
44 <step name="ding-${#}" exec="asdads" requires="ping-${#},pong-${#}"/>
45 <dependency name="maybe" requires="ding-${#}"/>
46 </parallel>
Thomas Vachuska4be30542015-10-21 18:15:52 -070047
48 <sequential var="${TOC#}" requires="alpha" starts="fifi-${#},gigi-${#}" ends="gaga-${#-1}">
49 <step name="fifi-${#}" exec="asdads ${TOC#}"/>
50 <step name="gigi-${#}" exec="asdads"/>
51 <step name="gaga-${#}" exec="asdads" requires="fifi-${#},gigi-${#}"/>
52 <dependency name="maybe" requires="gaga-${#}"/>
53 </sequential>
Thomas Vachuskaf9c84362015-04-15 11:20:45 -070054</scenario>