mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
selftest/imagefeatures: add basic test for useradd-staticids
(From OE-Core rev: 468079140c1f19096bbc628663462beebc194800) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
51b3c38b5d
commit
5239691cc9
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
|
||||
self.assertTrue(os.path.exists(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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user