diff options
-rw-r--r-- | meta/lib/oeqa/selftest/kernel.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/meta/lib/oeqa/selftest/kernel.py b/meta/lib/oeqa/selftest/kernel.py deleted file mode 100644 index 3fe3517f91..0000000000 --- a/meta/lib/oeqa/selftest/kernel.py +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | import os | ||
2 | import oeqa.utils.ftools as ftools | ||
3 | from oeqa.selftest.base import oeSelfTest | ||
4 | from oeqa.utils.commands import runCmd, bitbake, get_bb_var | ||
5 | from oeqa.utils.decorators import testcase | ||
6 | |||
7 | class KernelTests(oeSelfTest): | ||
8 | def test_dummy_kernel(self): | ||
9 | """ | ||
10 | [YP#7202] | ||
11 | - test that linux-dummy target can be used as kernel provider for an image | ||
12 | - check no "multiple providers are available for" message is received while building the image | ||
13 | """ | ||
14 | config_param = 'PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"' | ||
15 | self.append_config(config_param) | ||
16 | arch_dir = get_bb_var('MULTIMACH_TARGET_SYS', target='linux-dummy') | ||
17 | stamps_dir = os.path.join(os.getenv('BUILDDIR'), "tmp/stamps") | ||
18 | lnx_dmy_stamps_dir = os.path.join(stamps_dir, arch_dir, 'linux-dummy') | ||
19 | res = bitbake("linux-dummy -ccleansstate") # ensure we have nothing related to linux-dummy in stamps dir. | ||
20 | self.assertFalse(os.listdir(lnx_dmy_stamps_dir), msg='linux-dummy stamps dir. should have been cleaned. Something \ | ||
21 | happened with bitbake linux-dummy -ccleansstate') | ||
22 | res = bitbake("core-image-minimal")# testing linux-dummy is both buildable and usable within an image | ||
23 | self.remove_config(config_param) | ||
24 | self.assertEqual(res.status, 0, msg="core-image-minimal failed to build. Please check logs. ") | ||
25 | self.assertNotIn("multiple providers are available for", res.output, msg="'multiple providers are available for\ | ||
26 | linux-dummy' message received during buildtime.") | ||
27 | self.assertTrue(os.listdir(lnx_dmy_stamps_dir), msg="linux-dummy didn't build correctly. No stamp present in stamps \ | ||
28 | dir. %s" % lnx_dmy_stamps_dir) | ||
29 | |||