]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add test for new /sbin/mount.ddi helper
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Mar 2023 17:27:38 +0000 (18:27 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Mar 2023 21:54:52 +0000 (22:54 +0100)
test/units/testsuite-50.sh

index a0723057394d4cd12849d720d56056fed10018e4..cb99b811c937f21294abc4f24cfa1aff389e3449 100755 (executable)
@@ -424,6 +424,12 @@ grep -q -F '{"name":"b","type":"raw","class":"portable","ro":false,"path":"/run/
 grep -q -F '{"name":"c","type":"raw","class":"extension","ro":false,"path":"/run/extensions/c.raw"' /tmp/discover.json
 rm /tmp/discover.json /run/machines/a.raw /run/portables/b.raw /run/extensions/c.raw
 
+# Check that the /sbin/mount.ddi helper works
+T="/tmp/mounthelper.$RANDOM"
+mount -t ddi "${image}.gpt" "$T" -o ro,X-mount.mkdir,discard
+umount -R "$T"
+rmdir "$T"
+
 echo OK >/testok
 
 exit 0