blob: 3a566fd478b2e60fe06cbd8a0758c1cfafa9bcbc [file] [log] [blame]
Thomas Vachuskaf9c84362015-04-15 11:20:45 -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="foo" description="Test Scenario" logDir="/tmp/junit-stc/foo">
17 <import file="/tmp/junit-stc/one-scenario.xml" namespace="foo"/>
18
19 <import file="/tmp/junit-stc/two-scenario.xml"/>
20
21 <dependency name="dude" requires="-yolo"/>
22
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
27 <step name="maybe" exec="another-command" requires="-hi" unless="${prop.foo}"/>
28
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
41 <parallel var="${OC#}" requires="alpha">
42 <step name="ping-${#}" exec="asdads ${OC#}"/>
43 <step name="pong-${#}" exec="asdads"/>
44 <step name="ding-${#}" exec="asdads" requires="ping-${#},pong-${#}"/>
45 <dependency name="maybe" requires="ding-${#}"/>
46 </parallel>
47</scenario>