summaryrefslogtreecommitdiffstats
path: root/test/TEST-03-JOBS (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: mask several unnecessary servicesYu Watanabe2018-11-031-0/+8
| | | | This may make CIs run faster.
* test: make sure output of test TEST-03 test service ends up on consoleLennart Poettering2018-06-062-1/+3
|
* test: disable QEMU based testing for TEST-16-EXTEND-TIMEOUTLennart Poettering2018-06-061-0/+1
| | | | | | | | | | | | | | 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
* test: Run qemu/nspawn tests with "set -e"Martin Pitt2017-08-102-13/+14
| | | | | | | | 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-34/+0
| | | | | | | | | | | 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: use less aggressive systemctl --wait timeout in TEST-03-JOBS (#4606)Martin Pitt2016-11-071-1/+1
| | | | | | | | | | | If the "systemctl start" happens at an "unlucky" time such as 1000.9 seconds and then e. g. runs for 2.6 s (sleep 2 plus the overhead of starting the unit and waiting for it) the END_SEC would be 1003.5s which would round to 1004, making the difference 4. On busier testbeds the overhead apparently can take a bit more than 0.5s. The main point is really that it doesn't wait that much longer, so "-le 4" seems perfectly fine. We allow up to 1.5s in the subsequent "wait5fail" test below too. Fixes #4582
* systemctl: Add --wait option to wait until started units terminate againMartin Pitt2016-10-011-0/+28
| | | | Fixes #3830
* test: merge check_nspawn() into run_nspawn()Martin Pitt2016-06-241-2/+1
| | | | | This makes nspawn tests symmetric with run_qemu() which also exits with 1 if QEMU is not available.
* test: remove exit 0 at the endPhillip Sz2016-02-051-1/+0
| | | | | We don't need that at the end, as it will always exit with 0 if everything is okey.
* tests: fix TEST-03-JOBSEvgeny Vereshchagin2016-01-181-2/+5
| | | | | | | | | | | | | | We have JOB UNIT TYPE STATE 1 testsuite.target start waiting 81 end.service start waiting 187 sleep.service start waiting 136 hello.service start waiting 82 testsuite.service start running 135 hello-after-sleep.target start waiting sometimes
* tests: don't run tests on incomplete setupEvgeny Vereshchagin2015-11-251-1/+1
|
* test: Fix typo in TEST-03-JOBS/test-jobs.shJesus Ornelas Aguayo2015-11-061-1/+1
| | | | | | Fix typo s/enqueueing/enqueuing/ Signed-off-by: Jesus Ornelas Aguayo <jesus.ornelas.aguayo@intel.com>
* Use "new" --job-mode= option in more placesZbigniew Jędrzejewski-Szmek2015-05-181-4/+4
| | | | | | --irreversible/--ignore-dependencies/--fail are deprececated since 4dc5b821ae737914499119e29811fc3346e3d97c. Also add shell completions for --jobs-mode.
* test: add test for crash when adding a JOB_NOPMichal Schmidt2014-11-261-0/+9
|
* test: rework run_qemuRonny Chevalier2013-12-101-6/+2
| | | | | | | | | | | | | | | 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)
* test: remove duplicated codeRonny Chevalier2013-11-071-175/+9
|
* TEST-03-JOBS/test.sh: do not output the "failed" if it does not existHarald Hoyer2013-09-171-4/+4
|
* test: make it easier to override kernel versionZbigniew Jędrzejewski-Szmek2013-04-241-3/+1
|
* test: test irreversible jobsMichal Schmidt2013-02-232-2/+16
|
* test: some trivial fixes to test scriptsZbigniew Jędrzejewski-Szmek2013-01-301-1/+1
| | | | | | | - fix typo - use compiled systemd-nspawn - drop --capability=... from systemd-nspawn invocation, is is the default now - simplify sudo make invocations
* test: add test for jobsMichal Schmidt2013-01-253-0/+279
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.