diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-03-16 15:19:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-17 16:53:04 +0000 |
commit | fd04d165684963b066333e1ac442e92584a534b7 (patch) | |
tree | 115b76aed656fc8be829f23c83fb2c7a87f72dc1 /meta/lib | |
parent | 9a548edb0f01fe000bbada155cc66fc2936221d2 (diff) | |
download | poky-fd04d165684963b066333e1ac442e92584a534b7.tar.gz |
selftest/signing.py: verify that images can be created from signed packages
(From OE-Core rev: e53b93181ea1723ddeeb75c4195e9412e64721c0)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/signing.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/signing.py b/meta/lib/oeqa/selftest/signing.py index ba44c796b0..c1dd801400 100644 --- a/meta/lib/oeqa/selftest/signing.py +++ b/meta/lib/oeqa/selftest/signing.py | |||
@@ -34,8 +34,10 @@ class Signing(oeSelfTest): | |||
34 | """ | 34 | """ |
35 | Summary: Test that packages can be signed in the package feed | 35 | Summary: Test that packages can be signed in the package feed |
36 | Expected: Package should be signed with the correct key | 36 | Expected: Package should be signed with the correct key |
37 | Expected: Images can be created from signed packages | ||
37 | Product: oe-core | 38 | Product: oe-core |
38 | Author: Daniel Istrate <daniel.alexandrux.istrate@intel.com> | 39 | Author: Daniel Istrate <daniel.alexandrux.istrate@intel.com> |
40 | Author: Alexander Kanavin <alexander.kanavin@intel.com> | ||
39 | AutomatedBy: Daniel Istrate <daniel.alexandrux.istrate@intel.com> | 41 | AutomatedBy: Daniel Istrate <daniel.alexandrux.istrate@intel.com> |
40 | """ | 42 | """ |
41 | import oe.packagedata | 43 | import oe.packagedata |
@@ -85,6 +87,12 @@ class Signing(oeSelfTest): | |||
85 | self.assertIn('rsa sha1 (md5) pgp md5 OK', ret.output, 'Package signed incorrectly.') | 87 | self.assertIn('rsa sha1 (md5) pgp md5 OK', ret.output, 'Package signed incorrectly.') |
86 | shutil.rmtree(rpmdb) | 88 | shutil.rmtree(rpmdb) |
87 | 89 | ||
90 | #Check that an image can be built from signed packages | ||
91 | self.add_command_to_tearDown('bitbake -c clean core-image-minimal') | ||
92 | bitbake('-c clean core-image-minimal') | ||
93 | bitbake('core-image-minimal') | ||
94 | |||
95 | |||
88 | @testcase(1382) | 96 | @testcase(1382) |
89 | def test_signing_sstate_archive(self): | 97 | def test_signing_sstate_archive(self): |
90 | """ | 98 | """ |