]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add some superficial integration tests 33000/head
authorLennart Poettering <lennart@poettering.net>
Thu, 23 May 2024 21:19:12 +0000 (23:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Jun 2024 15:28:16 +0000 (17:28 +0200)
test/units/TEST-13-NSPAWN.machinectl.sh
test/units/TEST-74-AUX-UTILS.ssh.sh

index 462cc6a8c33d55b75f854ac6aae70030ccbf1a21..7ff953bae9e78a4a7d3e823ad23710c7b62de04e 100755 (executable)
@@ -222,3 +222,6 @@ done
 (! machinectl read-only container1 "")
 (! machinectl read-only container1 foo)
 (! machinectl read-only container1 -- -1)
+
+varlinkctl --more call /run/systemd/machine/io.systemd.Machine io.systemd.Machine.List '{}'
+varlinkctl call /run/systemd/machine/io.systemd.Machine io.systemd.Machine.List '{"name":".host"}'
index 5d87d9f7acd3b185f4da340a4cf9bd0f74dc0c1b..482b6a1e28b99dfb77fa303fc334c7f4f7dde180 100755 (executable)
@@ -53,6 +53,7 @@ mkdir -p /usr/share/empty.sshd /var/empty /var/empty/sshd /run/sshd
 
 ssh -o StrictHostKeyChecking=no -v -i "$ROOTID" .host cat /etc/machine-id | cmp - /etc/machine-id
 ssh -o StrictHostKeyChecking=no -v -i "$ROOTID" unix/run/ssh-unix-local/socket cat /etc/machine-id | cmp - /etc/machine-id
+ssh -o StrictHostKeyChecking=no -v -i "$ROOTID" machine/.host cat /etc/machine-id | cmp - /etc/machine-id
 
 modprobe vsock_loopback ||:
 if test -e /dev/vsock -a -d /sys/module/vsock_loopback ; then