summaryrefslogtreecommitdiff
path: root/test/meson.build
Commit message (Collapse)AuthorAgeFilesLines
* test: add tests for DynamicUser= with static User= whose UID and GID are ↵Yu Watanabe2018-07-261-0/+2
| | | | different
* Add support for opening files for appendingZsolt Dollenstein2018-07-201-0/+2
| | | | Addresses part of #8983
* Drop my copyright headersZbigniew Jędrzejewski-Szmek2018-06-141-2/+0
| | | | | | | perl -i -0pe 's/\s*Copyright © .... Zbigniew Jędrzejewski.*?\n/\n/gms' man/*xml git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/(#\n)?# +Copyright © [0-9, -]+ Zbigniew Jędrzejewski.*?\n//gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s*\/\*\*\*\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*?\s*\*\*\*\/\s*/\n\n/gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*//gms'
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-06-141-1/+1
| | | | | | Let's unify an beautify our remaining copyright statements, with a unicode ©. This means our copyright statements are now always formatted the same way. Yay.
* test: add test for trailing dot in WorkingDirectory= and RuntimeDirectory=Yu Watanabe2018-06-031-0/+1
|
* test: add tests for merging RestrictNamespaces=Yu Watanabe2018-05-051-0/+3
|
* test: add tests for PrivateDevices= with '+' prefixYu Watanabe2018-05-011-0/+1
|
* Merge pull request #8575 from keszybz/non-absolute-pathsLennart Poettering2018-04-171-0/+1
|\ | | | | Do not require absolute paths in ExecStart and friends
| * systemd: do not require absolute paths in ExecStartZbigniew Jędrzejewski-Szmek2018-04-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Absolute paths make everything simple and quick, but sometimes this requirement can be annoying. A good example is calling 'test', which will be located in /usr/bin/ or /bin depending on the distro. The need the provide the full path makes it harder a portable unit file in such cases. This patch uses a fixed search path (DEFAULT_PATH which was already used as the default value of $PATH), and if a non-absolute file name is found, it is immediately resolved to a full path using this search path when the unit is loaded. After that, everything behaves as if an absolute path was specified. In particular, the executable must exist when the unit is loaded.
* | test: add test for prefix unit loadingLennart Poettering2018-04-131-4/+9
| |
* | tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
|/ | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* tests: skip udev-test when perl is not installedZbigniew Jędrzejewski-Szmek2018-03-221-3/+7
|
* test-umount: add a simple test for swap_list_get()Zbigniew Jędrzejewski-Szmek2018-03-161-0/+1
| | | | | | | | | The implementation seems buggy: /* test_swap_list("/home/zbyszek/src/systemd/test/test-umount/example.swaps") */ path=0 o= f=0x0 try-ro=no dev=0:0 path=/some/swapfile2 o= f=0x0 try-ro=no dev=0:0 path=/some/swapfile o= f=0x0 try-ro=no dev=0:0 path=/dev/dm-2 o= f=0x0 try-ro=no dev=0:0
* tests: add a simple test for the mountinfo parsing logicZbigniew Jędrzejewski-Szmek2018-03-161-0/+3
|
* test-execute: rename tests for AmbientCapabilities=Yu Watanabe2018-03-041-6/+6
| | | | | | | | The unit files for test-execute are named like `exec-(setting-name-in-lower-character)-(optional-text).service`. However, test units for AmbientCapabilities= are not following this. So, let's rename them for the consistency. This does not change anything in the functionality of the test.
* test-execute: add tests with user/group daemonYu Watanabe2018-03-021-0/+6
| | | | | | The nobody user/group may not synthesized by systemd. To run tests the functionalities in such situation, this adds tests by user/group by daemon, as it is expected to exists all environments.
* test-execute: add a test for the case that NOBODY_GROUP_NAME is nogroupYu Watanabe2018-03-011-0/+1
|
* test: add tests for TemporaryFileSystem=Yu Watanabe2018-02-211-0/+4
|
* Hook up oss-fuzz test cases as testsZbigniew Jędrzejewski-Szmek2018-01-271-0/+2
| | | | | | | | | | | | | | | | | | | | | | This is a bit painful because a separate build of systemd is necessary. The tests are guarded by tests!=false and slow-tests==true. Running them is not slow, but compilation certainly is. If this proves unwieldy, we can add a separate option controlling those builds later. The build for each sanitizer has its own directory, and we build all fuzzer tests there, and then pull them out one-by-one by linking into the target position as necessary. It would be nicer to just build the desired fuzzer, but we need to build the whole nested build as one unit. [I also tried making systemd and nested meson subproject. This would work nicely, but meson does not allow that because the nested target names are the same as the outer project names. If that is ever fixed, that would be the way to go.] v2: - make sure things still work if memory sanitizer is not available v3: - switch to syntax which works with meson 0.42.1 found in Ubuntu
* test-execute: use the "nogroup" group if it exists for testingLennart Poettering2017-12-061-0/+1
| | | | | | We currently look for "nobody" and "nfsnobody" when testing groups, both of which do not exist on Ubuntu, our main testing environment. Let's extend the tests slightly to also use "nogroup" if it exists.
* test-execute: add tests for CPUAffinity=Yu Watanabe2017-12-061-0/+3
|
* test-execute: add test for that DynamicUser= migrate StateDirectory=Yu Watanabe2017-12-061-0/+2
| | | | Test for 949befd3f09e8c06a908ec99efd241666c21d944.
* test-execute: cleanupYu Watanabe2017-12-061-11/+11
| | | | | | This makes rename the test units by a consistent naming scheme, add several logs, and sort internal functions. No functional change.
* test: increase the timeout for hwdb-testZbigniew Jędrzejewski-Szmek2017-11-261-1/+2
| | | | | This test does a lot of mmap/madvise/unmmap, which is slow under address sanitizer. Just increase the timeout to avoid spurious failure.
* test-execute: test more % specifiers (#7450)Yu Watanabe2017-11-241-0/+1
|
* meson: re-attach rule-syntax-check.py testZbigniew Jędrzejewski-Szmek2017-11-221-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 39/248 rule-syntax-check OK 0.07 s --- command --- /home/zbyszek/src/systemd-work/test/rule-syntax-check.py \ /home/zbyszek/src/systemd-work/build/../rules/60-block.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-cdrom_id.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-drm.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-evdev.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-input-id.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-persistent-alsa.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-persistent-input.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-persistent-storage.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-persistent-storage-tape.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-persistent-v4l.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-sensor.rules \ /home/zbyszek/src/systemd-work/build/../rules/60-serial.rules \ /home/zbyszek/src/systemd-work/build/../rules/70-joystick.rules \ /home/zbyszek/src/systemd-work/build/../rules/70-mouse.rules \ /home/zbyszek/src/systemd-work/build/../rules/70-touchpad.rules \ /home/zbyszek/src/systemd-work/build/../rules/75-net-description.rules \ /home/zbyszek/src/systemd-work/build/../rules/75-probe_mtd.rules \ /home/zbyszek/src/systemd-work/build/../rules/78-sound-card.rules \ /home/zbyszek/src/systemd-work/build/../rules/80-drivers.rules \ /home/zbyszek/src/systemd-work/build/../rules/80-net-setup-link.rules \ /home/zbyszek/src/systemd-work/build/rules/50-udev-default.rules \ /home/zbyszek/src/systemd-work/build/rules/64-btrfs.rules \ /home/zbyszek/src/systemd-work/build/rules/99-systemd.rules --- stdout --- ... ------- It got dropped by mistake in 72cdb3e783174dcf9223a49f03e3b0e2ca95ddb8.
* Merge pull request #7198 from poettering/stdin-stdoutLennart Poettering2017-11-191-0/+2
|\ | | | | Add StandardInput=data, StandardInput=file:... and more
| * test: add basic test for StandardInput=file:Lennart Poettering2017-11-171-0/+1
| |
| * test: add tests for StandardInputText= and StandardInputData=Lennart Poettering2017-11-171-0/+1
| |
* | Add license headers and SPDX identifiers to meson.build filesZbigniew Jędrzejewski-Szmek2017-11-191-0/+17
|/ | | | | | | So far I avoided adding license headers to meson files, but they are pretty big and important and should carry license headers like everything else. I added my own copyright, even though other people modified those files too. But this is mostly symbolic, so I hope that's OK.
* test-execute: update test for SystemCallErrorNumber=Yu Watanabe2017-11-111-1/+2
|
* test: add tests for syscall:errno style in SystemCallFilter=Yu Watanabe2017-11-111-0/+2
|
* test: add test for ReadOnlyPaths= with RuntimeDirectory=Yu Watanabe2017-11-081-0/+1
|
* test: add simple test for validating some of the unit specifiers we supportLennart Poettering2017-10-261-87/+88
| | | | | (Also, sort list of test unit files in meson.build alphabetically, to make future additions more systematic)
* test: add test for BindPaths= and BindReadOnlyPaths=Yu Watanabe2017-10-121-0/+1
| | | | Follow-up for a8cabc612b16834260831a8163ae4b479b5c33a5.
* test: skip hwdb and sysv-generator if the features are disabled (#7026)Mike Gilbert2017-10-081-6/+10
|
* build-sys: s/ENABLE_RESOLVED/ENABLE_RESOLVE/Zbigniew Jędrzejewski-Szmek2017-10-041-1/+1
| | | | | | The configuration option was called -Dresolve, but the internal define was …RESOLVED. This options governs more than just resolved itself, so let's settle on the version without "d".
* build-sys: use #if Y instead of #ifdef Y everywhereZbigniew Jędrzejewski-Szmek2017-10-041-1/+1
| | | | | | | | | | | | | | | The advantage is that is the name is mispellt, cpp will warn us. $ git grep -Ee "conf.set\('(HAVE|ENABLE)_" -l|xargs sed -r -i "s/conf.set\('(HAVE|ENABLE)_/conf.set10('\1_/" $ git grep -Ee '#ifn?def (HAVE|ENABLE)' -l|xargs sed -r -i 's/#ifdef (HAVE|ENABLE)/#if \1/; s/#ifndef (HAVE|ENABLE)/#if ! \1/;' $ git grep -Ee 'if.*defined\(HAVE' -l|xargs sed -i -r 's/defined\((HAVE_[A-Z0-9_]*)\)/\1/g' $ git grep -Ee 'if.*defined\(ENABLE' -l|xargs sed -i -r 's/defined\((ENABLE_[A-Z0-9_]*)\)/\1/g' + manual changes to meson.build squash! build-sys: use #if Y instead of #ifdef Y everywhere v2: - fix incorrect setting of HAVE_LIBIDN2
* test: add test for DynamicUser= + StateDirectory=Lennart Poettering2017-10-021-0/+1
| | | | | | | | | | | Also, tests for DynamicUser= should really run for system mode, as we allocate from a system resource. (This also increases the test timeout to 2min. If one of our tests really hangs then waiting for 2min longer doesn't hurt either. The old 2s is really short, given that we run in potentially slow VM environments for this test. This becomes noticable when the slow "find" command this adds is triggered)
* meson: hook up hwdb-test.sh againZbigniew Jędrzejewski-Szmek2017-09-261-0/+4
| | | | | The motivation for the ./systemd-hwdb is the same as in the grandparent for systemd-sysv-generator.
* meson: hook up udev-test.pl againZbigniew Jędrzejewski-Szmek2017-09-261-0/+14
| | | | | Seems it was dropped along with the automake rules in 72cdb3e783174dcf9223a49f03e3b0e2ca95ddb8.
* test: add test case for UnsetEnvironment=Lennart Poettering2017-09-141-0/+1
|
* Drop bus-policy bitsZbigniew Jędrzejewski-Szmek2017-07-231-7/+0
|
* meson: hook up sysv-generator-testZbigniew Jędrzejewski-Szmek2017-07-131-0/+6
|
* test: ensure 'InaccessiblePaths=/proc' option works (#6017)Timothée Ravier2017-05-251-0/+1
| | | Test case for PR #5985.
* meson: use booleans for conf.set and drop unecessary conditionalsZbigniew Jędrzejewski-Szmek2017-05-021-1/+1
| | | | | | | | | Using conf.set() with a boolean argument does the right thing: either #ifdef or #undef. This means that conf.set can be used unconditionally. Previously I used '1' as the placeholder value, and that needs to be changed to 'true' for consistency (under meson 1 cannot be used in boolean context). All checks need to be adjusted.
* meson: reindent all files with 8 spacesZbigniew Jędrzejewski-Szmek2017-04-231-157/+157
| | | | | | | The indentation for emacs'es meson-mode is added .dir-locals. All files are reindented automatically, using the lasest meson-mode from git. Indentation should now be fairly consistent.
* meson: install test dataZbigniew Jędrzejewski-Szmek2017-04-231-0/+166
v2: - do not install test-data if instal-tests=no