Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test: use idiomatic bash loop iteration | Zbigniew Jędrzejewski-Szmek | 2023-04-24 | 1 | -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 variables | Dmitry V. Levin | 2023-04-01 | 1 | -1/+1 |
| | | | | This should fix shellcheck warning SC2004. | ||||
* | test: install unit tests in a dedicated subdirectory below '$testsdir' | Franck Bui | 2023-03-24 | 1 | -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.so | Lennart Poettering | 2023-02-28 | 1 | -0/+53 |
| | |||||
* | test: add a couple of sanity tests for loginctl | Frantisek Sumsal | 2022-11-01 | 1 | -0/+45 |
| | |||||
* | tests: add test for StopIdleSessionSec= option | Michal Sekletar | 2022-08-24 | 1 | -0/+37 |
| | |||||
* | test: restart logind before cleaning up sessions | Yu Watanabe | 2022-07-31 | 1 | -2/+2 |
| | | | | Hopefully, fixes #24040. | ||||
* | test: do not restart getty@tty2 automatically | Yu Watanabe | 2022-07-31 | 1 | -0/+1 |
| | |||||
* | test: terminate session and user on cleanup | Yu Watanabe | 2022-07-31 | 1 | -1/+12 |
| | |||||
* | test: wait for user service or slice to be finished | Yu Watanabe | 2022-07-22 | 1 | -5/+22 |
| | | | | Hopefully fixes #24040. | ||||
* | test: merge grep | awk calls | David Tardon | 2022-07-17 | 1 | -3/+3 |
| | |||||
* | test: add a simple test for list-users | David Tardon | 2022-07-17 | 1 | -0/+20 |
| | |||||
* | Revert "tests: add test for handling of background sessions" | Michal Sekletar | 2022-07-14 | 1 | -45/+0 |
| | | | | This reverts commit bf40417c7cbe0afb185eda97ea46395b1bb74bdf. | ||||
* | test: add test for org.freedesktop.login1.Session SetType | David Tardon | 2022-07-13 | 1 | -0/+16 |
| | |||||
* | test: ensure cleanup functions return success | David Tardon | 2022-07-13 | 1 | -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 changed | Yu Watanabe | 2022-07-08 | 1 | -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-LOGIN | Yu Watanabe | 2022-07-07 | 1 | -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 sessions | Michal Sekletar | 2022-07-07 | 1 | -0/+64 |
| | |||||
* | test: fix typo | Yu Watanabe | 2022-07-07 | 1 | -2/+2 |
| | |||||
* | tests: verify that Lock D-Bus signal is sent when IdleAction=lock | Michal Sekletar | 2022-07-04 | 1 | -0/+84 |
| | |||||
* | tree-wide: fix typo | Yu Watanabe | 2022-06-15 | 1 | -1/+1 |
| | |||||
* | test: use trap RETURN | Yu Watanabe | 2022-06-14 | 1 | -8/+2 |
| | |||||
* | test: insert space in for loop | Yu Watanabe | 2022-06-14 | 1 | -4/+4 |
| | |||||
* | test: import logind test from debian/ubuntu test suite | Yu Watanabe | 2022-06-10 | 1 | -0/+379 |