Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #24016 from poettering/sysctl-cred-extra | Yu Watanabe | 2022-07-14 | 2 | -1/+4 |
|\ | | | | | sysctl: also process sysctl requests via the "sysctl.extra" credential | ||||
| * | sysctl: also process sysctl requests via the "sysctl.extra" credential | Lennart Poettering | 2022-07-14 | 2 | -1/+4 |
| | | |||||
* | | Merge pull request #23927 from AndreKalb/feature/ipv4-link-local-start-address | Yu Watanabe | 2022-07-14 | 1 | -0/+1 |
|\ \ | | | | | | | network: Feature IPv4 link-local start address | ||||
| * | | network: Add support to select an IPv4 link-local start address | Andre Kalb | 2022-07-13 | 1 | -0/+1 |
| | | | |||||
* | | | Revert "tests: add test for handling of background sessions" | Michal Sekletar | 2022-07-14 | 2 | -46/+1 |
| |/ |/| | | | | | 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-network: save and restore timezone | Yu Watanabe | 2022-07-13 | 1 | -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 removed | Yu Watanabe | 2022-07-13 | 1 | -1/+13 |
| | | | | | | | | Fixes #23985. | ||||
* | | test-network: support to remove routing policy rules with l3mdev flag | Yu Watanabe | 2022-07-11 | 1 | -1/+1 |
| | | |||||
* | | test-network: merge stdout and stderr of invoked command by call() | Yu Watanabe | 2022-07-11 | 1 | -2/+2 |
| | | | | | | | | Otherwise, the logs may be messed up. | ||||
* | | test-network: various cleanups | Yu Watanabe | 2022-07-11 | 1 | -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 expired | Yu Watanabe | 2022-07-11 | 1 | -1/+1 |
| | | | | | | | | Fixes #23964. | ||||
* | | test-network: use wait_operstate() at one more place | Yu Watanabe | 2022-07-09 | 1 | -2/+1 |
| | | |||||
* | | test-network: suppress periodic output in wait_operstate() | Yu Watanabe | 2022-07-09 | 1 | -1/+2 |
| | | |||||
* | | test-network: disable debugging logs from networkctl, resolvectl, and so on | Yu Watanabe | 2022-07-09 | 1 | -3/+6 |
| | | |||||
* | | test-network: merge two DHCPv6 client tests | Yu Watanabe | 2022-07-09 | 3 | -23/+9 |
| | | |||||
* | | test-network: replace sleep with wait_address() and wait_address_dropped() | Yu Watanabe | 2022-07-09 | 1 | -1/+2 |
| | | |||||
* | | test-network: merge two more tests with test_dhcp_client_ipv4_only | Yu Watanabe | 2022-07-09 | 3 | -37/+4 |
| | | |||||
* | | test-network: merge tests for UseDNS= | Yu Watanabe | 2022-07-09 | 1 | -68/+37 |
| | | |||||
* | | test-network: merge two IPv4LL tests | Yu Watanabe | 2022-07-09 | 1 | -45/+21 |
| | | |||||
* | | test-network: drop test_dhcp_client_ipv4_ipv6 | Yu Watanabe | 2022-07-09 | 2 | -40/+9 |
| | | | | | | | | As the test is covered by test_dhcp_client_reuse_address_as_static. | ||||
* | | test-network: check DHCPv4 address in more detail | Yu Watanabe | 2022-07-09 | 1 | -27/+17 |
| | | | | | | | | Also, this drops redundant address check through networkctl. | ||||
* | | test-network: drop 25-dhcp-v4-server-veth-peer.network | Yu Watanabe | 2022-07-09 | 2 | -11/+6 |
| | | |||||
* | | test-network: drop meaningless test | Yu Watanabe | 2022-07-09 | 2 | -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 function | Yu Watanabe | 2022-07-09 | 1 | -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 bit | Yu Watanabe | 2022-07-09 | 1 | -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 function | Yu Watanabe | 2022-07-09 | 1 | -70/+64 |
| | | |||||
* | | 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-network: merge DHCP client tests to improve performance | Yu Watanabe | 2022-07-08 | 11 | -361/+141 |
| | | |||||
* | | test: use timeout command to improve performance | Yu Watanabe | 2022-07-08 | 1 | -40/+9 |
| | | | | | | | | c.f. #23723. | ||||
* | | test: remove /failed and /testok before running test script | Yu Watanabe | 2022-07-08 | 2 | -3/+5 |
| | | |||||
* | | Merge pull request #23937 from mrc0mmand/test-tweaks | Yu Watanabe | 2022-07-07 | 3 | -27/+42 |
|\ \ | | | | | | | Several ASan-related test suite tweaks | ||||
| * | | test: use PBKDF2 with capped iterations instead of Argon2 | Frantisek Sumsal | 2022-07-07 | 1 | -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 friendly | Frantisek Sumsal | 2022-07-07 | 1 | -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 binaries | Frantisek Sumsal | 2022-07-07 | 1 | -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 Sumsal | 2022-07-07 | 1 | -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 handler | Frantisek Sumsal | 2022-07-07 | 1 | -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 signal | Frantisek Sumsal | 2022-07-07 | 1 | -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-LOGIN | Yu Watanabe | 2022-07-07 | 3 | -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 sessions | Michal Sekletar | 2022-07-07 | 2 | -0/+65 |
| | |||||
* | test: fix typo | Yu Watanabe | 2022-07-07 | 1 | -2/+2 |
| | |||||
* | Merge pull request #23396 from msekletar/fix-idle-action-lock | Yu Watanabe | 2022-07-07 | 2 | -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=lock | Michal Sekletar | 2022-07-04 | 2 | -0/+91 |
| | | |||||
* | | Merge pull request #23916 from keszybz/assorted-patches | Yu Watanabe | 2022-07-06 | 14 | -0/+0 |
|\ \ | | | | | | | Assorted patches | ||||
| * | | fuzz: rename samples to avoid long test names | Zbigniew Jędrzejewski-Szmek | 2022-07-05 | 14 | -0/+0 |
| |/ | |||||
* | | tree-wide: link to docs.kernel.org for kernel documentation | nl6720 | 2022-07-04 | 1 | -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-tests | Yu Watanabe | 2022-07-04 | 12 | -7/+551 |
|\ \ | | | | | | | Introduce systemd-resolved test suite | ||||
| * | | test: Introduce systemd-resolved test suite | Frantisek Sumsal | 2022-07-04 | 11 | -0/+545 |
| | | | | | | | | | | | | Resolves: #19599 | ||||
| * | | test: resize the terminal automagically with INTERACTIVE_DEBUG=yes | Frantisek Sumsal | 2022-07-04 | 1 | -7/+5 |
| | | |