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.
4 years ago
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.
4 years ago
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.
4 years ago
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.
4 years ago
Harald Hoyer
b92af86bd5
test: don't fail on modprobe btrfs in create-root.sh
4 years ago
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`
4 years ago
Harald Hoyer
007df5adc1
test: mark the whole test subdir as shellcheck'ed
4 years ago
Harald Hoyer
79f9b17feb
fix(TEST BTRFSRAID): shellcheck
4 years ago
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 .
```
4 years ago
Harald Hoyer
72cba8aecd
test: sync and poweroff in create-root.sh
4 years ago
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.
4 years ago
Harald Hoyer
dbb8a98b29
ci: wait for udev before doing sfdisk
...
might be responsible for some flakiness
4 years ago
Harald Hoyer
a22ab24d53
test: use dd from /dev/zero, instead of creating files with a hole
5 years ago
Harald Hoyer
9ca53063ee
test: use dd to write status to marker disk
5 years ago
Harald Hoyer
a3f73298f2
testsuite: refactor qemu options
...
- refactor common qemu options
- fix the ens[0-9] interface shift
- add split network-[legacy|network] tests
5 years ago
Harald Hoyer
4b60a34715
Revert "test: run-qemu refactor common qemu parameters"
...
This reverts commit 77537bf2d7
.
Sorry, for the noise!
5 years ago
Harald Hoyer
77537bf2d7
test: run-qemu refactor common qemu parameters
5 years ago
Harald Hoyer
4bd0ab61b2
test: remove "sudo" calls in test scripts
5 years ago
Harald Hoyer
2f78bafa4b
tests: untabify, reformat
5 years ago
Daniel Molkentin
8996d3dfcd
test: use hosts randomness, not rngd
5 years ago
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.
6 years ago
Harald Hoyer
225e4b94cb
Fix tests with network-legacy
6 years ago
Harald Hoyer
7c62555bcf
TEST-15-BTRFSRAID: use seperate disk image for boot result
7 years ago
Harald Hoyer
5a8f1aef55
TEST-15-BTRFSRAID: sync in test-init
...
strange failure
7 years ago
Harald Hoyer
9b8e6e40a9
increased qemu memory
8 years ago
Daniel Molkentin
fd79054610
net-tools are not required anymore
...
Also bridge-utils was listed twice in README.testsuite.
8 years ago
Harald Hoyer
bdd626059c
test/run-qemu: make "-cpu host" the default
8 years ago
Harald Hoyer
dfb3db3dad
testsuite: add "-cpu host" to kvm call
8 years ago
Harald Hoyer
36867f1abf
test: handle kernel panic in testsuite
...
- reboot kernel on panic
- qemu don't reboot
9 years ago
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.
9 years ago
Harald Hoyer
4e882b8090
use shutdown-emergency hook in testsuite to poweroff the machine
9 years ago
Harald Hoyer
c606be49d7
TEST-15-BTRFS: load btrfs module
...
(cherry picked from commit d9b5a98532
)
9 years ago
Harald Hoyer
777f2db037
splitup dracut-init.sh from dracut-functions.sh
...
other tools want to source dracut-functions.sh without any mkdir side
effects.
10 years ago
Harald Hoyer
4358ace43c
fixup test suite
...
- qemu wants to have "format=raw"
- "-kernel" is obsolete, because run-qemu picks the right path
10 years ago
Harald Hoyer
e93d0bea38
test: include kernel-network-modules for network tests
10 years ago
Harald Hoyer
8a430ab25b
test: use the new sfdisk syntax without disk geometry
10 years ago
Harald Hoyer
e3e1f406bb
test: turn off hostonly-cmdline and hostonly
10 years ago
Harald Hoyer
eda73c0ad2
test: add "fs-lib" to dracut module list
10 years ago
Harald Hoyer
068531232b
test: make testsuite work with the new systemd minimal root req
...
systemd needs more directories to switch root
11 years ago
Harald Hoyer
44537b7bf8
TEST-15-BTRFSRAID: install /etc/os-release
...
makes systemd switch-root happy
11 years ago
Harald Hoyer
e54d961160
test: add udev settle after sfdisk
11 years ago
Harald Hoyer
f52759131b
test: include the same Makefile.testdir
11 years ago
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
12 years ago
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
12 years ago
Harald Hoyer
021b2fddff
test: use grep option "-F" and install /etc/os-release
12 years ago
Harald Hoyer
bb278147cf
fixed testsuite
12 years ago
Harald Hoyer
356333b331
test: add finished-false.sh for create-root.sh initqueue job
12 years ago
Harald Hoyer
43cc4d84bc
change for "udevadm control": s/--reload-rules/--reload/g
12 years ago
Harald Hoyer
2723ebba9a
test: silence "make all"
13 years ago
Harald Hoyer
3e1d48fd12
test: add support for: make V=1 TESTS="01 20 40" check
...
$ sudo make V=1 clean check
now runs the testsuite in verbose mode
$ sudo make TESTS="01 20 40" clean check
now only runs the 01, 20 and 40 tests.
13 years ago