Mike Yuan
45bcab66a9
journal/cat: allow connecting output to specific journal namespace
2024-03-14 14:25:53 +08:00
Frantisek Sumsal
beffcd62f8
test: split logs from each test into separate files if requested
...
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.
2024-03-12 17:34:55 +01:00
Frantisek Sumsal
aec72d7901
test: clean up the integration test runner a bit
2024-03-12 17:34:55 +01:00
Yu Watanabe
06baee4ea3
Merge pull request #30021 from yuwata/dhcp-client-id-cleanups
...
dhcp-server: save bound leases to persistent storage, and load it on start
2024-03-12 13:40:09 +09:00
Ross Burton
59e33acc8e
tests/run-unit-tests: add option to skip tests
...
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 >
2024-03-11 23:27:01 +00:00
Ross Burton
4a052a718a
test/run-unit-tests: sort the test cases we're executing
...
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 >
2024-03-11 18:11:30 +00:00
Yu Watanabe
1c4411b7ff
test-network: add test case for DHCP server lease file
2024-03-12 01:57:17 +09:00
Yu Watanabe
c84a5f5eaf
test-network: add support for systemd-networkd-persistent-storage.service
2024-03-12 01:57:16 +09:00
Yu Watanabe
83cc18257e
test-network: copy system unit files from build or source directory
...
Addresses https://github.com/systemd/systemd/pull/30021#issuecomment-1971090682 .
2024-03-12 01:17:40 +09:00
Yu Watanabe
f66045c7d4
test-network: drop unused options and variables
...
This also renames several variables, and replace RuntimeError with
assert.
2024-03-12 01:14:40 +09:00
Lennart Poettering
cf1c8cdb87
resolved: expose raw RR resolver via Varlink too
...
Now that we have an address, hostname, and service resolve, at the last
kind of resovler we expose over D-Bus also to Varlink.
2024-03-06 19:00:53 +01:00
Luca Boccassi
ba6ec879bb
Merge pull request #31621 from poettering/resolved-proxy-do
...
resolved: proxy upstream local requests to our stub with DO bit set
2024-03-06 13:55:14 +00:00
Frantisek Sumsal
4e5a7e1923
test: use 'ahost' instead of 'hosts' where applicable
...
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
2024-03-06 01:15:30 +00:00
Lennart Poettering
df81adba88
ci: disable test that is now answered by knot
...
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.
2024-03-05 15:29:19 +01:00
Frantisek Sumsal
7a63c5e550
test: explicitly set TERM=linux for TEST-69-SHUTDOWN
...
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.
2024-03-03 21:12:43 +01:00
Luca Boccassi
e440426221
Merge pull request #31587 from yuwata/udev-rps-follow-ups
...
udev: follow-ups for RPS setting
2024-03-02 11:47:44 +00:00
Yu Watanabe
4b35dab86a
test-network: wait for the interface being processed by udevd
...
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.
2024-03-02 14:50:40 +09:00
Yu Watanabe
a39a2a8121
test-network: introduce udevadm() and friends
2024-03-02 14:50:40 +09:00
Yu Watanabe
0f805b4661
test-network: check enabled capabilities in LLDP neighbors
...
Addresses https://github.com/systemd/systemd/pull/31583#discussion_r1509880349 .
2024-03-02 13:52:28 +09:00
Lennart Poettering
befbfca70f
test: add integration test for importctl
...
(these are explicit tests, on top of the existing machinectl tests that
are now chainload importctl)
2024-03-01 22:29:08 +01:00
Lennart Poettering
120f4a4451
test74: create ssh empty dir all at the same place
...
A follow up for 8fddb50fd4 , which mirrors
the change also in test 74.
2024-03-01 22:24:32 +01:00
Luca Boccassi
0abe0cd402
test: enable PAM debug logs in TEST-46-HOMED
2024-03-01 10:07:27 +00:00
Yu Watanabe
d5e6df24bd
Merge pull request #31498 from ssahani/bond
...
netdev: bond - add support for peer_notif_delay
2024-03-01 12:45:52 +09:00
Yu Watanabe
d6360819a7
test-network: add more test cases for LLDP
2024-03-01 09:40:26 +09:00
Frantisek Sumsal
8fddb50fd4
test: create sshd's runtime directory (Debian variant)
...
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
2024-02-29 13:44:29 +01:00
Frantisek Sumsal
38cbb9ab8a
test: avoid SIGPIPE from ssh | tail -n 1
...
Addresses: https://github.com/systemd/systemd/issues/31518#issuecomment-1968295678
2024-02-29 13:43:40 +01:00
Frantisek Sumsal
905c9d2c92
test: use ECDSA keys for ssh-related tests
...
This should make the test faster, especially on machines without
acceleration.
2024-02-29 13:43:25 +01:00
Frantisek Sumsal
6e97142b84
test: shell & cleanup cleanup
2024-02-29 13:18:07 +01:00
Frantisek Sumsal
78816ce72e
Merge pull request #31444 from bluca/semaphore
...
semaphore: set upstream build profile and set default branch to debian/master
2024-02-28 15:03:11 +01:00
Luca Boccassi
0cad991c4c
Merge pull request #31293 from ragazenta/netdev_rps
...
udevd: Add ReceivePacketSteeringCPUMask for systemd.link
2024-02-28 13:37:28 +00:00
Susant Sahani
de736b9658
test-network: Add test for bond peer_notif_delay
2024-02-28 17:34:54 +05:30
Renjaya Raga Zenta
a6f5673c99
test-network: Add test for rps_cpu_mask option
2024-02-28 11:37:18 +07:00
Yu Watanabe
c4047829bb
test-network: fix typo
...
Follow-up for a663ddc04e .
2024-02-28 11:44:20 +09:00
Luca Boccassi
132f785429
test/README: document how to add a new empty release to the PPA to migrate the CI to a new version
2024-02-28 01:08:57 +00:00
Luca Boccassi
f6387e7e3f
test/README: update ubuntu IRC channel for CI help
2024-02-28 01:08:57 +00:00
Luca Boccassi
47c2a6e958
Merge pull request #31515 from keszybz/small-cleanups-after-review-of-stable-batch
...
Small cleanups after review of stable batch
2024-02-27 20:07:18 +00:00
Antonio Alvarez Feijoo
532de87f74
core: remove duplicate serialization of cpu_sched_reset_on_fork
...
`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.
2024-02-27 19:20:44 +00:00
Jan Engelhardt
4094130b6f
test: drop route from test-functions
...
I do not see `route` being exercised anywhere else, everything seems
to be on `ip route` already.
2024-02-27 17:51:56 +00:00
Zbigniew Jędrzejewski-Szmek
f7364e1a51
shared/pam-util: fix awkward tense in log message
2024-02-27 18:32:51 +01:00
Frantisek Sumsal
cc48d93870
test: use socat in unidirectional mode
...
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 3456c89ac2 .
2024-02-27 15:24:23 +00:00
Luca Boccassi
e5191faf44
Merge pull request #31000 from flatcar-hub/krnowak/mutable-overlays
...
systemd-sysext: Implement optional mutability for extensions
2024-02-26 16:17:11 +00:00
Lennart Poettering
72bdf0ac67
Merge pull request #31455 from keszybz/restore-docs-urls
...
Restore docs urls
2024-02-23 15:59:44 +01:00
Zbigniew Jędrzejewski-Szmek
8e3fee33af
Revert "docs: use collections to structure the data"
...
This reverts commit 5e8ff010a1 .
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.)
2024-02-23 09:48:47 +01:00
Yu Watanabe
3976c43092
network: introduce per-interface IP forwarding settings
...
This deprecates IPForward= setting, which unconditionally controled
the global setting, even though it is a setting in .network file.
Instead, this introduces new IPv4Forwarding= and IPv6Forwarding=
settings both in .network and networkd.conf.
If these settings are specified in a .network file, then the
per-interface forwarding setting will be configured.
If specified in networkd.conf, then the global IP forwarding setting will
be configured.
Closes #30648 .
2024-02-22 19:24:12 +00:00
Krzesimir Nowak
bfa2dd7558
test: Extend systemd-sysext tests to cover the mutability feature
2024-02-22 19:06:22 +01:00
Krzesimir Nowak
1212c80c71
test: Initial systemd-sysext tests
...
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.
2024-02-22 19:06:22 +01:00
hulkoba
5e8ff010a1
docs: use collections to structure the data
2024-02-22 10:11:54 +01:00
Susant Sahani
2b98febe9d
test-network: add test for macvlan BroadcastQueueMulticastLength= and BroadcastQueueThreashold=
2024-02-22 09:46:55 +09:00
Yu Watanabe
0183d48ddb
test-network: use assertIn()
2024-02-22 09:46:45 +09:00
Frantisek Sumsal
ff80bd2d6d
test: temporarily enable session lingering for the test user #2
...
Similarly to bbac11c993 we need to enable session lingering for the test
user, so the long-running test units are not killed prematurely:
[ 18.822261] testsuite-55.sh[403]: + systemctl start --machine testuser@.host --user testsuite-55-testchill.service
[ 18.852775] systemd[1]: Started run-u17.service.
[ 19.256431] (o-bridge)[526]: pam_unix(login:session): session opened for user testuser(uid=4711) by testuser(uid=0)
[ 19.288346] systemd[1]: Started session-2.scope.
[ 20.165874] systemd[392]: Created slice session.slice.
[ 20.166459] systemd[392]: Starting dbus-broker.service...
[ 20.220189] dbus-broker-launch[529]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +31: Eavesdropping is deprecated and ignored
[ 20.220189] dbus-broker-launch[529]: Policy to allow eavesdropping in /usr/share/dbus-1/session.conf +33: Eavesdropping is deprecated and ignored
[ 20.220494] systemd[392]: Started dbus-broker.service.
[ 20.224276] dbus-broker-launch[529]: Ready
[ 20.231702] systemd[392]: Created slice testsuite.slice.
[ 20.231976] systemd[392]: Created slice testsuite-55.slice.
[ 20.232259] systemd[392]: Created slice testsuite-55-workload.slice.
[ 31.065294] testsuite-55.sh[403]: + systemctl start --machine testuser@.host --user testsuite-55-testbloat.service
[ 31.065641] (sd-pam)[528]: pam_unix(login:session): session closed for user testuser
[ 31.066103] (sd-pam)[528]: pam_systemd(login:session): Failed to release session: Access denied
[ 31.066152] systemd[392]: Started testsuite-55-testchill.service.
[ 31.068062] systemd[1]: run-u17.service: Deactivated successfully.
[ 31.068217] dbus-broker[389]: A security policy denied :1.20 to send method call /org/freedesktop/login1:org.freedesktop.login1.Manager.ReleaseSession to org.freedesktop.login1.
[ 31.075901] (o-bridge)[537]: pam_unix(login:session): session opened for user testuser(uid=4711) by testuser(uid=0)
[ 31.091098] systemd[1]: Stopping session-2.scope...
[ 31.092158] systemd[1]: Started run-u21.service.
[ 31.092993] systemd[1]: session-2.scope: Deactivated successfully.
[ 31.093287] systemd[1]: Stopped session-2.scope.
[ 31.095798] systemd[1]: Stopping user@4711.service ...
[ 31.103541] systemd[392]: Activating special unit exit.target...
[ 31.108359] systemd[392]: Stopped target default.target.
[ 31.109798] systemd[392]: Stopped target timers.target.
[ 31.110790] systemd[392]: Stopping testsuite-55-testchill.service...
[ 31.112154] systemd[392]: Stopped testsuite-55-testchill.service.
[ 31.114033] systemd[392]: Removed slice testsuite-55-workload.slice.
[ 31.114971] systemd[392]: Removed slice testsuite-55.slice.
[ 31.115858] systemd[392]: Removed slice testsuite.slice.
...
[ 31.475949] testsuite-55.sh[403]: + systemctl --machine testuser@.host --user status testsuite-55-testchill.service
[ 31.490464] systemd[1]: session-3.scope: Deactivated successfully.
[ 31.565929] systemd[1]: Started run-u33.service.
[ 31.592437] (o-bridge)[583]: pam_unix(login:session): session opened for user testuser(uid=4711) by testuser(uid=0)
[ 31.610210] systemd[1]: Started session-5.scope.
[ 31.616960] testsuite-55.sh[578]: ○ testsuite-55-testchill.service - No memory pressure
[ 31.616960] testsuite-55.sh[578]: Loaded: loaded (/usr/lib/systemd/tests/testdata/units/testsuite-55-testchill.service; static)
[ 31.616960] testsuite-55.sh[578]: Active: inactive (dead)
[ 31.617438] (sd-pam)[586]: pam_unix(login:session): session closed for user testuser
Addresses https://github.com/systemd/systemd/pull/31426#issuecomment-1956436844 .
2024-02-21 18:24:25 +00:00