blob: ee59a5f3386d42ac75070dde8b465195ca69d4a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#
# Copyright OpenEmbedded Contributors
#
# SPDX-License-Identifier: MIT
#
from oeqa.sdk.case import OESDKTestCase
from oeqa.sdkext.context import OESDKExtTestContext
class ManifestTest(OESDKTestCase):
def test_manifests(self):
"""
Verify that the host and target manifests are not empty, unless this is
a minimal eSDK without toolchain in which case they should be empty.
"""
if (
isinstance(self.tc, OESDKExtTestContext)
and self.td.get("SDK_EXT_TYPE") == "minimal"
and self.td.get("SDK_INCLUDE_TOOLCHAIN") == "0"
):
self.assertEqual(self.tc.target_pkg_manifest, {})
self.assertEqual(self.tc.host_pkg_manifest, {})
else:
self.assertNotEqual(self.tc.target_pkg_manifest, {})
self.assertNotEqual(self.tc.host_pkg_manifest, {})
|