diff options
author | Emma Foley <emma.l.foley@intel.com> | 2017-11-29 23:02:43 +0000 |
---|---|---|
committer | Ross Brattain <ross.b.brattain@intel.com> | 2018-01-11 20:50:41 +0000 |
commit | 11802c9ec469ab570dace176c18093bc655561a2 (patch) | |
tree | 983d57a7339b2ff7d85c1960c4ba98c18ce91435 /yardstick/tests/functional/test_cli_runner.py | |
parent | 5702f5b5e0721d9af61e494691376f32652e0048 (diff) |
Move tests: functional/
All tests in tests/functional have been moved to yardstick/tests/functional
JIRA: YARDSTICK-837
Change-Id: I89276b36635de74dd7b8f70e961c71aa0d2c494e
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
Diffstat (limited to 'yardstick/tests/functional/test_cli_runner.py')
-rwxr-xr-x | yardstick/tests/functional/test_cli_runner.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/yardstick/tests/functional/test_cli_runner.py b/yardstick/tests/functional/test_cli_runner.py new file mode 100755 index 000000000..2f2d7fef2 --- /dev/null +++ b/yardstick/tests/functional/test_cli_runner.py @@ -0,0 +1,47 @@ +############################################################################## +# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +import unittest + +from yardstick.tests.functional import utils + + +class RunnerTestCase(unittest.TestCase): + + def setUp(self): + super(RunnerTestCase, self).setUp() + self.yardstick = utils.Yardstick() + + def test_runner_list(self): + res = self.yardstick("runner list") + + self.assertIn("Duration", res) + self.assertIn("Arithmetic", res) + self.assertIn("Iteration", res) + self.assertIn("Sequence", res) + + def test_runner_show_Duration(self): + res = self.yardstick("runner show Duration") + duration = "duration - amount of time" in res + self.assertTrue(duration) + + def test_runner_show_Arithmetic(self): + res = self.yardstick("runner show Arithmetic") + arithmetic = "Run a scenario arithmetically" in res + self.assertTrue(arithmetic) + + def test_runner_show_Iteration(self): + res = self.yardstick("runner show Iteration") + iteration = "iterations - amount of times" in res + self.assertTrue(iteration) + + def test_runner_show_Sequence(self): + res = self.yardstick("runner show Sequence") + sequence = "sequence - list of values which are executed" in res + self.assertTrue(sequence) |