diff options
author | Ashlee Young <ashlee@onosfw.com> | 2015-09-09 22:15:21 -0700 |
---|---|---|
committer | Ashlee Young <ashlee@onosfw.com> | 2015-09-09 22:15:21 -0700 |
commit | 13d05bc8458758ee39cb829098241e89616717ee (patch) | |
tree | 22a4d1ce65f15952f07a3df5af4b462b4697cb3a /framework/src/onos/utils/stc/src/test/resources/org/onlab | |
parent | 6139282e1e93c2322076de4b91b1c85d0bc4a8b3 (diff) |
ONOS checkin based on commit tag e796610b1f721d02f9b0e213cf6f7790c10ecd60
Change-Id: Ife8810491034fe7becdba75dda20de4267bd15cd
Diffstat (limited to 'framework/src/onos/utils/stc/src/test/resources/org/onlab')
8 files changed, 237 insertions, 0 deletions
diff --git a/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-basic-nest.xml b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-basic-nest.xml new file mode 100644 index 00000000..19c48db1 --- /dev/null +++ b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-basic-nest.xml @@ -0,0 +1,27 @@ +<!-- + ~ Copyright 2015 Open Networking Laboratory + ~ + ~ 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="basic-nest"> + <step name="a"/> + <step name="b" requires="a"/> + <step name="f" requires="b"/> + <group name="g"> + <step name="c"/> + <group name="gg" requires="c"> + <step name="d"/> + <step name="e" requires="d"/> + </group> + </group> +</scenario>
\ No newline at end of file diff --git a/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-basic.xml b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-basic.xml new file mode 100644 index 00000000..d7dc1383 --- /dev/null +++ b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-basic.xml @@ -0,0 +1,25 @@ +<!-- + ~ Copyright 2015 Open Networking Laboratory + ~ + ~ 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="basic"> + <step name="a"/> + <step name="b" requires="a"/> + <step name="f" requires="b"/> + <group name="g"> + <step name="c"/> + <step name="d" requires="c"/> + <step name="e" requires="d"/> + </group> +</scenario>
\ No newline at end of file diff --git a/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-deep-nest.xml b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-deep-nest.xml new file mode 100644 index 00000000..bbe1ac19 --- /dev/null +++ b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-deep-nest.xml @@ -0,0 +1,41 @@ +<!-- + ~ Copyright 2015 Open Networking Laboratory + ~ + ~ 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="basic-nest"> + <step name="a"/> + <step name="aa"/> + <step name="b" requires="a"/> + <step name="f" requires="b,aa"/> + <group name="g"> + <step name="c"/> + <group name="gg" requires="c"> + <step name="d"/> + <step name="dd" requires="c"/> + <step name="e" requires="d"/> + </group> + </group> + <step name="i" requires="f,g"/> + + <group name="g1"> + <group name="g2"> + <group name="g3"> + <step name="u"/> + <step name="v"/> + <step name="w" requires="u,v"/> + <step name="z" requires="u,w"/> + </group> + </group> + </group> +</scenario>
\ No newline at end of file diff --git a/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-staggered-dependencies.xml b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-staggered-dependencies.xml new file mode 100644 index 00000000..318b4ba1 --- /dev/null +++ b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/layout-staggered-dependencies.xml @@ -0,0 +1,30 @@ +<!-- + ~ Copyright 2015 Open Networking Laboratory + ~ + ~ 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="basic-nest"> + <step name="a"/> + <step name="aa"/> + <step name="b" requires="a"/> + <step name="f" requires="b,aa"/> + <group name="g"> + <step name="c"/> + <group name="gg" requires="c"> + <step name="d"/> + <step name="dd" requires="c"/> + <step name="e" requires="d"/> + </group> + </group> + <step name="i" requires="f,g"/> +</scenario>
\ No newline at end of file diff --git a/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/one-scenario.xml b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/one-scenario.xml new file mode 100644 index 00000000..e5cb6f29 --- /dev/null +++ b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/one-scenario.xml @@ -0,0 +1,20 @@ +<!-- + ~ Copyright 2015 Open Networking Laboratory + ~ + ~ 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="one" description="" logDir="/tmp/junit-stc/one"> + <step name="yolo" exec="some-command args"/> + <step name="hello" exec="some-command other args" requires="yolo"/> +</scenario>
\ No newline at end of file diff --git a/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/scenario.xml b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/scenario.xml new file mode 100644 index 00000000..34e67fd5 --- /dev/null +++ b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/scenario.xml @@ -0,0 +1,47 @@ +<!-- + ~ Copyright 2015 Open Networking Laboratory + ~ + ~ 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="foo" description="Test Scenario" logDir="${test.dir}/foo"> + <import file="${test.dir}/one-scenario.xml" namespace="foo"/> + + <import file="${test.dir}/two-scenario.xml"/> + + <dependency name="dude" requires="~yolo"/> + + <step name="yo" exec="some-command ${HOME} and ${prop.foo} args" if="${prop.foo}"/> + <step name="hi" exec="some-command ${prop.bar} or ${HOME} other args"/> + <step name="there" exec="another-command" requires="yo,hi"/> + + <step name="maybe" exec="another-command" requires="~hi" unless="${prop.foo}"/> + + <group name="alpha" exec="same-command args" requires="yo"> + <step name="one" exec="asdads"/> + <step name="two" exec="asdads"/> + <group name="three" exec="asdads" requires="one,two"> + <step name="three.a"/> + <step name="three.b" requires="three.a"/> + <step name="three.c" requires="three.b"/> + </group> + </group> + + <dependency name="maybe" requires="yo"/> + + <parallel var="${TOC#}" requires="alpha"> + <step name="ping-${#}" exec="asdads ${TOC#}"/> + <step name="pong-${#}" exec="asdads"/> + <step name="ding-${#}" exec="asdads" requires="ping-${#},pong-${#}"/> + <dependency name="maybe" requires="ding-${#}"/> + </parallel> +</scenario>
\ No newline at end of file diff --git a/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/simple-scenario.xml b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/simple-scenario.xml new file mode 100644 index 00000000..c70fe872 --- /dev/null +++ b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/simple-scenario.xml @@ -0,0 +1,26 @@ +<!-- + ~ Copyright 2015 Open Networking Laboratory + ~ + ~ 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="foo" description="Simple Test Scenario" logDir="/tmp/junit-stc/foo"> + <group name="alpha" exec="same-command args"> + <step name="one" exec="asdads"/> + <step name="two" exec="asdads"/> + <group name="three" exec="asdads" requires="one,two"> + <step name="three.a"/> + <step name="three.b" requires="three.a"/> + <step name="three.c" requires="three.b"/> + </group> + </group> +</scenario>
\ No newline at end of file diff --git a/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/two-scenario.xml b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/two-scenario.xml new file mode 100644 index 00000000..0d6135d5 --- /dev/null +++ b/framework/src/onos/utils/stc/src/test/resources/org/onlab/stc/two-scenario.xml @@ -0,0 +1,21 @@ +<!-- + ~ Copyright 2015 Open Networking Laboratory + ~ + ~ 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="two" description="" logDir="/tmp/junit-stc/two"> + <step name="dude" exec="some-command args"/> + <step name="waz" exec="some-command other args"/> + <step name="up" exec="another-command" requires="dude,waz"/> +</scenario>
\ No newline at end of file |