From b189933c3931884beb50d9e58efbb19fb0e7088c Mon Sep 17 00:00:00 2001 From: Stefan Kobza Date: Wed, 23 Dec 2015 17:00:10 +0100 Subject: Submit initial test framework skeleton. Change-Id: I1c7cdbbf16c137a6739447d2776595725b798b54 Signed-off-by: Stefan Kobza --- test/tests/suites/__init__.robot | 15 +++++++++++++ test/tests/suites/bridge_domain/test.robot | 26 +++++++++++++++++++++++ test/tests/suites/vhost_user_dummy/__init__.robot | 14 ++++++++++++ test/tests/suites/vhost_user_dummy/test1.robot | 18 ++++++++++++++++ test/tests/suites/vhost_user_dummy/test2.robot | 18 ++++++++++++++++ 5 files changed, 91 insertions(+) create mode 100644 test/tests/suites/__init__.robot create mode 100644 test/tests/suites/bridge_domain/test.robot create mode 100644 test/tests/suites/vhost_user_dummy/__init__.robot create mode 100644 test/tests/suites/vhost_user_dummy/test1.robot create mode 100644 test/tests/suites/vhost_user_dummy/test2.robot (limited to 'test/tests') diff --git a/test/tests/suites/__init__.robot b/test/tests/suites/__init__.robot new file mode 100644 index 00000000000..5959befce1d --- /dev/null +++ b/test/tests/suites/__init__.robot @@ -0,0 +1,15 @@ +# Copyright (c) 2015 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. +*** Settings *** +| Library | resources/libraries/python/SetupFramework.py +| Suite Setup | Setup Framework | ${nodes} diff --git a/test/tests/suites/bridge_domain/test.robot b/test/tests/suites/bridge_domain/test.robot new file mode 100644 index 00000000000..06b05cd5f97 --- /dev/null +++ b/test/tests/suites/bridge_domain/test.robot @@ -0,0 +1,26 @@ +# Copyright (c) 2015 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. +*** Settings *** +| Resource | resources/libraries/robot/default.robot +| Resource | resources/libraries/robot/interfaces.robot +| Test Setup | Setup all DUTs before test + +*** Test Cases *** +| VPP reports interfaces +| | VPP reports interfaces on | ${nodes['DUT1']} + + +| Loop the test +| | : FOR | ${INDEX} | in range | 10 +| | | VPP reports interfaces on | ${nodes['DUT1']} + diff --git a/test/tests/suites/vhost_user_dummy/__init__.robot b/test/tests/suites/vhost_user_dummy/__init__.robot new file mode 100644 index 00000000000..f1b637aaf6d --- /dev/null +++ b/test/tests/suites/vhost_user_dummy/__init__.robot @@ -0,0 +1,14 @@ +# Copyright (c) 2015 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. +*** Settings *** +| Documentation | Dummy test suite to test suite execution diff --git a/test/tests/suites/vhost_user_dummy/test1.robot b/test/tests/suites/vhost_user_dummy/test1.robot new file mode 100644 index 00000000000..b5ad24cc12e --- /dev/null +++ b/test/tests/suites/vhost_user_dummy/test1.robot @@ -0,0 +1,18 @@ +# Copyright (c) 2015 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. +*** Settings *** +| Force Tags | vhost-user | hw + +*** Test Cases *** +| Create vhost user interface on hw +| | Log | interface created diff --git a/test/tests/suites/vhost_user_dummy/test2.robot b/test/tests/suites/vhost_user_dummy/test2.robot new file mode 100644 index 00000000000..742f409c741 --- /dev/null +++ b/test/tests/suites/vhost_user_dummy/test2.robot @@ -0,0 +1,18 @@ +# Copyright (c) 2015 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. +*** Settings *** +| Force Tags | vhost-user | virl + +*** Test Cases *** +| Create vhost user interface on virl +| | Log | interface created -- cgit 1.2.3-korg