summaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test-network: extend test case for DHCP server with null server addressYu Watanabe2024-03-181-0/+22
|
* shared/install: correctly install alias for units outside search pathNick Rosbrook2024-03-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, if a unit file is enabled from outside of the search path, and that unit has an alias, then the symlink ends up pointing outside of the search path too. For example: $ cat /tmp/a.service [Service] ExecStart=sleep infinity [Install] Alias=b.service WantedBy=multi-user.target $ systemctl enable /tmp/a.service Created symlink /etc/systemd/system/a.service → /tmp/a.service. Created symlink /etc/systemd/system/b.service → /tmp/a.service. Created symlink /etc/systemd/system/multi-user.target.wants/a.service → /tmp/a.service. This then means the alias is treated as a separate unit: $ systemctl start a.service $ sudo systemctl status a ● a.service Loaded: loaded (/etc/systemd/system/a.service; enabled; preset: enabled) Active: active (running) since Fri 2024-03-15 15:17:49 EDT; 9s ago Main PID: 769593 (sleep) Tasks: 1 (limit: 18898) Memory: 220.0K CPU: 5ms CGroup: /system.slice/a.service └─769593 sleep infinity Mar 15 15:17:49 six systemd[1]: Started a.service. $ sudo systemctl status b ○ b.service Loaded: loaded (/etc/systemd/system/b.service; alias) Active: inactive (dead) To fix this, make sure the alias uses a target that is inside the search path. Since the unit file itself is outside of the search path, a symlink inside the search path will have been created already. Hence, just point the alias symlink to that recently created symlink.
* Merge pull request #31811 from yuwata/network-pin-persistent-storageLuca Boccassi2024-03-181-1/+1
|\ | | | | network: pin file descriptor of persistent storage
| * network: pin file descriptor of persistent storageYu Watanabe2024-03-151-1/+1
| | | | | | | | | | | | This also drop the support of /run/systemd/netif/persistent-storage-ready, as the file is anyway removed when networkd is stopped. Let's use $SYSTEMD_NETWORK_PERSISTENT_STORAGE_READY=1 instead on testing.
* | test/TEST-46: drop whitespace after redirection operatorsZbigniew Jędrzejewski-Szmek2024-03-151-7/+7
|/
* journal/cat: allow connecting output to specific journal namespaceMike Yuan2024-03-141-0/+15
|
* test: split logs from each test into separate files if requestedFrantisek Sumsal2024-03-121-3/+22
| | | | | | If both $ARTIFACT_DIRECTORY and $SPLIT_TEST_LOGS are set, split the output from each test into a separate log file, so we don't have to load one ginormous log file when checking the results.
* test: clean up the integration test runner a bitFrantisek Sumsal2024-03-121-72/+81
|
* Merge pull request #30021 from yuwata/dhcp-client-id-cleanupsYu Watanabe2024-03-122-90/+123
|\ | | | | dhcp-server: save bound leases to persistent storage, and load it on start
| * test-network: add test case for DHCP server lease fileYu Watanabe2024-03-111-0/+12
| |
| * test-network: add support for systemd-networkd-persistent-storage.serviceYu Watanabe2024-03-112-5/+34
| |
| * test-network: copy system unit files from build or source directoryYu Watanabe2024-03-111-41/+68
| | | | | | | | Addresses https://github.com/systemd/systemd/pull/30021#issuecomment-1971090682.
| * test-network: drop unused options and variablesYu Watanabe2024-03-111-45/+10
| | | | | | | | | | This also renames several variables, and replace RuntimeError with assert.
* | tests/run-unit-tests: add option to skip testsRoss Burton2024-03-121-0/+8
| | | | | | | | | | | | | | | | In automated QA environments there may be tests that are known to fail, and being able to skip them is useful to remove known failures from the test log. Signed-off-by: Ross Burton <ross.burton@arm.com>
* | test/run-unit-tests: sort the test cases we're executingRoss Burton2024-03-111-1/+1
|/ | | | | | | When reading test logs manually it is a lot easier when the tests are sorted by name rather than by disk order. Signed-off-by: Ross Burton <ross.burton@arm.com>
* resolved: expose raw RR resolver via Varlink tooLennart Poettering2024-03-061-0/+4
| | | | | Now that we have an address, hostname, and service resolve, at the last kind of resovler we expose over D-Bus also to Varlink.
* Merge pull request #31621 from poettering/resolved-proxy-doLuca Boccassi2024-03-061-3/+3
|\ | | | | resolved: proxy upstream local requests to our stub with DO bit set
| * ci: disable test that is now answered by knotLennart Poettering2024-03-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | dig question with DNSSEC on will now be proxied upstream, i.e. to the test knot server. This leads to different results, but the result isn't tha tinteresting since we don't want to test knot, but resolved. Hence comment this test. There seems to be something wrong with the test though, as the upstream server refused recursion, but if so it is not suitable as an upstream server really, as resolved can only be client to a recursive resolver.
* | test: use 'ahost' instead of 'hosts' where applicableFrantisek Sumsal2024-03-061-15/+16
|/ | | | | | | | As explained in [0] the 'hosts' database uses deprecated gethostbyname2() which uses AF_INET6 instead of AF_UNSPEC for IPv6 lookups which is broken and makes the test fail with disabled IPv6. [0] https://github.com/systemd/systemd/pull/28136#issuecomment-1974901039
* test: explicitly set TERM=linux for TEST-69-SHUTDOWNFrantisek Sumsal2024-03-031-0/+1
| | | | | | | | | | | | | | | | | | | sulogin from the latest util-linux started falling back to vt102 instead of linux, which makes screen sad (because we install only the linux terminfo into the test image) and expect trips over the unexpected warning. Let's just explicitly set TERM=linux before invoking screen to avoid this. + make -C TEST-69-SHUTDOWN setup run ... INFO:test-shutdown:log in and start screen root root Last login: Sun Mar 3 13:19:31 from 18.191.105.60 -bash-5.2# screen screen Cannot find terminfo entry for 'vt102'. -bash-5.2# ERROR:test-shutdown:Timeout exceeded.
* Merge pull request #31587 from yuwata/udev-rps-follow-upsLuca Boccassi2024-03-021-83/+69
|\ | | | | udev: follow-ups for RPS setting
| * test-network: wait for the interface being processed by udevdYu Watanabe2024-03-021-67/+47
| | | | | | | | | | | | | | | | Otherwise, even if the interface is available, the requested config may not be applied to the interface yet. This also merges multiple tests for RPS setting. Hopefully the performance of the test is improved.
| * test-network: introduce udevadm() and friendsYu Watanabe2024-03-021-16/+22
| |
* | test-network: check enabled capabilities in LLDP neighborsYu Watanabe2024-03-021-3/+60
|/ | | | Addresses https://github.com/systemd/systemd/pull/31583#discussion_r1509880349.
* test: add integration test for importctlLennart Poettering2024-03-012-0/+69
| | | | | (these are explicit tests, on top of the existing machinectl tests that are now chainload importctl)
* test74: create ssh empty dir all at the same placeLennart Poettering2024-03-011-3/+1
| | | | | A follow up for 8fddb50fd4de43993c4906baf19dae89ff8a021b, which mirrors the change also in test 74.
* test: enable PAM debug logs in TEST-46-HOMEDLuca Boccassi2024-03-011-3/+3
|
* Merge pull request #31498 from ssahani/bondYu Watanabe2024-03-012-0/+2
|\ | | | | netdev: bond - add support for peer_notif_delay
| * test-network: Add test for bond peer_notif_delaySusant Sahani2024-02-282-0/+2
| |
* | test-network: add more test cases for LLDPYu Watanabe2024-03-011-0/+33
| |
* | test: create sshd's runtime directory (Debian variant)Frantisek Sumsal2024-02-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | sshd.service on Debian uses RuntimeDirectory=sshd, without which sshd complains: [ 4065.834904] sshd[711]: Missing privilege separation directory: /run/sshd [ 4065.835785] systemd[1]: mysshserver@0-127.0.0.1:4711-127.0.0.1:58232.service: Deactivated successfully. [ 4065.836433] testsuite-46.sh[708]: kex_exchange_identification: read: Connection reset by peer [ 4065.836433] testsuite-46.sh[708]: Connection reset by 127.0.0.1 port 4711 Resolves: #31518
* | test: avoid SIGPIPE from ssh | tail -n 1Frantisek Sumsal2024-02-291-3/+2
| | | | | | | | Addresses: https://github.com/systemd/systemd/issues/31518#issuecomment-1968295678
* | test: use ECDSA keys for ssh-related testsFrantisek Sumsal2024-02-291-6/+6
| | | | | | | | | | This should make the test faster, especially on machines without acceleration.
* | test: shell & cleanup cleanupFrantisek Sumsal2024-02-291-15/+20
| |
* | Merge pull request #31444 from bluca/semaphoreFrantisek Sumsal2024-02-281-1/+12
|\ \ | | | | | | semaphore: set upstream build profile and set default branch to debian/master
| * | test/README: document how to add a new empty release to the PPA to migrate ↵Luca Boccassi2024-02-281-0/+11
| | | | | | | | | | | | the CI to a new version
| * | test/README: update ubuntu IRC channel for CI helpLuca Boccassi2024-02-281-1/+1
| | |
* | | Merge pull request #31293 from ragazenta/netdev_rpsLuca Boccassi2024-02-2811-0/+188
|\ \ \ | |_|/ |/| | udevd: Add ReceivePacketSteeringCPUMask for systemd.link
| * | test-network: Add test for rps_cpu_mask optionRenjaya Raga Zenta2024-02-2811-0/+188
| | |
* | | test-network: fix typoYu Watanabe2024-02-281-1/+1
| |/ |/| | | | | Follow-up for a663ddc04e43a9234e00e47aed98bf2bbeb1573a.
* | Merge pull request #31515 from ↵Luca Boccassi2024-02-271-2/+2
|\ \ | | | | | | | | | | | | keszybz/small-cleanups-after-review-of-stable-batch Small cleanups after review of stable batch
| * | shared/pam-util: fix awkward tense in log messageZbigniew Jędrzejewski-Szmek2024-02-271-2/+2
| | |
* | | core: remove duplicate serialization of `cpu_sched_reset_on_fork`Antonio Alvarez Feijoo2024-02-271-1/+0
| | | | | | | | | | | | | | | | | | | | | `c->cpu_sched_reset_on_fork` is serialized using `exec-context-cpu-sched-reset-on-fork` and `exec-context-cpu-scheduling-reset-on-fork`. Let's keep only the second one, to serialize the value only if `cpu_sched_set` is true.
* | | test: drop route from test-functionsJan Engelhardt2024-02-271-1/+0
| | | | | | | | | | | | | | | I do not see `route` being exercised anywhere else, everything seems to be on `ip route` already.
* | | test: use socat in unidirectional modeFrantisek Sumsal2024-02-271-10/+19
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default socat open a separate r/w channel for each specified address, and terminates the connection after .5s from receiving EOF on _either_ side. And since one side of that connection is an empty stdin, we reach that EOF pretty quickly. Let's avoid this by using socat in "reversed unidirectional" mode, where the first address is used only for writing, and the second one is used only for reading. Addresses: - https://github.com/systemd/systemd/issues/31500 - https://github.com/systemd/systemd/issues/31493 Follow-up for 3456c89ac26.
* | Merge pull request #31000 from flatcar-hub/krnowak/mutable-overlaysLuca Boccassi2024-02-261-4/+720
|\ \ | |/ |/| systemd-sysext: Implement optional mutability for extensions
| * test: Extend systemd-sysext tests to cover the mutability featureKrzesimir Nowak2024-02-221-8/+450
| |
| * test: Initial systemd-sysext testsKrzesimir Nowak2024-02-221-4/+278
| | | | | | | | | | | | The follow-up commit will refactor some code in systemd-sysext, so add some tests to make sure that things didn't break. The tests will be later extended with cases for new features added.
* | Merge pull request #31455 from keszybz/restore-docs-urlsLennart Poettering2024-02-231-1/+1
|\ \ | | | | | | Restore docs urls
| * | Revert "docs: use collections to structure the data"Zbigniew Jędrzejewski-Szmek2024-02-231-1/+1
| |/ | | | | | | | | | | | | | | | | This reverts commit 5e8ff010a1436d33bbf3c108335af6e0b4ff7a2a. This broke all the URLs, we can't have that. (And actually, we probably don't _want_ to make the change either. It's nicer to have all the pages in one directory, so one doesn't have to figure out to which collection the page belongs.)