mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
selftest/imagefeatures: add basic test for useradd-staticids
(From OE-Core rev: cb20382d85f5758ac9fb7cd7df085d07005f1337) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
55d21c7fb6
commit
dd03b7399b
14
meta-selftest/files/static-group
Normal file
14
meta-selftest/files/static-group
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
messagebus:x:500:
|
||||||
|
systemd-bus-proxy:x:501:
|
||||||
|
systemd-network:x:502:
|
||||||
|
systemd-resolve:x:503:
|
||||||
|
systemd-timesync:x:504:
|
||||||
|
polkitd:x:505:
|
||||||
|
lock:x:506:
|
||||||
|
systemd-journal:x:507:
|
||||||
|
netdev:x:508:
|
||||||
|
avahi:x:509:
|
||||||
|
avahi-autoipd:x:510:
|
||||||
|
rpc:x:511:
|
||||||
|
rpcuser:x:513:
|
||||||
|
|
||||||
11
meta-selftest/files/static-passwd
Normal file
11
meta-selftest/files/static-passwd
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
messagebus:x:500:500::/var/lib/dbus:/bin/false
|
||||||
|
systemd-bus-proxy:x:501:501::/:/bin/nologin
|
||||||
|
systemd-network:x:502:502::/:/bin/nologin
|
||||||
|
systemd-resolve:x:503:503::/:/bin/nologin
|
||||||
|
systemd-timesync:x:504:504::/:/bin/nologin
|
||||||
|
polkitd:x:505:505::/:/bin/nologin
|
||||||
|
avahi:x:509:509::/:/bin/nologin
|
||||||
|
avahi-autoipd:x:510:510::/:/bin/nologin
|
||||||
|
rpc:x:511:511::/:/bin/nologin
|
||||||
|
distcc:x:512:nogroup::/:/bin/nologin
|
||||||
|
rpcuser:x:513:513::/var/lib/nfs:/bin/nologin
|
||||||
@@ -226,3 +226,13 @@ class ImageFeatures(OESelftestTestCase):
|
|||||||
# check if result image is in deploy directory
|
# check if result image is in deploy directory
|
||||||
self.assertTrue(os.path.exists(image_path),
|
self.assertTrue(os.path.exists(image_path),
|
||||||
"%s image %s doesn't exist" % (itype, image_path))
|
"%s image %s doesn't exist" % (itype, image_path))
|
||||||
|
|
||||||
|
def test_useradd_static(self):
|
||||||
|
config = """
|
||||||
|
USERADDEXTENSION = "useradd-staticids"
|
||||||
|
USERADD_ERROR_DYNAMIC = "skip"
|
||||||
|
USERADD_UID_TABLES += "files/static-passwd"
|
||||||
|
USERADD_GID_TABLES += "files/static-group"
|
||||||
|
"""
|
||||||
|
self.write_config(config)
|
||||||
|
bitbake("core-image-base")
|
||||||
|
|||||||
Reference in New Issue
Block a user