summaryrefslogtreecommitdiff
path: root/test/TEST-08-ISSUE-2730
Commit message (Collapse)AuthorAgeFilesLines
* test: Drop SKIP_INITRD for QEMU-based testsMichael Biebl2019-01-141-1/+0
| | | | | | | | Not all distros support booting without an initrd. E.g. the Debian kernel builds ext4 as a module and so relies on an initrd to successfully start the QEMU-based images. Cherry-picked from: c2d4da002095fe6f86f89a508a81e48fb6d3196f
* 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-30/+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: track and check for timeoutsMartin Pitt2016-06-241-0/+1
| | | | | | | | | | | | | If run_qemu() exits with non-zero, this either meant that QEMU was not available (which should be a SKIP) or that QEMU timed out if $QEMU_TIMEOUT was set (which then should be a FAIL). Limit the exit code of run_qemu() to QEMU availability only, and track timeouts separately through the new $TIMED_OUT variable, which is then checked in check_result_qemu(). Do the same for $NSPAWN_TIMEOUT and run_nspawn() so that nspawn and QEMU work similarly.
* 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.
* TEST-08: make sure / is remounted rwZbigniew Jędrzejewski-Szmek2016-05-081-0/+14
| | | | | | | | | | In this test /etc/fstab is replaced by -.mount unit. This causes systemd-remount-fs.service to not remount / rw, which in turn causes various failures becuase /var is not writable. In particular systemd-tmpfiles-setup.service reports many failures. This is something to possibly fix on its own (see https://github.com/systemd/systemd/issues/791); in the meanwhile let's fix this test so that it doesn't fail, since the point of the test is to check aliases on mount units, and not a ro root.
* tests: use symlink to MakefileEvgeny Vereshchagin2016-05-011-10/+1
|
* tests: add test for https://github.com/systemd/systemd/issues/2730Evgeny Vereshchagin2016-03-012-0/+104