summaryrefslogtreecommitdiffstats
path: root/test/TEST-10-ISSUE-2467 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests: don't use "netcat" for testing TEST-10-ISSUE-2467Lennart Poettering2017-12-051-3/+5
| | | | | | | | | | | | | | | | | | Apparently there are a myriad of netcat implementations around, and they all behave slightly differently. The one I have on my Fedora 27 installation will cause a failure when invoked as "nc -U" on an AF_UNIX socket whose connections are immediately disconnected, thus causing the test to fail. Let's avoid all ambiguities in this regard, and drop usage of netcat altoegther. Instead let's use a FIFO in the file system, which we can connect to with only shell commands, and is hence much simpler and more reliable to test with. The actual test is supposed to validate that PID 1 doesn't hang when activation of a socket-activated service fails, hence which transport mechanism is used ultimately doesn't matter, as long as we activate the service, and we do here...
* tests: make TEST-10-ISSUE-2467 also run in nspawnLennart Poettering2017-12-051-1/+1
| | | | | No reason not to run it in nspawn, and it's easier to debug than the qemu version.
* test: Run qemu/nspawn tests with "set -e"Martin Pitt2017-08-101-0/+1
| | | | | | | | This catches errors like "ninja not found", missing programs etc. early, instead of silently ignoring them and trying to boot a broken VM. In install_config_files(), allow some distro specific files to be absent (such as /etc/sysconfig/init).
* test: Factorize common integration test functions (#6540)Martin Pitt2017-08-041-29/+1
| | | | | | | | | | | All test/TEST* but TEST-02-CRYPTSETUP share the same check_result_qemu() and test_cleanup(), so move them into test_functions and only override them in TEST-02-CRYPTSETUP. Also provide a common test_run() which by default assumes that both QEMU and nspawn tests are run. Particular tests which don't support either need to explicitly opt out by setting $TEST_NO_{QEMU,NSPAWN}. Do it this way around to avoid accidentally forgetting to opt in, and to encourage test authors to at least always support nspawn.
* tests: don't fail if QEMU is not availableMartin Pitt2016-06-241-2/+5
| | | | | Fix TEST-{08,09,10,11} to properly skip the test if QEMU is not available instead of failing, like in the other tests.
* tests: add test for https://github.com/systemd/systemd/issues/2467 (#3168)Evgeny Vereshchagin2016-05-022-0/+89