- Apr 12, 2019
-
-
Zbigniew Jędrzejewski-Szmek authored
We had all kinds of indentation: 2 sp, 3 sp, 4 sp, 8 sp, and mixed. 4 sp was the most common, in particular the majority of scripts under test/ used that. Let's standarize on 4 sp, because many commandlines are long and there's a lot of nesting, and with 8sp indentation less stuff fits. 4 sp also seems to be the default indentation, so this will make it less likely that people will mess up if they don't load the editor config. (I think people often use vi, and vi has no support to load project-wide configuration automatically. We distribute a .vimrc file, but it is not loaded by default, and even the instructions in it seem to discourage its use for security reasons.) Also remove the few vim config lines that were left. We should either have them on all files, or none. Also remove some strange stuff like '#!/bin/env bash', yikes.
-
- Nov 03, 2018
-
-
Yu Watanabe authored
This may make CIs run faster.
-
- Jun 06, 2018
-
-
Lennart Poettering authored
-
Lennart Poettering authored
The test is heavily dependent on timeouts, and if we are run in potentially very slow QEMU instances there's a good chance we'll miss some which we normally wouldn't miss. Hence, let's test this one in nspawn only. Given that the test is purely in service management it shouldn't matter whether it runs in nspawn or qemu, hence keep running it in nspawn, but don't bother with qemu. Similar, do this for TEST-03-JOBS, too, which operates with relatively short sleep times internally. Fixes: #9123
-
- Aug 10, 2017
-
-
Martin Pitt authored
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).
-
- Aug 04, 2017
-
-
Martin Pitt authored
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.
-
- Jun 24, 2016
-
-
Martin Pitt authored
This makes nspawn tests symmetric with run_qemu() which also exits with 1 if QEMU is not available.
-
- Nov 25, 2015
-
-
Evgeny Vereshchagin authored
-
- Dec 10, 2013
-
-
Ronny Chevalier authored
It tries to find a suitable QEMU binary and will use KVM if present. We can now configure QEMU from outside with 4 variables : - $QEMU_BIN : path to QEMU's binary - $KERNEL_APPEND : arguments appended to kernel cmdline - $KERNEL_BIN : path to a kernel Default /boot/vmlinuz-$KERNEL_VER - $INITRD : path to an initramfs Default /boot/initramfs-${KERNEL_VER}.img - $QEMU_SMP : number of CPU simulated by QEMU. Default 1 (from Alexander Graf's script: http://www.spinics.net/lists/kvm/msg72389.html)
-
- Nov 07, 2013
-
-
Ronny Chevalier authored
-
- Sep 17, 2013
-
-
Harald Hoyer authored
-
- Apr 24, 2013
-
-
Zbigniew Jędrzejewski-Szmek authored
-
- Feb 23, 2013
-
-
Michal Schmidt authored
-
- Jan 30, 2013
-
-
Zbigniew Jędrzejewski-Szmek authored
- fix typo - use compiled systemd-nspawn - drop --capability=... from systemd-nspawn invocation, is is the default now - simplify sudo make invocations
-
- Jan 25, 2013
-
-
Michal Schmidt authored
Add a test case for job merging with --ignore-dependencies. test.sh is copied from TEST-01-*, only lightly modified (this should be refactored better in the future). test-jobs.sh is the core of this test.
-
Michal Schmidt authored
Tests can use the same testsuite.target. Add end.service to call poweroff instead of doing it from ExecStopPost where it may be skipped on failure of ExecStart.
-
Michal Schmidt authored
"systemctl poweroff" called from testsuite.service will cause this unit itself to stop. To avoid deadlock, the call must not be synchronous.
-
- Sep 13, 2012
-
-
Lennart Poettering authored
-
- Jun 28, 2012
-
-
Lennart Poettering authored
-
Lennart Poettering authored
-
- May 29, 2012
-
-
Harald Hoyer authored
-
Harald Hoyer authored
-
Harald Hoyer authored
-
- May 24, 2012
-
-
Harald Hoyer authored
-
Harald Hoyer authored
-
Harald Hoyer authored
-
Harald Hoyer authored
-
Harald Hoyer authored
-
Harald Hoyer authored
-
Lennart Poettering authored
-
Lennart Poettering authored
-
- May 22, 2012
-
-
Harald Hoyer authored
$ cd test $ sudo make check will run all tests in the TEST-* subdirectories $ cd test/TEST-01-BASIC $ sudo make clean setup run will run the different stages of the test for debugging purposes
-