summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/bblayers.py
diff options
context:
space:
mode:
authorLucian Musat <georgex.l.musat@intel.com>2014-06-27 17:32:13 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-03 17:41:17 +0100
commitae03111791f45036e7c24378b06b997f8c7cb0a7 (patch)
tree6a82a37ec4d6a0a9d61ea4eb1892df72887fd2a6 /meta/lib/oeqa/selftest/bblayers.py
parent52a6d20519870103134166d91e22d21fd736195d (diff)
downloadpoky-ae03111791f45036e7c24378b06b997f8c7cb0a7.tar.gz
Added testcase decorator to use in logging. Added class decorator LogResults that outputs test results in separate log file.
(From OE-Core rev: 7e2b73f1ccfe2968ef780fef2edfaa31c3dae853) 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/selftest/bblayers.py')
-rw-r--r--meta/lib/oeqa/selftest/bblayers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/bblayers.py b/meta/lib/oeqa/selftest/bblayers.py
index 52aa4f8112..1ead8e8671 100644
--- a/meta/lib/oeqa/selftest/bblayers.py
+++ b/meta/lib/oeqa/selftest/bblayers.py
@@ -7,25 +7,31 @@ import shutil
7import oeqa.utils.ftools as ftools 7import oeqa.utils.ftools as ftools
8from oeqa.selftest.base import oeSelfTest 8from oeqa.selftest.base import oeSelfTest
9from oeqa.utils.commands import runCmd 9from oeqa.utils.commands import runCmd
10from oeqa.utils.decorators import testcase
10 11
11class BitbakeLayers(oeSelfTest): 12class BitbakeLayers(oeSelfTest):
12 13
14 @testcase(756)
13 def test_bitbakelayers_showcrossdepends(self): 15 def test_bitbakelayers_showcrossdepends(self):
14 result = runCmd('bitbake-layers show-cross-depends') 16 result = runCmd('bitbake-layers show-cross-depends')
15 self.assertTrue('aspell' in result.output) 17 self.assertTrue('aspell' in result.output)
16 18
19 @testcase(83)
17 def test_bitbakelayers_showlayers(self): 20 def test_bitbakelayers_showlayers(self):
18 result = runCmd('bitbake-layers show_layers') 21 result = runCmd('bitbake-layers show_layers')
19 self.assertTrue('meta-selftest' in result.output) 22 self.assertTrue('meta-selftest' in result.output)
20 23
24 @testcase(93)
21 def test_bitbakelayers_showappends(self): 25 def test_bitbakelayers_showappends(self):
22 result = runCmd('bitbake-layers show_appends') 26 result = runCmd('bitbake-layers show_appends')
23 self.assertTrue('xcursor-transparent-theme_0.1.1.bbappend' in result.output, msg='xcursor-transparent-theme_0.1.1.bbappend file was not recognised') 27 self.assertTrue('xcursor-transparent-theme_0.1.1.bbappend' in result.output, msg='xcursor-transparent-theme_0.1.1.bbappend file was not recognised')
24 28
29 @testcase(90)
25 def test_bitbakelayers_showoverlayed(self): 30 def test_bitbakelayers_showoverlayed(self):
26 result = runCmd('bitbake-layers show_overlayed') 31 result = runCmd('bitbake-layers show_overlayed')
27 self.assertTrue('aspell' in result.output, msg='xcursor-transparent-theme_0.1.1.bbappend file was not recognised') 32 self.assertTrue('aspell' in result.output, msg='xcursor-transparent-theme_0.1.1.bbappend file was not recognised')
28 33
34 @testcase(95)
29 def test_bitbakelayers_flatten(self): 35 def test_bitbakelayers_flatten(self):
30 self.assertFalse(os.path.isdir(os.path.join(self.builddir, 'test'))) 36 self.assertFalse(os.path.isdir(os.path.join(self.builddir, 'test')))
31 result = runCmd('bitbake-layers flatten test') 37 result = runCmd('bitbake-layers flatten test')