[elbe-devel] [PATCH 5/5] tests: simple-validation-image: validate pbuilder functionality

Thomas Weißschuh thomas.weissschuh at linutronix.de
Thu Aug 22 10:09:47 CEST 2024


Add a test to validate the <pbuilder> element works as expected.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 tests/simple-validation-image-test.py | 6 ++++++
 tests/simple-validation-image.xml     | 5 +++++
 2 files changed, 11 insertions(+)

diff --git a/tests/simple-validation-image-test.py b/tests/simple-validation-image-test.py
index 834ccbd011d6..c20e7c4ff8a6 100755
--- a/tests/simple-validation-image-test.py
+++ b/tests/simple-validation-image-test.py
@@ -103,6 +103,11 @@ def test_elbe_report_txt(build_dir):
         Installed Packages List
         -----------------------
 
+        Local
+        ~~~~~
+
+        |libgpio1|3.0.0| bookworm main
+
         Debian
         ~~~~~~
 
@@ -250,6 +255,7 @@ def _test_rfs_partition(build_dir, part):
         assert str(getty_service.readlink()) == '/lib/systemd/system/serial-getty at .service'
 
         assert root.joinpath('usr', 'bin', 'unzip').is_file()
+        assert root.joinpath('usr', 'lib', 'x86_64-linux-gnu', 'libgpio-3.0.0.so.3.0.0').is_file()
 
         _test_generated_elbe_files(build_dir, root)
         _test_finetuning(root)
diff --git a/tests/simple-validation-image.xml b/tests/simple-validation-image.xml
index 74a184983645..2fe79ea932ef 100644
--- a/tests/simple-validation-image.xml
+++ b/tests/simple-validation-image.xml
@@ -52,8 +52,13 @@ SPDX-FileCopyrightText: Linutronix GmbH
 			</bylabel>
 		</fstab>
 
+		<pbuilder>
+			<git>https://github.com/Linutronix/libgpio.git</git>
+		</pbuilder>
+
 		<pkg-list>
 			<pkg>unzip</pkg>
+			<pkg>libgpio1</pkg>
 		</pkg-list>
 
 		<finetuning>

-- 
2.46.0



More information about the elbe-devel mailing list