[9/9] testsuite: add signature cachability checks

Message ID 20240402172813.418770-10-chris.larson@siemens.com
State Superseded, archived
Headers show
Series Add more signature cachability tests to the testsuite | expand

Commit Message

kergoth@gmail.com April 2, 2024, 5:28 p.m. UTC
From: Christopher Larson <chris.larson@seimens.com>

The current sstate tests do call `isar-sstate lint`` after populating
the shared state cache, but those tests take some time to do so, and do
not check for cachability issues for other targets, so add a new test
which does so.

Signed-off-by: Christopher Larson <chris.larson@siemens.com>
---
 testsuite/citest.py | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

Patch

diff --git a/testsuite/citest.py b/testsuite/citest.py
index 7e24c498..b1c0b760 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -290,8 +290,28 @@  def test_container_sdk(self):
         self.init()
         self.perform_build_test(targets, bitbake_cmd='do_populate_sdk', container=True)
 
-class SstateTest(CIBaseTest):
+class SignatureTest(CIBaseTest):
+    """
+    Test for signature cachability issues which prevent shared state reuse.
 
+    SstateTest also checks for these, but this test is faster and will check more cases.
+
+    :avocado: tags=signatures,sstate
+    """
+    def test_signature_lint(self):
+        verbose = bool(int(self.params.get("verbose", default=0)))
+        targets = [
+            'mc:qemuamd64-bullseye:isar-image-ci',
+            'mc:qemuarm-bullseye:isar-image-base',
+            'mc:qemuarm-bullseye:isar-image-base:do_populate_sdk',
+            'mc:qemuarm64-bullseye:isar-image-base',
+            'mc:qemuamd64-focal:isar-image-base'
+                  ]
+
+        self.init()
+        self.perform_signature_lint(targets, verbose=verbose)
+
+class SstateTest(CIBaseTest):
     """
     Test builds with artifacts taken from sstate cache