summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* manager: add CoredumpFilter= settingZbigniew Jędrzejewski-Szmek2020-04-091-0/+1
| | | | Fixes #6685.
* Merge pull request #15252 from ssahani/dhcpv6-mudZbigniew Jędrzejewski-Szmek2020-04-021-0/+1
|\ | | | | DHCPv6: Add support to send MUD URL
| * network: DHCPv6 Add support to send MUD URLSusant Sahani2020-04-011-0/+1
| |
* | Merge pull request #15109 from keszybz/units-make-installableZbigniew Jędrzejewski-Szmek2020-04-022-2/+4
|\ \ | | | | | | Make homed/userdbd/repart services installable (to allow uninstalling)
| * | test: print path to build directory on misconfigurationZbigniew Jędrzejewski-Szmek2020-03-311-1/+1
| | | | | | | | | | | | This way it's easier to see when a wrong $BUILD_DIR was passed.
| * | units: make systemd-homed.service installableZbigniew Jędrzejewski-Szmek2020-03-311-1/+3
| | | | | | | | | | | | Fixes #15083. Users might want to disable homed if not used to save resources.
* | | network: can: add support for CAN-FD related propertiesRichard Petri2020-04-011-0/+4
| | |
* | | network: DHCPv4 - introduce The Manufacturer Usage Description (MUD)Susant Sahani2020-03-301-0/+1
|/ /
* | Merge pull request #15197 from ssahani/smtp-dhcpLennart Poettering2020-03-301-0/+1
|\ \ | | | | | | DHCP4: Add support to emit and receive SMTP servers.
| * | network: DHCP - add support to emit and receive SMTP server informationSusant Sahani2020-03-291-0/+1
| | |
* | | Merge pull request #14338 from keszybz/functional-test-reworkFrantisek Sumsal2020-03-30254-2456/+1653
|\ \ \ | |/ / |/| | Functional test rework
| * | test: print test of name in outputZbigniew Jędrzejewski-Szmek2020-03-282-10/+12
| | |
| * | test: run unittests with newlines in /proc/cmdlineZbigniew Jędrzejewski-Szmek2020-03-281-0/+8
| | | | | | | | | | | | This should help catch this class of errors.
| * | test: stop caching loopdevZbigniew Jędrzejewski-Szmek2020-03-283-27/+31
| | | | | | | | | | | | | | | | | | It is more trouble than it is worth. The setup is of a loopback device is very quick, so it's better to always create it when needed and immediately drop afterwards.
| * | test: perform partial cleanup after each test is runZbigniew Jędrzejewski-Szmek2020-03-282-2/+14
| | | | | | | | | | | | | | | | | | This causes the unprivileged-nspawn-root directory to be removed after running one test. The advantage is that we reduce the maximum disk-space use quite a bit (47*400 MB → about 18GB).
| * | test: simplify the MakefilesZbigniew Jędrzejewski-Szmek2020-03-283-15/+3
| | | | | | | | | | | | | | | | | | has-overflow was a temporary hack that was removed in 844da987ef8b8c98f837d3328eeb3ed481f43835 (Oct. 2016). All the makefiles can be the same, and all the targets can be handled identically.
| * | test: run tests directly from the loopback deviceZbigniew Jędrzejewski-Szmek2020-03-283-38/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, we'd copy the test tree into nspawn-root, and run the tests from there. This is OK, and doesn't actually take much extra time. But it uses quite a lot of extra disk space. So let's make things a bit more efficient by running directly from the image file. We still run the unprivileged nspawn tests from a copy. Once the kernel implements fs shift, we can do away with that too.
| * | test: wipe journal files after testZbigniew Jędrzejewski-Szmek2020-03-283-0/+5
| | | | | | | | | | | | Otherwise they accumulate and create noise.
| * | test: echo a message when the tests failsZbigniew Jędrzejewski-Szmek2020-03-281-3/+3
| | | | | | | | | | | | | | | Sometimes it is not clear from the preceding output that there was a failure.
| * | test/TEST-01: allow running w/o -Dinstall-tests=trueZbigniew Jędrzejewski-Szmek2020-03-282-1/+9
| | | | | | | | | | | | | | | This is useful for sanitizer builds under CI, see https://github.com/systemd/systemd-centos-ci/pull/202#issuecomment-566476592.
| * | test: rework how images are createdZbigniew Jędrzejewski-Szmek2020-03-2810-37/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before, we'd create a separate image for each test, in /var/tmp/systemd-test.XXXXX/rootdisk.img. Most of the images where very similar, except that each one had some unit files installed specifically for the test. The installation of those custom unit files was removed in previous commits (all the unit files are always installed). The new approach is to only create as few distinct images as possible. We have: default.img: the "normal" image suitable for almost all the tests basic.img: the same as default image but doesn't mask any services cryptsetup.img: p2 is used for encrypted /var badid.img: /etc/machine-id is overwritten with stuff selinux.img: with selinux added for fun and fun and a few others: ls -l build/test/*img lrwxrwxrwx 1 root root 38 Mar 21 21:23 build/test/badid.img -> /var/tmp/systemd-test.PJFFeo/badid.img lrwxrwxrwx 1 root root 38 Mar 21 21:17 build/test/basic.img -> /var/tmp/systemd-test.na0xOI/basic.img lrwxrwxrwx 1 root root 43 Mar 21 21:18 build/test/cryptsetup.img -> /var/tmp/systemd-test.Tzjv06/cryptsetup.img lrwxrwxrwx 1 root root 40 Mar 21 21:19 build/test/default.img -> /var/tmp/systemd-test.EscAsS/default.img lrwxrwxrwx 1 root root 39 Mar 21 21:22 build/test/nspawn.img -> /var/tmp/systemd-test.HSebKo/nspawn.img lrwxrwxrwx 1 root root 40 Mar 21 21:20 build/test/selinux.img -> /var/tmp/systemd-test.daBjbx/selinux.img lrwxrwxrwx 1 root root 39 Mar 21 21:21 build/test/test08.img -> /var/tmp/systemd-test.OgnN8Z/test08.img I considered trying to use the same image everywhere. It would probably be possible, but it would be very brittle. By using separate images where it is necessary we keep various orthogonal modifications independent. The way that images are cached is complicated by the fact that we still want to keep them in /var/tmp. Thus, an image is created on first use and linked to from build/test/ so it can be found by other tests. Tests cannot be run in parallel. I think that is an acceptable limitation. Creation of the images was probably taking more resources then the actual tests, so we should be better off anyway.
| * | test/TEST-28: avoid race in handling of /testokZbigniew Jędrzejewski-Szmek2020-03-284-1/+7
| | |
| * | test: make sure to reset state before starting integration testsZbigniew Jędrzejewski-Szmek2020-03-2845-0/+49
| | |
| * | test: mount root rw and drop /etc/fstabZbigniew Jędrzejewski-Szmek2020-03-282-21/+4
| | | | | | | | | | | | | | | | | | We had an fstab for the sole purpose of remounting "/" rw. Mounting root ro is a pointless excercise in obsolete approaches. More importantly, the nspawn image is now the same as the qemu one.
| * | test: drop cargo-cult lineZbigniew Jędrzejewski-Szmek2020-03-286-11/+0
| | | | | | | | | | | | p2 is only used in the cryptsetup test...
| * | test: improve reporting a bitZbigniew Jędrzejewski-Szmek2020-03-281-1/+4
| | |
| * | test: de-duplicate test_setup() functionsZbigniew Jędrzejewski-Szmek2020-03-2837-486/+19
| | | | | | | | | | | | Now we will run setup_nspawn_root() in some case where do don't need to.
| * | test: move TEST-47-* to static filesZbigniew Jędrzejewski-Szmek2020-03-285-44/+20
| | |
| * | test: move TEST-46-HOMED to static filesZbigniew Jędrzejewski-Szmek2020-03-283-17/+10
| | |
| * | test: convert TEST-45 to a normal meson testZbigniew Jędrzejewski-Szmek2020-03-284-158/+3
| | | | | | | | | | | | | | | 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.
| * | test: move TEST-44-* to static filesZbigniew Jędrzejewski-Szmek2020-03-283-20/+12
| | |
| * | test: move TEST-43-* setup to static filesZbigniew Jędrzejewski-Szmek2020-03-284-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.
| * | test: move TEST-42-EXECSTOPPOST setup to static filesZbigniew Jędrzejewski-Szmek2020-03-284-30/+22
| | |
| * | test/TEST-41: use a file in /tmp and reset the contentsZbigniew Jędrzejewski-Szmek2020-03-281-2/+2
| | | | | | | | | | | | If the test was run a second time from the same root, it would fail.
| * | test: move TEST-41-ONESHOT-RESTART setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-14/+7
| | |
| * | test: move TEST-40-EXEC-COMMAND-EX setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-14/+7
| | |
| * | test: move TEST-39-EXECRELOAD setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-15/+7
| | |
| * | test: move TEST-37-RUNTIMEDIRECTORYPRESERVE setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-15/+8
| | |
| * | test/TEST-36: move the config files to /runZbigniew Jędrzejewski-Szmek2020-03-281-3/+3
| | | | | | | | | | | | | | | This way we always start with a clean slate when running the test repeatedly.
| * | test: move TEST-36-NUMAPOLICY setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-16/+7
| | | | | | | | | | | | No need to call setup_nspawn_root() if we plan to only run under qemu.
| * | test: convert TEST-35-NETWORK-GENERATOR into a unit testZbigniew Jędrzejewski-Szmek2020-03-2814-37/+38
| | |
| * | test: move TEST-34-DYNAMICUSERMIGRATE setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-14/+7
| | |
| * | test: move TEST-33-CLEAN-UNIT setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-15/+8
| | |
| * | test: move TEST-32-OOMPOLICY setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-20/+15
| | |
| * | test: move TEST-31-DEVICE-ENUMERATION setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-14/+7
| | |
| * | test: move TEST-30-ONCLOCKCHANGE setup to static filesZbigniew Jędrzejewski-Szmek2020-03-286-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.
| * | test: move TEST-29-UDEV-ID_RENAMING setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-14/+7
| | |
| * | test: move TEST-28-PERCENTJ-WANTEDBY setup to static filesZbigniew Jędrzejewski-Szmek2020-03-285-35/+27
| | |
| * | test: move TEST-27-STDOUTFILE setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-19/+11
| | |
| * | test: move TEST-26-SETENV setup to static filesZbigniew Jędrzejewski-Szmek2020-03-283-14/+8
| | | | | | | | | | | | Also run mask_supporting_services() here.