Benjamin Robin
d38b3b74db
test: Stricter test case for #15654 (Add more checks)
...
Check:
- There is only 3 messages logged with type stdout
- Check all messages logged does not have new line: LINE_BREAK=eof
- Check that the 3 messages are logged from a different PID
- Check the 3 MESSAGE= content
2020-05-13 21:32:45 +02:00
Benjamin Robin
c11d8fd1da
test: Add a test case for #15654
2020-05-13 21:32:42 +02:00
Michal Sekletár
d446ae89c0
test: add test for cgroup v2 freezer support
2020-04-30 19:02:55 +02:00
Kumar Kartikeya Dwivedi
5c568be167
test: add a test case for #15528
2020-04-23 09:24:17 +02:00
Zbigniew Jędrzejewski-Szmek
2807b68019
Merge pull request #15520 from mrc0mmand/various-codebase-improvements
...
tree-wide: various codebase improvements
2020-04-22 08:41:38 +02:00
Frantisek Sumsal
86b52a3958
tree-wide: fix spelling errors
...
Based on a report from Fossies.org using Codespell.
Followup to #15436
2020-04-21 23:21:08 +02:00
Frantisek Sumsal
ff3518f1f4
test: drop Disk (Size|Free|Floor|Ceiling) fields prior comparing
...
The disk attributes can take some time to update on certain filesystems,
so let's strip them from inputs of both `homectl` and `userdbctl` before
comparing them to avoid unexpected fails.
Also, switch from `cmp` to `diff` to make a potential test fail a bit more
debuggable.
Fixes : #14755
2020-04-21 22:09:35 +02:00
Zbigniew Jędrzejewski-Szmek
8cf85bb575
Merge pull request #15281 from keszybz/functional-test-rework
...
Post-merge tweaks to the functional tests
2020-04-12 19:31:53 +02:00
Frantisek Sumsal
e00e2e0b50
test: wait a bit after stopping the test service
...
Give systemd a chance to process the stop event before checking if the
PID has indeed leaked. This should fix the intermittent test fails in CI
even with a fixed systemd version, like this one:
```
Apr 08 10:22:09 testsuite-47.sh[345]: ++ cat /leakedtestpid
Apr 08 10:22:09 testsuite-47.sh[334]: + leaked_pid=342
Apr 08 10:22:09 testsuite-47.sh[334]: + systemctl stop testsuite-47-repro
Apr 08 10:22:10 testsuite-47.sh[334]: + ps -p 342
Apr 08 10:22:10 testsuite-47.sh[348]: PID TTY TIME CMD
Apr 08 10:22:10 testsuite-47.sh[348]: 342 ? 00:00:00 sleep
Apr 08 10:22:10 testsuite-47.sh[334]: + exit 42
```
Followup to 197298ff9f
2020-04-08 12:15:52 +02:00
Lennart Poettering
4c39820562
Merge pull request #15298 from keszybz/show-property-value
...
systemctl --property-value as shortcut for --property --value
2020-04-04 11:22:59 +02:00
Zbigniew Jędrzejewski-Szmek
5522e628f5
test: use show -P in places
...
Not all places are converted on purpose, to also test the other option
name.
2020-04-03 18:24:21 +02:00
Zbigniew Jędrzejewski-Szmek
5ef9eda17f
units: make systemd-homed.service installable
...
Fixes #15083 . Users might want to disable homed if not used to save resources.
2020-03-31 14:55:14 +02:00
Zbigniew Jędrzejewski-Szmek
e00fca8c2e
TEST-13-*: remove containers created in test before running the test
...
The test would fail when run again from the same image. So let's
rename the stuff we create to be more unique, and remove it before
running the test. (Removing it after would be more elegant, but it's
hard to make sure that everything is removed when things fail halfway.
Cleanup *before* tests is much more rebust.)
2020-03-31 14:37:20 +02:00
Zbigniew Jędrzejewski-Szmek
de0162a95a
test/TEST-28: avoid race in handling of /testok
2020-03-28 11:51:29 +01:00
Zbigniew Jędrzejewski-Szmek
4962ed9f33
test: make sure to reset state before starting integration tests
2020-03-28 11:51:27 +01:00
Zbigniew Jędrzejewski-Szmek
bdfa9657d0
test: move TEST-47-* to static files
2020-03-28 11:50:53 +01:00
Zbigniew Jędrzejewski-Szmek
2c75449a38
test: move TEST-46-HOMED to static files
2020-03-28 11:50:53 +01:00
Zbigniew Jędrzejewski-Szmek
07d16f438a
test: move TEST-44-* to static files
2020-03-28 11:46:48 +01:00
Zbigniew Jędrzejewski-Szmek
d0ac89a1e8
test: move TEST-43-* setup to static files
...
Setup of lingering is dropped. I don't think it's necessary for anything,
because the unit is still pulled in from the testsuite service.
2020-03-28 11:46:48 +01:00
Zbigniew Jędrzejewski-Szmek
bdfd515ad1
test: move TEST-42-EXECSTOPPOST setup to static files
2020-03-28 11:46:48 +01:00
Zbigniew Jędrzejewski-Szmek
0ac5dbf3ae
test/TEST-41: use a file in /tmp and reset the contents
...
If the test was run a second time from the same root, it would fail.
2020-03-28 11:46:48 +01:00
Zbigniew Jędrzejewski-Szmek
2b2eefee06
test: move TEST-41-ONESHOT-RESTART setup to static files
2020-03-28 11:46:48 +01:00
Zbigniew Jędrzejewski-Szmek
d48b27bffd
test: move TEST-40-EXEC-COMMAND-EX setup to static files
2020-03-28 11:46:48 +01:00
Zbigniew Jędrzejewski-Szmek
7124ae207a
test: move TEST-39-EXECRELOAD setup to static files
2020-03-28 11:46:48 +01:00
Zbigniew Jędrzejewski-Szmek
4db7d044b8
test: move TEST-37-RUNTIMEDIRECTORYPRESERVE setup to static files
2020-03-28 11:46:48 +01:00
Zbigniew Jędrzejewski-Szmek
534a42705b
test/TEST-36: move the config files to /run
...
This way we always start with a clean slate when running the test
repeatedly.
2020-03-28 11:46:48 +01:00
Zbigniew Jędrzejewski-Szmek
097d8c6eb7
test: move TEST-36-NUMAPOLICY setup to static files
...
No need to call setup_nspawn_root() if we plan to only run under qemu.
2020-03-28 11:46:48 +01:00
Zbigniew Jędrzejewski-Szmek
01efa07960
test: move TEST-34-DYNAMICUSERMIGRATE setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
ff978cd24a
test: move TEST-33-CLEAN-UNIT setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
c8937bed08
test: move TEST-32-OOMPOLICY setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
048d52d51e
test: move TEST-31-DEVICE-ENUMERATION setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
7eeeab205d
test: move TEST-30-ONCLOCKCHANGE setup to static files
...
The two timezone files are now installed in the global setup. I am not too
happy about this, but it still seems better than to create a completely
separate image just for this.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
e578ea4df4
test: move TEST-29-UDEV-ID_RENAMING setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
94370e627f
test: move TEST-28-PERCENTJ-WANTEDBY setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
468874997a
test: move TEST-27-STDOUTFILE setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
dfa633ca6a
test: move TEST-26-SETENV setup to static files
...
Also run mask_supporting_services() here.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
68e2dc0f91
test/TEST-25: remove all images at the end of the test
...
scratch5 would be left behind, and trying to run the test again on the same
image would fail.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
6e796683df
test: move TEST-25-IMPORT setup to static files
...
Also run mask_supporting_services() here.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
f4c40fd754
test: move TEST-24-UNIT-TESTS setup to static files
...
I picked the list of zone files to install by grepping through the code. This
is is a bit brittle, but installing all of them takes a while, and more
importantly, writes a lot of lines to the log.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
b49325d028
test: move TEST-23-TYPE-EXEC setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
c0b97b0fc8
test: move TEST-22-TMPFILES setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
c1d6c135bc
test: move TEST-20-MAINPIDGAMES setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
e67a2644a8
test: move TEST-19-DELEGATE setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
dce2b8ce48
test: move TEST-18-FAILUREACTION setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
9911131a60
test: move TEST-17-WANTS setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
2b5981b40a
test: move TEST-16-EXTEND-TIMEOUT setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
1aa0f38491
test/TEST-15: call daemon-reload in two more places
...
Sometimes the test would fail there, nondeterministically. I'm not sure why,
but relying on PID1 not caching the file is clearly very brittle. Let's instead
call daemon-reload.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
4e2ac45a83
test/TEST-15: remove all created unit files
...
We would miss anything created under a template instance.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
2c7519c036
test: move TEST-15-DROPIN setup to static files
...
Unfortunately the services needed to be renamed because of conflicts with other
services that exist in the shared dir.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
afd9c55dcc
test: move most of TEST-14-MACHINE-ID setup to static files
2020-03-28 11:46:47 +01:00