summaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #24016 from poettering/sysctl-cred-extraYu Watanabe2022-07-142-1/+4
|\ | | | | sysctl: also process sysctl requests via the "sysctl.extra" credential
| * sysctl: also process sysctl requests via the "sysctl.extra" credentialLennart Poettering2022-07-142-1/+4
| |
* | Merge pull request #23927 from AndreKalb/feature/ipv4-link-local-start-addressYu Watanabe2022-07-141-0/+1
|\ \ | | | | | | network: Feature IPv4 link-local start address
| * | network: Add support to select an IPv4 link-local start addressAndre Kalb2022-07-131-0/+1
| | |
* | | Revert "tests: add test for handling of background sessions"Michal Sekletar2022-07-142-46/+1
| |/ |/| | | | | 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-network: save and restore timezoneYu Watanabe2022-07-131-0/+15
| | | | | | | | | | | | Several DHCP client tests change the system timezone. Let's save the current timezone at the beginning, and restore it with the saved value at the end.
* | test-network: wait for L2TP tunnels being removedYu Watanabe2022-07-131-1/+13
| | | | | | | | Fixes #23985.
* | test-network: support to remove routing policy rules with l3mdev flagYu Watanabe2022-07-111-1/+1
| |
* | test-network: merge stdout and stderr of invoked command by call()Yu Watanabe2022-07-111-2/+2
| | | | | | | | Otherwise, the logs may be messed up.
* | test-network: various cleanupsYu Watanabe2022-07-111-1516/+1074
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - introduce several helper functions - do not list unit files, but remove the runtime unit directory in tearDown(). - do not list used interfaces, but remove all interfaces previously not exists in tearDown(). - save routes and routing policy rules before running tests, and flush unnecessary routes and rules in each tearDown() calls. - drop many time.sleep() calls. - call tearDown() after each sub tests. - shorten code. - several coding style fixes. - etc, etc... Hopefully, this improves performance of the test.
* | test-network: extend timeout for DHCP lease to be expiredYu Watanabe2022-07-111-1/+1
| | | | | | | | Fixes #23964.
* | test-network: use wait_operstate() at one more placeYu Watanabe2022-07-091-2/+1
| |
* | test-network: suppress periodic output in wait_operstate()Yu Watanabe2022-07-091-1/+2
| |
* | test-network: disable debugging logs from networkctl, resolvectl, and so onYu Watanabe2022-07-091-3/+6
| |
* | test-network: merge two DHCPv6 client testsYu Watanabe2022-07-093-23/+9
| |
* | test-network: replace sleep with wait_address() and wait_address_dropped()Yu Watanabe2022-07-091-1/+2
| |
* | test-network: merge two more tests with test_dhcp_client_ipv4_onlyYu Watanabe2022-07-093-37/+4
| |
* | test-network: merge tests for UseDNS=Yu Watanabe2022-07-091-68/+37
| |
* | test-network: merge two IPv4LL testsYu Watanabe2022-07-091-45/+21
| |
* | test-network: drop test_dhcp_client_ipv4_ipv6Yu Watanabe2022-07-092-40/+9
| | | | | | | | As the test is covered by test_dhcp_client_reuse_address_as_static.
* | test-network: check DHCPv4 address in more detailYu Watanabe2022-07-091-27/+17
| | | | | | | | Also, this drops redundant address check through networkctl.
* | test-network: drop 25-dhcp-v4-server-veth-peer.networkYu Watanabe2022-07-092-11/+6
| |
* | test-network: drop meaningless testYu Watanabe2022-07-092-41/+0
| | | | | | | | | | On DHCPv6 lease renew, the kernel do not drop static routes, and hence we do not try to reassign them. Hence, the test is mostly meaningless.
* | test-network: introduce read_dnsmasq_log_file() helper functionYu Watanabe2022-07-091-31/+21
| | | | | | | | | | This reduces the number of times that the log file is read. Also, dropped unnecessary dump of the log file.
* | test-network: shorten sleep time a bitYu Watanabe2022-07-091-17/+10
| | | | | | | | | | Network interfaces will be ready after lease is acquired. Hence, it is not necessary to wait more than lease time.
* | test-network: introduce read_link_state_file() helper functionYu Watanabe2022-07-091-70/+64
| |
* | 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-network: merge DHCP client tests to improve performanceYu Watanabe2022-07-0811-361/+141
| |
* | test: use timeout command to improve performanceYu Watanabe2022-07-081-40/+9
| | | | | | | | c.f. #23723.
* | test: remove /failed and /testok before running test scriptYu Watanabe2022-07-082-3/+5
| |
* | Merge pull request #23937 from mrc0mmand/test-tweaksYu Watanabe2022-07-073-27/+42
|\ \ | | | | | | Several ASan-related test suite tweaks
| * | test: use PBKDF2 with capped iterations instead of Argon2Frantisek Sumsal2022-07-071-1/+1
| | | | | | | | | | | | | | | to reduce the amount of resources the test needs (similarly to TEST-24 where we do the same thing).
| * | test: make TEST-64 a bit more ASan friendlyFrantisek Sumsal2022-07-071-15/+25
| | | | | | | | | | | | | | | | | | | | | | | | Reduce the number of iterations in some of the test cases, since they generate a huge amount of uevents and basically DoS udev (which can't keep up while being slowed down by ASan). To avoid this, let's reduce the number of iterations and bump the timeout when running under ASan, since we're not interested in performance in such cases.
| * | test: bump the data partition size if we don't strip binariesFrantisek Sumsal2022-07-071-9/+14
| | | | | | | | | | | | | | | | | | | | | so we can run TEST-24 under sanitizers as well. Also, when at it, use the 'named-fields' sfdisk format to make the code a bit more descriptive without needing a manual.
| * | test: create an ASan wrapper for `getent` and `su`Frantisek Sumsal2022-07-071-2/+2
| |/ | | | | | | | | since they "suffer" from the same issue as `login` and other binaries that load PAM stuff
* | test: avoid overriding an already existing EXIT handlerFrantisek Sumsal2022-07-071-10/+13
| | | | | | | | | | | | | | TEST-70 specified its own EXIT handler, which replaced the `cleanup_loopdev` handler, so the loop device was always hanging around once this test was run. Let's use the new `add_at_exit_handler()` stuff to mitigate this.
* | test: allow multiple handlers for the EXIT signalFrantisek Sumsal2022-07-071-1/+28
|/ | | | | | Bash allows only one handler per signal, so let's overcome this limitation by having one dedicated EXIT signal which runs all registered handlers from all over the place.
* test: several cleanups for TEST-35-LOGINYu Watanabe2022-07-073-231/+193
| | | | | | | | | - 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-072-0/+65
|
* test: fix typoYu Watanabe2022-07-071-2/+2
|
* Merge pull request #23396 from msekletar/fix-idle-action-lockYu Watanabe2022-07-072-0/+91
|\ | | | | logind: remember our idle state and use it to detect idle level transitions
| * tests: verify that Lock D-Bus signal is sent when IdleAction=lockMichal Sekletar2022-07-042-0/+91
| |
* | Merge pull request #23916 from keszybz/assorted-patchesYu Watanabe2022-07-0614-0/+0
|\ \ | | | | | | Assorted patches
| * | fuzz: rename samples to avoid long test namesZbigniew Jędrzejewski-Szmek2022-07-0514-0/+0
| |/
* | tree-wide: link to docs.kernel.org for kernel documentationnl67202022-07-041-1/+1
| | | | | | | | | | | | | | https://www.kernel.org/ links to https://docs.kernel.org/ for the documentation. See https://git.kernel.org/pub/scm/docs/kernel/website.git/commit/?id=ebc1c372850f249dd143c6d942e66c88ec610520 These URLs are shorter and nicer looking.
* | Merge pull request #23104 from mrc0mmand/resolved-testsYu Watanabe2022-07-0412-7/+551
|\ \ | | | | | | Introduce systemd-resolved test suite
| * | test: Introduce systemd-resolved test suiteFrantisek Sumsal2022-07-0411-0/+545
| | | | | | | | | | | | Resolves: #19599
| * | test: resize the terminal automagically with INTERACTIVE_DEBUG=yesFrantisek Sumsal2022-07-041-7/+5
| | |