summaryrefslogtreecommitdiff
path: root/test/units/testsuite-35.sh
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2022-06-27 08:37:22 +0200
committerDavid Tardon <dtardon@redhat.com>2022-07-13 13:53:13 +0200
commit9ac0855b614b068e699092be7ec8cb39559ff88f (patch)
tree856bb1fe4e425d5cb10a5fc98d908157a687d865 /test/units/testsuite-35.sh
parentbd681a7eb04fd6d1fb9631e277bef93ceb06b321 (diff)
downloadsystemd-9ac0855b614b068e699092be7ec8cb39559ff88f.tar.gz
test: add test for org.freedesktop.login1.Session SetType
Diffstat (limited to 'test/units/testsuite-35.sh')
-rwxr-xr-xtest/units/testsuite-35.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/units/testsuite-35.sh b/test/units/testsuite-35.sh
index a1b7ee2687..33b5fbf1ee 100755
--- a/test/units/testsuite-35.sh
+++ b/test/units/testsuite-35.sh
@@ -474,6 +474,21 @@ EOF
assert_eq "$(systemctl --property SubState --value show user@"$(id -u logind-test-user)".service)" "dead"
}
+test_session_properties() {
+ local s
+
+ if [[ ! -c /dev/tty2 ]]; then
+ echo "/dev/tty2 does not exist, skipping test ${FUNCNAME[0]}."
+ return
+ fi
+
+ trap cleanup_session RETURN
+ create_session
+
+ s=$(loginctl list-sessions --no-legend | awk '$3 == "logind-test-user" { print $1 }')
+ /usr/lib/systemd/tests/manual/test-session-properties "/org/freedesktop/login1/session/_3${s?}"
+}
+
: >/failed
setup_test_user
@@ -485,6 +500,7 @@ test_shutdown
test_session
test_lock_idle_action
test_no_user_instance_for_cron
+test_session_properties
touch /testok
rm /failed