summaryrefslogtreecommitdiffstats
path: root/src/test/test-loopback.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: fix test-loopback failure when lacking privilegesLuca Boccassi2024-03-041-0/+2
| | | | | | | | | | | Setting up the loopback might fail due to lack of privileges, as it happens when running unit tests in the Noble CI environment. Skip the test when it happens. 1584s 862/1330 systemd:test / test-loopback FAIL 0.01s exit status 1 1584s /* test_loopback_setup */ 1584s Failed to configure loopback network device, ignoring: Operation not permitted 1584s loopback: Operation not permitted
* tests: use log_tests_skipped() and friend moreYu Watanabe2023-10-311-4/+2
|
* test-loopback: suppress warning about ignored unused resultZbigniew Jędrzejewski-Szmek2023-10-031-4/+8
|
* test-loopback: run test in network + user namespaceLennart Poettering2023-05-311-4/+28
| | | | This way it can actually do useful testing even when unprivileged.
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* tests: use a helper function to parse environment and open loggingZbigniew Jędrzejewski-Szmek2018-09-141-3/+2
| | | | | The advantages are that we save a few lines, and that we can override logging using environment variables in more test executables.
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-141-3/+0
| | | | | | | | | | | These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141-2/+0
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* 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.
* Add SPDX license identifiers to source files under the LGPLZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
| | | | | This follows what the kernel is doing, c.f. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fd54ace4721fc5ce2bb5aef6318fcf17f421460.
* test: show debug log output during test-loopbackLennart Poettering2017-06-231-0/+1
|
* tree-wide: fix incorrect uses of %mZbigniew Jędrzejewski-Szmek2017-05-131-1/+1
| | | | | In those cases errno was not set, so we would be logging some unrelated error or "Success".
* Move test-loopback to normal testsZbigniew Jędrzejewski-Szmek2016-03-051-2/+2
| | | | | In the normal case lo should be already configured and this should be a noop, even when run under root.
* tree-wide: remove Emacs lines from all filesDaniel Mack2016-02-101-2/+0
| | | | | This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file.
* tree-wide: sort includesThomas Hindoe Paaboel Andersen2015-11-161-2/+2
| | | | Sort the includes accoding to the new coding style.
* tree-wide: don't do assignments within if checksLennart Poettering2015-09-091-1/+2
| | | | | | | | | | | Turn this: if ((r = foo()) < 0) { ... into this: r = foo(); if (r < 0) { ...
* remove unused includesThomas Hindoe Paaboel Andersen2015-02-231-3/+0
| | | | | | This patch removes includes that are not used. The removals were found with include-what-you-use which checks if any of the symbols from a header is in use.
* test: loopback - parse logging env varTom Gundersen2014-12-291-0/+4
|
* test: test tools should still be in the src/ directoryLennart Poettering2012-04-121-0/+37