summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-selftest/files/static-group14
-rw-r--r--meta-selftest/files/static-passwd11
-rw-r--r--meta/lib/oeqa/selftest/cases/imagefeatures.py10
3 files changed, 35 insertions, 0 deletions
diff --git a/meta-selftest/files/static-group b/meta-selftest/files/static-group
new file mode 100644
index 0000000000..9213b8e9bc
--- /dev/null
+++ b/meta-selftest/files/static-group
@@ -0,0 +1,14 @@
1messagebus:x:500:
2systemd-bus-proxy:x:501:
3systemd-network:x:502:
4systemd-resolve:x:503:
5systemd-timesync:x:504:
6polkitd:x:505:
7lock:x:506:
8systemd-journal:x:507:
9netdev:x:508:
10avahi:x:509:
11avahi-autoipd:x:510:
12rpc:x:511:
13rpcuser:x:513:
14
diff --git a/meta-selftest/files/static-passwd b/meta-selftest/files/static-passwd
new file mode 100644
index 0000000000..412f85d469
--- /dev/null
+++ b/meta-selftest/files/static-passwd
@@ -0,0 +1,11 @@
1messagebus:x:500:500::/var/lib/dbus:/bin/false
2systemd-bus-proxy:x:501:501::/:/bin/nologin
3systemd-network:x:502:502::/:/bin/nologin
4systemd-resolve:x:503:503::/:/bin/nologin
5systemd-timesync:x:504:504::/:/bin/nologin
6polkitd:x:505:505::/:/bin/nologin
7avahi:x:509:509::/:/bin/nologin
8avahi-autoipd:x:510:510::/:/bin/nologin
9rpc:x:511:511::/:/bin/nologin
10distcc:x:512:nogroup::/:/bin/nologin
11rpcuser:x:513:513::/var/lib/nfs:/bin/nologin
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py
index 1a850008ef..2ca66d0cf3 100644
--- a/meta/lib/oeqa/selftest/cases/imagefeatures.py
+++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py
@@ -226,3 +226,13 @@ class ImageFeatures(OESelftestTestCase):
226 # check if result image is in deploy directory 226 # check if result image is in deploy directory
227 self.assertTrue(os.path.exists(image_path), 227 self.assertTrue(os.path.exists(image_path),
228 "%s image %s doesn't exist" % (itype, image_path)) 228 "%s image %s doesn't exist" % (itype, image_path))
229
230 def test_useradd_static(self):
231 config = """
232USERADDEXTENSION = "useradd-staticids"
233USERADD_ERROR_DYNAMIC = "skip"
234USERADD_UID_TABLES += "files/static-passwd"
235USERADD_GID_TABLES += "files/static-group"
236"""
237 self.write_config(config)
238 bitbake("core-image-base")