diff options
| -rw-r--r-- | meta/lib/oeqa/sdk/cases/manifest.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdk/cases/manifest.py b/meta/lib/oeqa/sdk/cases/manifest.py new file mode 100644 index 0000000000..ee59a5f338 --- /dev/null +++ b/meta/lib/oeqa/sdk/cases/manifest.py | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | # | ||
| 2 | # Copyright OpenEmbedded Contributors | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: MIT | ||
| 5 | # | ||
| 6 | |||
| 7 | from oeqa.sdk.case import OESDKTestCase | ||
| 8 | from oeqa.sdkext.context import OESDKExtTestContext | ||
| 9 | |||
| 10 | |||
| 11 | class ManifestTest(OESDKTestCase): | ||
| 12 | def test_manifests(self): | ||
| 13 | """ | ||
| 14 | Verify that the host and target manifests are not empty, unless this is | ||
| 15 | a minimal eSDK without toolchain in which case they should be empty. | ||
| 16 | """ | ||
| 17 | if ( | ||
| 18 | isinstance(self.tc, OESDKExtTestContext) | ||
| 19 | and self.td.get("SDK_EXT_TYPE") == "minimal" | ||
| 20 | and self.td.get("SDK_INCLUDE_TOOLCHAIN") == "0" | ||
| 21 | ): | ||
| 22 | self.assertEqual(self.tc.target_pkg_manifest, {}) | ||
| 23 | self.assertEqual(self.tc.host_pkg_manifest, {}) | ||
| 24 | else: | ||
| 25 | self.assertNotEqual(self.tc.target_pkg_manifest, {}) | ||
| 26 | self.assertNotEqual(self.tc.host_pkg_manifest, {}) | ||
