summaryrefslogtreecommitdiffstats
path: root/LICENSE.GPL2 (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-03-28test: move TEST-47-* to static filesZbigniew Jędrzejewski-Szmek5-44/+20
2020-03-28test: move TEST-46-HOMED to static filesZbigniew Jędrzejewski-Szmek3-17/+10
2020-03-28test: convert TEST-45 to a normal meson testZbigniew Jędrzejewski-Szmek7-159/+123
On my laptop, it now takes 0.23 s. We don't need the overhead of creating an image and spawning a machine to mangle a file in /tmp.
2020-03-28test: move TEST-44-* to static filesZbigniew Jędrzejewski-Szmek3-20/+12
2020-03-28test: move TEST-43-* setup to static filesZbigniew Jędrzejewski-Szmek4-42/+23
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-28test: move TEST-42-EXECSTOPPOST setup to static filesZbigniew Jędrzejewski-Szmek4-30/+22
2020-03-28test/TEST-41: use a file in /tmp and reset the contentsZbigniew Jędrzejewski-Szmek1-2/+2
If the test was run a second time from the same root, it would fail.
2020-03-28test: move TEST-41-ONESHOT-RESTART setup to static filesZbigniew Jędrzejewski-Szmek3-14/+7
2020-03-28test: move TEST-40-EXEC-COMMAND-EX setup to static filesZbigniew Jędrzejewski-Szmek3-14/+7
2020-03-28test: move TEST-39-EXECRELOAD setup to static filesZbigniew Jędrzejewski-Szmek3-15/+7
2020-03-28test: move TEST-37-RUNTIMEDIRECTORYPRESERVE setup to static filesZbigniew Jędrzejewski-Szmek3-15/+8
2020-03-28test/TEST-36: move the config files to /runZbigniew Jędrzejewski-Szmek1-3/+3
This way we always start with a clean slate when running the test repeatedly.
2020-03-28test: move TEST-36-NUMAPOLICY setup to static filesZbigniew Jędrzejewski-Szmek3-16/+7
No need to call setup_nspawn_root() if we plan to only run under qemu.
2020-03-28test: convert TEST-35-NETWORK-GENERATOR into a unit testZbigniew Jędrzejewski-Szmek15-38/+46
2020-03-28test: move TEST-34-DYNAMICUSERMIGRATE setup to static filesZbigniew Jędrzejewski-Szmek3-14/+7
2020-03-28test: move TEST-33-CLEAN-UNIT setup to static filesZbigniew Jędrzejewski-Szmek3-15/+8
2020-03-28test: move TEST-32-OOMPOLICY setup to static filesZbigniew Jędrzejewski-Szmek3-20/+15
2020-03-28test: move TEST-31-DEVICE-ENUMERATION setup to static filesZbigniew Jędrzejewski-Szmek3-14/+7
2020-03-28test: move TEST-30-ONCLOCKCHANGE setup to static filesZbigniew Jędrzejewski-Szmek6-24/+12
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-28test: move TEST-29-UDEV-ID_RENAMING setup to static filesZbigniew Jędrzejewski-Szmek3-14/+7
2020-03-28test: move TEST-28-PERCENTJ-WANTEDBY setup to static filesZbigniew Jędrzejewski-Szmek5-35/+27
2020-03-28test: move TEST-27-STDOUTFILE setup to static filesZbigniew Jędrzejewski-Szmek3-19/+11
2020-03-28test: move TEST-26-SETENV setup to static filesZbigniew Jędrzejewski-Szmek3-14/+8
Also run mask_supporting_services() here.
2020-03-28test/TEST-25: remove all images at the end of the testZbigniew Jędrzejewski-Szmek1-0/+5
scratch5 would be left behind, and trying to run the test again on the same image would fail.
2020-03-28test: move TEST-25-IMPORT setup to static filesZbigniew Jędrzejewski-Szmek4-15/+9
Also run mask_supporting_services() here.
2020-03-28test: move TEST-24-UNIT-TESTS setup to static filesZbigniew Jędrzejewski-Szmek4-40/+43
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-28test-fileio: fix bogus error when /proc/cmdline contains newlinesZbigniew Jędrzejewski-Szmek1-8/+8
The kernel does not sanitize /proc/cmdline. E.g. when running under qemu, it is easy to pass a string with newline by mistake. We use read_one_line_file(), so we would read only the first list of the file, and write_string_file(WRITE_STRING_FILE_VERIFY_ON_FAILURE) would fail because the target file is obviously different. Change to a kernel-generated file to avoid the issue. v2: - use /proc/version instead of /proc/uptime for attempted writes, so the test test passes even if test_write_string_file_verify() takes more than 10 ms ;]
2020-03-28test: move TEST-23-TYPE-EXEC setup to static filesZbigniew Jędrzejewski-Szmek3-14/+7
2020-03-28test: move TEST-22-TMPFILES setup to static filesZbigniew Jędrzejewski-Szmek13-20/+9
2020-03-28test: move TEST-20-MAINPIDGAMES setup to static filesZbigniew Jędrzejewski-Szmek3-41/+34
2020-03-28test: move TEST-19-DELEGATE setup to static filesZbigniew Jędrzejewski-Szmek3-14/+7
2020-03-28test: move TEST-18-FAILUREACTION setup to static filesZbigniew Jędrzejewski-Szmek3-14/+7
2020-03-28test: move TEST-17-WANTS setup to static filesZbigniew Jędrzejewski-Szmek3-15/+8
2020-03-28test/TEST-16: simplify how variables are setZbigniew Jędrzejewski-Szmek8-20/+19
The amount of lines doesn't change much, but I think it's much more straightforward this way.
2020-03-28test: move TEST-16-EXTEND-TIMEOUT setup to static filesZbigniew Jędrzejewski-Szmek13-50/+29
2020-03-28test/TEST-15: call daemon-reload in two more placesZbigniew Jędrzejewski-Szmek1-0/+2
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-28test/TEST-15: remove all created unit filesZbigniew Jędrzejewski-Szmek1-0/+6
We would miss anything created under a template instance.
2020-03-28test: move TEST-15-DROPIN setup to static filesZbigniew Jędrzejewski-Szmek4-145/+140
Unfortunately the services needed to be renamed because of conflicts with other services that exist in the shared dir.
2020-03-28test: move most of TEST-14-MACHINE-ID setup to static filesZbigniew Jędrzejewski-Szmek3-57/+46
2020-03-28test: move most of TEST-13-NSPAWN-SMOKE setup to static filesZbigniew Jędrzejewski-Szmek6-172/+167
2020-03-28test: move TEST-12-ISSUE-3171 setup to static filesZbigniew Jędrzejewski-Szmek4-68/+58
2020-03-28test: move TEST-11-ISSUE-3166 setup to static filesZbigniew Jędrzejewski-Szmek6-43/+30
2020-03-28test: move TEST-10-ISSUE-2467 setup to static filesZbigniew Jędrzejewski-Szmek6-28/+18
2020-03-28test: use shell arrays and remove duplicatesZbigniew Jędrzejewski-Szmek1-4/+63
The tool lists are obviously not empty, so let's remove the test if they are.
2020-03-28test: move TEST-09-ISSUE-2691 setup to static filesZbigniew Jędrzejewski-Szmek2-16/+10
2020-03-28test: move TEST-08-ISSUE-2730 setup to static files and meson scriptsZbigniew Jędrzejewski-Szmek8-50/+48
Unfortunately meson does not install symlinks, but copies the symlink destination instead. So symlinks need to be created by a script. This commit adds both symlinks in test/testsuite-08.units/ and meson scriptlet calls. Strictly speaking, the first is not necessary, since nothing reads stuff directly from the source tree.
2020-03-28test: move TEST-07-ISSUE-1981 setup to static filesZbigniew Jędrzejewski-Szmek3-15/+7
2020-03-28test/TEST-06: make autorelabel.service a static file tooZbigniew Jędrzejewski-Szmek2-20/+20
2020-03-28test/TEST-06: skip test if no selinuxZbigniew Jędrzejewski-Szmek1-1/+6
I put SELINUX=disabled on my laptop, and the test fails with ENOENT when trying to write to /sys/fs/selinux/enforce. It's a bit of a special case, but let's avoid the failure.
2020-03-28test: move most of TEST-06-* setup to static filesZbigniew Jędrzejewski-Szmek6-45/+32