Harald Hoyer
c08bc8109d
fix(base): split out `dracut-dev-lib.sh`
...
To share the `wait_for_dev` function and use it without side effects on
install time, split out the needed functions in an extra library.
2021-05-17 16:22:49 +02:00
Harald Hoyer
b2cf61d97f
ci: run the integration tests on more distributions
...
Add OpenSuse and Arch Linux to limited tests.
Only run the full tests against the latest stable Fedora version
to reduce the workload.
Also remove the `hung_task_panic=1` on the kernel command line, as qemu
tends to be really slow in non-kvm mode.
2021-05-14 13:08:07 +02:00
Harald Hoyer
8b2afb08ba
fix: make testsuite pass on OpenSuse and Arch
...
This removes some hard assumptions about the file system layout.
It also hardens the tests with network interface renaming rules and
guards.
2021-05-14 08:34:38 +02:00
Harald Hoyer
909961d048
fix: shellcheck 0.7.2
...
github action `luizm/action-sh-checker@v0.2.2` uses `shellcheck-0.7.2`,
which detects more non-posix shell code and complains accordingly.
2021-05-05 14:55:30 +02:00
Harald Hoyer
b80ee08093
ci: use /dev/disk/by-id
...
Due to parallel probing of the linux kernel `/dev/sd*` can't be used to
reliably address a hard disk. This can be seen by the many spurious
failures of the dracut CI, where `mdadm` failed with error 524 or tests
failed due to the success marker message written to the wrong disk.
* don't rely on `/dev/sd*` but use disk ids and `/dev/disk/by-id/ata-disk_<name>`
* specify the exact qemu machine architecture `-M q35` needed for the
disk ids. A later patch will move this to `run-qemu`, when all tests are converted
* due to `-M q35` the interface names have changed from
`ens2` -> `enp0s1` and `ens3` -> `enp0s2`
2021-04-22 02:55:31 +02:00
Harald Hoyer
beb3e54ece
fix(TEST BASIC): shellcheck
2021-03-30 21:09:06 +02:00
Harald Hoyer
9a52c3fdb0
style: shfmt reformat
...
reproducible with:
```
$ shfmt_version=3.0.1
$ wget "https://github.com/mvdan/sh/releases/download/v${shfmt_version}/shfmt_v${shfmt_version}_linux_amd64 " -O shfmt
$ chmod u+x shfmt
$ ./shfmt -w .
```
2021-03-13 20:10:43 +01:00
Harald Hoyer
455329cf71
test: change the LABEL to include spaces
...
Test for root device with a LABEL, which includes spaces.
2021-03-10 19:31:19 +01:00
Harald Hoyer
d85c71fb69
ci: force binary files for grep on disk images
...
Because some of the CI tests fail randomly while grepping for the
test success marker, let's be specific of the file format grep will
search to eleminate all failure sources.
2021-02-15 15:05:15 +01:00
Harald Hoyer
a22ab24d53
test: use dd from /dev/zero, instead of creating files with a hole
2020-03-12 12:46:15 +01:00
Harald Hoyer
9ca53063ee
test: use dd to write status to marker disk
2020-02-28 14:41:15 +01:00
Harald Hoyer
a3f73298f2
testsuite: refactor qemu options
...
- refactor common qemu options
- fix the ens[0-9] interface shift
- add split network-[legacy|network] tests
2020-02-28 12:53:42 +01:00
Harald Hoyer
4b60a34715
Revert "test: run-qemu refactor common qemu parameters"
...
This reverts commit 77537bf2d7
.
Sorry, for the noise!
2020-02-28 08:51:44 +01:00
Harald Hoyer
77537bf2d7
test: run-qemu refactor common qemu parameters
2020-02-28 08:39:31 +01:00
Harald Hoyer
4bd0ab61b2
test: remove "sudo" calls in test scripts
2020-02-27 15:27:30 +01:00
Harald Hoyer
2f78bafa4b
tests: untabify, reformat
2020-02-27 15:27:30 +01:00
Daniel Molkentin
8996d3dfcd
test: use hosts randomness, not rngd
2019-11-13 09:07:45 +01:00
Lubomir Rintel
7934c6f918
test: tell systemd to reboot on fatal errors
...
Otherwise systemd would freeze execution, causing the test to time out
instead of failing fast.
2019-07-19 16:10:54 +02:00
Harald Hoyer
225e4b94cb
Fix tests with network-legacy
2018-10-08 15:38:33 +02:00
Harald Hoyer
c31a80c9ed
TEST-01: remove memdebug
2018-08-16 09:50:52 +02:00
Harald Hoyer
9b8e6e40a9
increased qemu memory
2017-07-21 11:43:08 +02:00
Daniel Molkentin
fd79054610
net-tools are not required anymore
...
Also bridge-utils was listed twice in README.testsuite.
2017-02-13 18:32:18 +01:00
Harald Hoyer
bdd626059c
test/run-qemu: make "-cpu host" the default
2017-01-18 16:26:30 +01:00
Xunlei Pang
01030beda2
testsuite: add "rd.memdebug=4" in TEST-01-BASIC to test rd.memdebug
...
"rd.memdebug=4" includes all the test level, so add it to test
rd.memdebug function.
Signed-off-by: Xunlei Pang <xlpang@redhat.com>
2016-11-27 12:21:02 +08:00
Harald Hoyer
dfb3db3dad
testsuite: add "-cpu host" to kvm call
2016-11-14 16:21:06 +01:00
Harald Hoyer
36867f1abf
test: handle kernel panic in testsuite
...
- reboot kernel on panic
- qemu don't reboot
2016-06-10 08:53:01 +02:00
Harald Hoyer
781f1971c3
cope with "rd.shell=0" in the testsuite
...
If emergency and shutdown-emergency hooks are called, the systemd should
poweroff the testsuite, therefore "rd.shell=0" is given on the test
suite kernel command lines.
"rd.shell=0" has to be parsed correctly by the test suite real root init
also.
2016-06-08 16:48:07 +02:00
Harald Hoyer
4e882b8090
use shutdown-emergency hook in testsuite to poweroff the machine
2016-06-07 14:27:03 +02:00
Harald Hoyer
777f2db037
splitup dracut-init.sh from dracut-functions.sh
...
other tools want to source dracut-functions.sh without any mkdir side
effects.
2015-07-02 16:04:05 +02:00
Harald Hoyer
4358ace43c
fixup test suite
...
- qemu wants to have "format=raw"
- "-kernel" is obsolete, because run-qemu picks the right path
2015-06-09 13:36:46 +02:00
Harald Hoyer
e3e1f406bb
test: turn off hostonly-cmdline and hostonly
2015-01-21 09:33:39 +01:00
Harald Hoyer
eda73c0ad2
test: add "fs-lib" to dracut module list
2014-10-24 13:19:34 +02:00
Harald Hoyer
068531232b
test: make testsuite work with the new systemd minimal root req
...
systemd needs more directories to switch root
2014-08-08 13:34:04 +02:00
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
2013-08-07 10:33:15 +02:00
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
2013-06-28 10:31:18 +02:00
Harald Hoyer
021b2fddff
test: use grep option "-F" and install /etc/os-release
2013-04-30 18:54:33 +02:00
Harald Hoyer
56fb5c4dbf
TESTSUITE: s/i6300esbwdt/i6300esb ib700wdt/g
2013-04-05 11:07:55 +02:00
Harald Hoyer
bb278147cf
fixed testsuite
2013-03-15 07:10:20 +01:00
Harald Hoyer
356333b331
test: add finished-false.sh for create-root.sh initqueue job
2013-03-02 13:20:59 +01:00
Harald Hoyer
23d6dcd125
test: s/ib700wdt/i6300esbwdt/g
2012-08-01 12:53:39 +02:00
Harald Hoyer
9ede75b1ce
TEST-01-BASIC: enable selinux
2012-07-10 12:24:16 +02:00
Harald Hoyer
fe5f8d0074
TEST-01-BASIC: turn on systemd debugging
2012-07-10 12:24:16 +02:00
Harald Hoyer
27fa604418
test: export initdir
2012-07-09 15:30:15 +02:00
Harald Hoyer
47057875e7
TEST-01-BASIC: grow the root disk
2012-07-02 18:52:49 +02:00
Harald Hoyer
f0558da598
test/*/test.sh: correct ifup and dhclient paths
2012-06-29 12:41:27 +02:00
Harald Hoyer
c8f3a1c057
TEST-01-BASIC: add watchdog
2012-06-18 20:05:25 +02:00
Harald Hoyer
cfe32ef5ba
TEST-01-BASIC: sync after creating the root disk
2012-05-16 11:51:26 +02:00
Harald Hoyer
4b13b2e2bf
test/TEST-01-BASIC/test.sh: fix cleanup of overlay dir
2012-05-07 16:32:28 +02:00
Harald Hoyer
d8eb522e80
TEST-01-BASIC: add setsid
2012-03-14 16:32:19 +01:00
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
2012-02-22 15:15:21 +01:00