summaryrefslogtreecommitdiff
path: root/test/units/testsuite-35.sh
Commit message (Collapse)AuthorAgeFilesLines
* test: use idiomatic bash loop iterationZbigniew Jędrzejewski-Szmek2023-04-241-2/+2
| | | | | In a few cases, also avoid a sleep in the last (failed) iteration of the loop. It doesn't matter too much, but it's still ugly.
* treewide: fix unnecessary $ on arithmetic variablesDmitry V. Levin2023-04-011-1/+1
| | | | This should fix shellcheck warning SC2004.
* test: install unit tests in a dedicated subdirectory below '$testsdir'Franck Bui2023-03-241-1/+1
| | | | | | | | | | | /usr/lib/systemd/tests may contain more than the unit tests. For example on SUSE we also install the integration tests there. Putting the unit tests in a dedicated directory named 'unit-tests' makes the layout cleaner. Note that `run-unit-tests.py` has not been moved so we don't need to adjust (Fedora) packaging and users also don't need to descend into the subdirectory.
* test: test setting ambient caps via pam_systemd.soLennart Poettering2023-02-281-0/+53
|
* test: add a couple of sanity tests for loginctlFrantisek Sumsal2022-11-011-0/+45
|
* tests: add test for StopIdleSessionSec= optionMichal Sekletar2022-08-241-0/+37
|
* test: restart logind before cleaning up sessionsYu Watanabe2022-07-311-2/+2
| | | | Hopefully, fixes #24040.
* test: do not restart getty@tty2 automaticallyYu Watanabe2022-07-311-0/+1
|
* test: terminate session and user on cleanupYu Watanabe2022-07-311-1/+12
|
* test: wait for user service or slice to be finishedYu Watanabe2022-07-221-5/+22
| | | | Hopefully fixes #24040.
* test: merge grep | awk callsDavid Tardon2022-07-171-3/+3
|
* test: add a simple test for list-usersDavid Tardon2022-07-171-0/+20
|
* Revert "tests: add test for handling of background sessions"Michal Sekletar2022-07-141-45/+0
| | | | This reverts commit bf40417c7cbe0afb185eda97ea46395b1bb74bdf.
* test: add test for org.freedesktop.login1.Session SetTypeDavid Tardon2022-07-131-0/+16
|
* test: ensure cleanup functions return successDavid Tardon2022-07-131-0/+12
| | | | | | | | | | | | | | | | | Otherwise the return value of the last command is propagated, which may cause spurious test failures. E.g., pkill returns 1 if no process matched, which may be a problem in cleanup session: cleanup_session() { ... pkill -u "$(id -u logind-test-user)" sleep 1 pkill -KILL -u "$(id -u logind-test-user)" } If there are no remaining processes when the final pkill runs, it will return 1 and therefore cleanup_session will return 1 as well.
* test: start test user session before idle action setting is changedYu Watanabe2022-07-081-49/+38
| | | | | | | | | | Otherwise, idle action may be triggered before starting the test user session. This also introduce create_session() and cleanup_session() helper functions. Fixes #23952.
* test: several cleanups for TEST-35-LOGINYu Watanabe2022-07-071-220/+188
| | | | | | | | | - use test_append_files() to install additional commands - drop use of expect - include assert.sh and use assertions at several places - use timeout command at several places - always use logind-test-user - etc
* tests: add test for handling of background sessionsMichal Sekletar2022-07-071-0/+64
|
* test: fix typoYu Watanabe2022-07-071-2/+2
|
* tests: verify that Lock D-Bus signal is sent when IdleAction=lockMichal Sekletar2022-07-041-0/+84
|
* tree-wide: fix typoYu Watanabe2022-06-151-1/+1
|
* test: use trap RETURNYu Watanabe2022-06-141-8/+2
|
* test: insert space in for loopYu Watanabe2022-06-141-4/+4
|
* test: import logind test from debian/ubuntu test suiteYu Watanabe2022-06-101-0/+379