From 997a1485635dd74aaf090ca5de608b6fdc25b74b Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Mon, 17 Jul 2017 15:27:00 +0200 Subject: [PATCH] CSIT-723: Source code auto-generation for 1707 Change-Id: Ia178ac180fd344db620757dcc2b9cbb5010276c7 Signed-off-by: Tibor Frank --- resources/libraries/robot/__init__.robot | 12 ++++++++++++ resources/tools/doc_gen/gen_rst.py | 3 ++- resources/tools/doc_gen/src/index.rst | 7 +++++-- resources/tools/doc_gen/src/requirements.txt | 2 +- resources/tools/doc_gen/src/tests.dpdk.perf.rst | 3 +++ resources/tools/doc_gen/src/tests.func.rst | 3 --- resources/tools/doc_gen/src/tests.nsh_sfc.func.rst | 3 +++ resources/tools/doc_gen/src/tests.perf.rst | 3 --- resources/tools/doc_gen/src/tests.tldk.func.rst | 3 +++ resources/tools/doc_gen/src/tests.vpp.func.ip4_tunnels.rst | 3 +++ resources/tools/doc_gen/src/tests.vpp.func.ip6_tunnels.rst | 3 +++ resources/tools/doc_gen/src/tests.vpp.func.rst | 3 +++ resources/tools/doc_gen/src/tests.vpp.func.vm_vhost.rst | 3 +++ resources/tools/doc_gen/src/tests.vpp.perf.ip4_tunnels.rst | 3 +++ resources/tools/doc_gen/src/tests.vpp.perf.ip6_tunnels.rst | 3 +++ resources/tools/doc_gen/src/tests.vpp.perf.rst | 3 +++ resources/tools/doc_gen/src/tests.vpp.perf.vm_vhost.rst | 3 +++ tests/vpp/func/ip4_tunnels/__init__.robot | 12 ++++++++++++ tests/vpp/func/ip6_tunnels/__init__.robot | 12 ++++++++++++ tests/vpp/func/vm_vhost/__init__.robot | 12 ++++++++++++ 20 files changed, 89 insertions(+), 10 deletions(-) create mode 100644 resources/libraries/robot/__init__.robot create mode 100644 resources/tools/doc_gen/src/tests.dpdk.perf.rst delete mode 100644 resources/tools/doc_gen/src/tests.func.rst create mode 100644 resources/tools/doc_gen/src/tests.nsh_sfc.func.rst delete mode 100644 resources/tools/doc_gen/src/tests.perf.rst create mode 100644 resources/tools/doc_gen/src/tests.tldk.func.rst create mode 100644 resources/tools/doc_gen/src/tests.vpp.func.ip4_tunnels.rst create mode 100644 resources/tools/doc_gen/src/tests.vpp.func.ip6_tunnels.rst create mode 100644 resources/tools/doc_gen/src/tests.vpp.func.rst create mode 100644 resources/tools/doc_gen/src/tests.vpp.func.vm_vhost.rst create mode 100644 resources/tools/doc_gen/src/tests.vpp.perf.ip4_tunnels.rst create mode 100644 resources/tools/doc_gen/src/tests.vpp.perf.ip6_tunnels.rst create mode 100644 resources/tools/doc_gen/src/tests.vpp.perf.rst create mode 100644 resources/tools/doc_gen/src/tests.vpp.perf.vm_vhost.rst create mode 100644 tests/vpp/func/ip4_tunnels/__init__.robot create mode 100644 tests/vpp/func/ip6_tunnels/__init__.robot create mode 100644 tests/vpp/func/vm_vhost/__init__.robot diff --git a/resources/libraries/robot/__init__.robot b/resources/libraries/robot/__init__.robot new file mode 100644 index 0000000000..501a130d68 --- /dev/null +++ b/resources/libraries/robot/__init__.robot @@ -0,0 +1,12 @@ +# Copyright (c) 2017 Cisco and/or its affiliates. +# 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. diff --git a/resources/tools/doc_gen/gen_rst.py b/resources/tools/doc_gen/gen_rst.py index c79ffc07bb..898f215b1b 100755 --- a/resources/tools/doc_gen/gen_rst.py +++ b/resources/tools/doc_gen/gen_rst.py @@ -198,7 +198,8 @@ def generate_py_rst_files(): for file in files: module_name = file.split('.')[0] write_module_title(fh, module_name) - fh.write(rst_py_module.format('.'.join(module_path), module_name)) + fh.write(rst_py_module.format('.'.join(module_path), + module_name)) def generate_rf_rst_files(file_names, incl_tests=True, incl_keywords=True): diff --git a/resources/tools/doc_gen/src/index.rst b/resources/tools/doc_gen/src/index.rst index 77c6966150..6f44febb00 100644 --- a/resources/tools/doc_gen/src/index.rst +++ b/resources/tools/doc_gen/src/index.rst @@ -9,6 +9,9 @@ Contents overview resources.libraries.python resources.libraries.robot - tests.func - tests.perf + tests.dpdk.perf + tests.nsh_sfc.func + tests.tldk.func + tests.vpp.func + tests.vpp.perf indices diff --git a/resources/tools/doc_gen/src/requirements.txt b/resources/tools/doc_gen/src/requirements.txt index cf6b0e6df6..2cf7cd9687 100644 --- a/resources/tools/doc_gen/src/requirements.txt +++ b/resources/tools/doc_gen/src/requirements.txt @@ -1,3 +1,3 @@ -Sphinx +Sphinx==1.5.5 sphinxcontrib_robotdoc sphinx-rtd-theme \ No newline at end of file diff --git a/resources/tools/doc_gen/src/tests.dpdk.perf.rst b/resources/tools/doc_gen/src/tests.dpdk.perf.rst new file mode 100644 index 0000000000..a528a41924 --- /dev/null +++ b/resources/tools/doc_gen/src/tests.dpdk.perf.rst @@ -0,0 +1,3 @@ +DPDK Performance Tests +====================== + diff --git a/resources/tools/doc_gen/src/tests.func.rst b/resources/tools/doc_gen/src/tests.func.rst deleted file mode 100644 index 74b26f175e..0000000000 --- a/resources/tools/doc_gen/src/tests.func.rst +++ /dev/null @@ -1,3 +0,0 @@ -Functional Tests -================ - diff --git a/resources/tools/doc_gen/src/tests.nsh_sfc.func.rst b/resources/tools/doc_gen/src/tests.nsh_sfc.func.rst new file mode 100644 index 0000000000..e06d26dc7c --- /dev/null +++ b/resources/tools/doc_gen/src/tests.nsh_sfc.func.rst @@ -0,0 +1,3 @@ +NSH SFC Functional Tests +======================== + diff --git a/resources/tools/doc_gen/src/tests.perf.rst b/resources/tools/doc_gen/src/tests.perf.rst deleted file mode 100644 index 226545ba84..0000000000 --- a/resources/tools/doc_gen/src/tests.perf.rst +++ /dev/null @@ -1,3 +0,0 @@ -Performance Tests -================= - diff --git a/resources/tools/doc_gen/src/tests.tldk.func.rst b/resources/tools/doc_gen/src/tests.tldk.func.rst new file mode 100644 index 0000000000..85042fcf6c --- /dev/null +++ b/resources/tools/doc_gen/src/tests.tldk.func.rst @@ -0,0 +1,3 @@ +TLDK Functional Tests +===================== + diff --git a/resources/tools/doc_gen/src/tests.vpp.func.ip4_tunnels.rst b/resources/tools/doc_gen/src/tests.vpp.func.ip4_tunnels.rst new file mode 100644 index 0000000000..1c296e308f --- /dev/null +++ b/resources/tools/doc_gen/src/tests.vpp.func.ip4_tunnels.rst @@ -0,0 +1,3 @@ +IPv4 Tunnels +============ + diff --git a/resources/tools/doc_gen/src/tests.vpp.func.ip6_tunnels.rst b/resources/tools/doc_gen/src/tests.vpp.func.ip6_tunnels.rst new file mode 100644 index 0000000000..40dbbc569b --- /dev/null +++ b/resources/tools/doc_gen/src/tests.vpp.func.ip6_tunnels.rst @@ -0,0 +1,3 @@ +IPv6 Tunnels +============ + diff --git a/resources/tools/doc_gen/src/tests.vpp.func.rst b/resources/tools/doc_gen/src/tests.vpp.func.rst new file mode 100644 index 0000000000..c0e02ee2d0 --- /dev/null +++ b/resources/tools/doc_gen/src/tests.vpp.func.rst @@ -0,0 +1,3 @@ +VPP Functional Tests +==================== + diff --git a/resources/tools/doc_gen/src/tests.vpp.func.vm_vhost.rst b/resources/tools/doc_gen/src/tests.vpp.func.vm_vhost.rst new file mode 100644 index 0000000000..c669b232ea --- /dev/null +++ b/resources/tools/doc_gen/src/tests.vpp.func.vm_vhost.rst @@ -0,0 +1,3 @@ +VM VHOST +======== + diff --git a/resources/tools/doc_gen/src/tests.vpp.perf.ip4_tunnels.rst b/resources/tools/doc_gen/src/tests.vpp.perf.ip4_tunnels.rst new file mode 100644 index 0000000000..1c296e308f --- /dev/null +++ b/resources/tools/doc_gen/src/tests.vpp.perf.ip4_tunnels.rst @@ -0,0 +1,3 @@ +IPv4 Tunnels +============ + diff --git a/resources/tools/doc_gen/src/tests.vpp.perf.ip6_tunnels.rst b/resources/tools/doc_gen/src/tests.vpp.perf.ip6_tunnels.rst new file mode 100644 index 0000000000..40dbbc569b --- /dev/null +++ b/resources/tools/doc_gen/src/tests.vpp.perf.ip6_tunnels.rst @@ -0,0 +1,3 @@ +IPv6 Tunnels +============ + diff --git a/resources/tools/doc_gen/src/tests.vpp.perf.rst b/resources/tools/doc_gen/src/tests.vpp.perf.rst new file mode 100644 index 0000000000..e349eafe8f --- /dev/null +++ b/resources/tools/doc_gen/src/tests.vpp.perf.rst @@ -0,0 +1,3 @@ +VPP Performance Tests +===================== + diff --git a/resources/tools/doc_gen/src/tests.vpp.perf.vm_vhost.rst b/resources/tools/doc_gen/src/tests.vpp.perf.vm_vhost.rst new file mode 100644 index 0000000000..c669b232ea --- /dev/null +++ b/resources/tools/doc_gen/src/tests.vpp.perf.vm_vhost.rst @@ -0,0 +1,3 @@ +VM VHOST +======== + diff --git a/tests/vpp/func/ip4_tunnels/__init__.robot b/tests/vpp/func/ip4_tunnels/__init__.robot new file mode 100644 index 0000000000..501a130d68 --- /dev/null +++ b/tests/vpp/func/ip4_tunnels/__init__.robot @@ -0,0 +1,12 @@ +# Copyright (c) 2017 Cisco and/or its affiliates. +# 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. diff --git a/tests/vpp/func/ip6_tunnels/__init__.robot b/tests/vpp/func/ip6_tunnels/__init__.robot new file mode 100644 index 0000000000..501a130d68 --- /dev/null +++ b/tests/vpp/func/ip6_tunnels/__init__.robot @@ -0,0 +1,12 @@ +# Copyright (c) 2017 Cisco and/or its affiliates. +# 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. diff --git a/tests/vpp/func/vm_vhost/__init__.robot b/tests/vpp/func/vm_vhost/__init__.robot new file mode 100644 index 0000000000..501a130d68 --- /dev/null +++ b/tests/vpp/func/vm_vhost/__init__.robot @@ -0,0 +1,12 @@ +# Copyright (c) 2017 Cisco and/or its affiliates. +# 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. -- 2.16.6