[elbe-devel] [PATCH 1/2] simple-validation-image: validate contents of validation.txt

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri Jun 14 14:37:25 CEST 2024


Ensure that the example image does not produce any errors.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 tests/simple-validation-image-test.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/simple-validation-image-test.py b/tests/simple-validation-image-test.py
index 8f30a895ead2..40189eb8a1bc 100755
--- a/tests/simple-validation-image-test.py
+++ b/tests/simple-validation-image-test.py
@@ -24,6 +24,18 @@ def test_build_directory_contents(build_dir):
         assert f in created_files
 
 
+def test_validation_txt(build_dir):
+    assert build_dir.joinpath('validation.txt').read_text().strip() == textwrap.dedent("""
+        ELBE Package validation
+        =======================
+
+        Package List validation
+        -----------------------
+
+        No Errors found
+        """).strip()
+
+
 def _test_finetuning(root):
     # <rm>var/cache/apt/archives/*.deb</rm>
     for f in root.joinpath('var', 'cache', 'apt', 'archives').iterdir():

-- 
2.45.2



More information about the elbe-devel mailing list