From ad9ee4112316c815d1059adb51bb58a9e35dc04e Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Mon, 15 Jun 2020 16:55:56 +0100
Subject: [PATCH] tests: Assert that /usr/share/libdrm gets linked into scout
 sysroot

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 tests/containers.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/containers.py b/tests/containers.py
index bd10c8a4b..a529f606c 100755
--- a/tests/containers.py
+++ b/tests/containers.py
@@ -624,6 +624,13 @@ class TestContainers(BaseTest):
                             '/run/host/usr/lib/{}/gconv'.format(multiarch),
                         )
 
+                    if os.path.isdir('/usr/share/libdrm'):
+                        link = os.path.join(
+                            tree, 'usr', 'share', 'libdrm',
+                        )
+                        target = os.readlink(link)
+                        self.assertEqual(target, '/run/host/usr/share/libdrm')
+
         if is_scout:
             if os.path.isdir('/usr/lib/locale'):
                 link = os.path.join(tree, 'usr', 'lib', 'locale')
-- 
GitLab