diff options
author | Lucian Musat <georgex.l.musat@intel.com> | 2014-07-25 12:02:30 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-25 16:54:42 +0100 |
commit | 8e26ab7d52edd13ffa50b2d0b26606bea8890e76 (patch) | |
tree | 2b2bcfc87341d3a5136710c8412fb6348ce2069d /meta/lib/oeqa/runtime/smart.py | |
parent | 242cceeedf2351e4337d8e45fb4c2c8360937ead (diff) | |
download | poky-8e26ab7d52edd13ffa50b2d0b26606bea8890e76.tar.gz |
oeqa/rutime: Added testcase decorators for automated runtime tests. Also added LogResults decorator for oeTest class in oetest.py
(From OE-Core rev: 95b83084487d0712362ade8ac487999c3274bb96)
Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/smart.py')
-rw-r--r-- | meta/lib/oeqa/runtime/smart.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/smart.py b/meta/lib/oeqa/runtime/smart.py index 3130373f4b..3b49314df7 100644 --- a/meta/lib/oeqa/runtime/smart.py +++ b/meta/lib/oeqa/runtime/smart.py | |||
@@ -25,6 +25,7 @@ class SmartTest(oeRuntimeTest): | |||
25 | 25 | ||
26 | class SmartBasicTest(SmartTest): | 26 | class SmartBasicTest(SmartTest): |
27 | 27 | ||
28 | @testcase(716) | ||
28 | @skipUnlessPassed('test_ssh') | 29 | @skipUnlessPassed('test_ssh') |
29 | def test_smart_help(self): | 30 | def test_smart_help(self): |
30 | self.smart('--help') | 31 | self.smart('--help') |
@@ -32,15 +33,19 @@ class SmartBasicTest(SmartTest): | |||
32 | def test_smart_version(self): | 33 | def test_smart_version(self): |
33 | self.smart('--version') | 34 | self.smart('--version') |
34 | 35 | ||
36 | @testcase(721) | ||
35 | def test_smart_info(self): | 37 | def test_smart_info(self): |
36 | self.smart('info python-smartpm') | 38 | self.smart('info python-smartpm') |
37 | 39 | ||
40 | @testcase(421) | ||
38 | def test_smart_query(self): | 41 | def test_smart_query(self): |
39 | self.smart('query python-smartpm') | 42 | self.smart('query python-smartpm') |
40 | 43 | ||
44 | @testcase(720) | ||
41 | def test_smart_search(self): | 45 | def test_smart_search(self): |
42 | self.smart('search python-smartpm') | 46 | self.smart('search python-smartpm') |
43 | 47 | ||
48 | @testcase(722) | ||
44 | def test_smart_stats(self): | 49 | def test_smart_stats(self): |
45 | self.smart('stats') | 50 | self.smart('stats') |
46 | 51 | ||
@@ -58,6 +63,7 @@ class SmartRepoTest(SmartTest): | |||
58 | def test_smart_channel(self): | 63 | def test_smart_channel(self): |
59 | self.smart('channel', 1) | 64 | self.smart('channel', 1) |
60 | 65 | ||
66 | @testcase(719) | ||
61 | def test_smart_channel_add(self): | 67 | def test_smart_channel_add(self): |
62 | image_pkgtype = self.tc.d.getVar('IMAGE_PKGTYPE', True) | 68 | image_pkgtype = self.tc.d.getVar('IMAGE_PKGTYPE', True) |
63 | deploy_url = 'http://%s:%s/%s' %(self.target.server_ip, self.repo_server.port, image_pkgtype) | 69 | deploy_url = 'http://%s:%s/%s' %(self.target.server_ip, self.repo_server.port, image_pkgtype) |
@@ -76,6 +82,7 @@ class SmartRepoTest(SmartTest): | |||
76 | def test_smart_channel_show(self): | 82 | def test_smart_channel_show(self): |
77 | self.smart('channel --show') | 83 | self.smart('channel --show') |
78 | 84 | ||
85 | @testcase(717) | ||
79 | def test_smart_channel_rpmsys(self): | 86 | def test_smart_channel_rpmsys(self): |
80 | self.smart('channel --show rpmsys') | 87 | self.smart('channel --show rpmsys') |
81 | self.smart('channel --disable rpmsys') | 88 | self.smart('channel --disable rpmsys') |
@@ -86,17 +93,20 @@ class SmartRepoTest(SmartTest): | |||
86 | self.smart('remove -y psplash-default') | 93 | self.smart('remove -y psplash-default') |
87 | self.smart('install -y psplash-default') | 94 | self.smart('install -y psplash-default') |
88 | 95 | ||
96 | @testcase(728) | ||
89 | @skipUnlessPassed('test_smart_install') | 97 | @skipUnlessPassed('test_smart_install') |
90 | def test_smart_install_dependency(self): | 98 | def test_smart_install_dependency(self): |
91 | self.smart('remove -y psplash') | 99 | self.smart('remove -y psplash') |
92 | self.smart('install -y psplash-default') | 100 | self.smart('install -y psplash-default') |
93 | 101 | ||
102 | @testcase(723) | ||
94 | @skipUnlessPassed('test_smart_channel_add') | 103 | @skipUnlessPassed('test_smart_channel_add') |
95 | def test_smart_install_from_disk(self): | 104 | def test_smart_install_from_disk(self): |
96 | self.smart('remove -y psplash-default') | 105 | self.smart('remove -y psplash-default') |
97 | self.smart('download psplash-default') | 106 | self.smart('download psplash-default') |
98 | self.smart('install -y ./psplash-default*') | 107 | self.smart('install -y ./psplash-default*') |
99 | 108 | ||
109 | @testcase(725) | ||
100 | @skipUnlessPassed('test_smart_channel_add') | 110 | @skipUnlessPassed('test_smart_channel_add') |
101 | def test_smart_install_from_http(self): | 111 | def test_smart_install_from_http(self): |
102 | output = self.smart('download --urls psplash-default') | 112 | output = self.smart('download --urls psplash-default') |
@@ -105,6 +115,7 @@ class SmartRepoTest(SmartTest): | |||
105 | self.smart('remove -y psplash-default') | 115 | self.smart('remove -y psplash-default') |
106 | self.smart('install -y %s' % url.group(0)) | 116 | self.smart('install -y %s' % url.group(0)) |
107 | 117 | ||
118 | @testcase(729) | ||
108 | @skipUnlessPassed('test_smart_install') | 119 | @skipUnlessPassed('test_smart_install') |
109 | def test_smart_reinstall(self): | 120 | def test_smart_reinstall(self): |
110 | self.smart('reinstall -y psplash-default') | 121 | self.smart('reinstall -y psplash-default') |