Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 1 | <!-- |
Brian O'Connor | 5ab426f | 2016-04-09 01:19:45 -0700 | [diff] [blame] | 2 | ~ Copyright 2015-present Open Networking Laboratory |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 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 | --> |
Brian O'Connor | c6dca1d | 2015-06-25 17:45:47 -0400 | [diff] [blame] | 16 | <scenario name="foo" description="Test Scenario" logDir="${test.dir}/foo"> |
| 17 | <import file="${test.dir}/one-scenario.xml" namespace="foo"/> |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 18 | |
Brian O'Connor | c6dca1d | 2015-06-25 17:45:47 -0400 | [diff] [blame] | 19 | <import file="${test.dir}/two-scenario.xml"/> |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 20 | |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 21 | <dependency name="dude" requires="~yolo"/> |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 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 | |
Thomas Vachuska | 18571b0 | 2015-05-31 22:30:06 -0700 | [diff] [blame] | 27 | <step name="maybe" exec="another-command" requires="~hi" unless="${prop.foo}"/> |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 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 | |
Thomas Vachuska | 8189a74 | 2015-05-29 10:02:52 -0700 | [diff] [blame] | 41 | <parallel var="${TOC#}" requires="alpha"> |
| 42 | <step name="ping-${#}" exec="asdads ${TOC#}"/> |
Thomas Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 43 | <step name="pong-${#}" exec="asdads"/> |
| 44 | <step name="ding-${#}" exec="asdads" requires="ping-${#},pong-${#}"/> |
| 45 | <dependency name="maybe" requires="ding-${#}"/> |
| 46 | </parallel> |
Thomas Vachuska | 4be3054 | 2015-10-21 18:15:52 -0700 | [diff] [blame] | 47 | |
| 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 Vachuska | f9c8436 | 2015-04-15 11:20:45 -0700 | [diff] [blame] | 54 | </scenario> |