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
ece67c7e2d
test(FULL SYSTEMD): try pacman rather than rpm on Arch
...
If there is no `rpm`, try `pacman` to get a full list of systemd files
to install into the real test root.
2021-05-04 13:23:56 +02:00
Harald Hoyer
b92af86bd5
test: don't fail on modprobe btrfs in create-root.sh
2021-04-26 13:13:59 +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
007df5adc1
test: mark the whole test subdir as shellcheck'ed
2021-03-31 09:33:03 +02:00
Harald Hoyer
7e140a407b
fix(TEST FULL-SYSTEMD): shellcheck
2021-03-30 20:54:26 +02:00
Harald Hoyer
d97f88f28b
test(FULL-SYSTEMD): add fuse kernel module in test root
...
systemd wants to use it
2021-03-29 16:16:09 +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
560402c3dc
style: shfmt pre correction
2021-03-13 20:10:43 +01:00
Jóhann B. Guðmundsson
9cf7b1c529
fix: always use mkdir -p
...
Ensuring that directory creations dont trigger error if directory
previously existed as well as create parent directories if needed.
2021-03-03 13:06:02 +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
dbb8a98b29
ci: wait for udev before doing sfdisk
...
might be responsible for some flakiness
2021-02-15 09:31:01 +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
c7403700df
TEST-04-FULL-SYSTEMD: use seperate marker disk for root creation
2020-03-03 16:56:43 +01:00
Harald Hoyer
b3d40a4390
TEST-04-FULL-SYSTEMD: change error reporting
2020-03-02 14:55:51 +01:00
Harald Hoyer
1edee0c4a1
test/TEST-0[34] remove qemu return check
...
remove check of qemu return code $?
seems like it randomly returns with != 0
2020-03-02 14:42:27 +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
ba66cb2789
TEST-04-FULL-SYSTEMD: more info on failure
2020-02-27 16:42:21 +01:00
Harald Hoyer
4bd0ab61b2
test: remove "sudo" calls in test scripts
2020-02-27 15:27:30 +01:00
Harald Hoyer
b4de4f287f
test: do btrfs filesystem sync in create-root.sh
2020-02-27 15:27:30 +01:00
Harald Hoyer
074ac62576
TEST-04-FULL-SYSTEMD: report failure on rootfs creation
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
Marko Myllynen
42d93d3482
Use eurlatgr as default console font
...
Fedora and others have used eurlatgr as the default console font
for some time now, or suggested using it:
https://fedoraproject.org/wiki/Changes/NewDefaultConsoleFont
https://wiki.archlinux.org/index.php/Linux_console#Fonts
The Fedora Change page lists some of the benefits and this file
lists all the characters (glyphs) supported by the font:
http://git.altlinux.org/people/legion/packages/kbd.git?p=kbd.git;a=blob;f=data/consolefonts/README.eurlatgr
The notable downside is that the font does not support Arabic,
Cyrillic or Hebrew as LatArCyrHeb-16 (partially) does, so in cases
where support for languages using them is needed a non-default
console font should be used. Fedora, for instance, uses langtable
to decide the console font to use based on installation language:
https://bugzilla.redhat.com/show_bug.cgi?id=1209460
2019-10-21 13:07:07 +02: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
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
Harald Hoyer
dfb3db3dad
testsuite: add "-cpu host" to kvm call
2016-11-14 16:21:06 +01:00
Harald Hoyer
b039b20ec2
test: correct cmdline reading functions
2016-06-27 12:05:37 +02: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
Ville Skyttä
9430ae301e
Do not use deprecated egrep/fgrep
2016-03-28 11:38:34 +03:00
Harald Hoyer
b8bccd398a
test/TEST-04-FULL-SYSTEMD: optionally install machine-info and *-id
2015-12-14 15:19:53 +01:00
Harald Hoyer
f939cffdac
test/TEST-04-FULL-SYSTEMD/create-root.sh: modprobe btrfs
...
why so ever... it used to load automatically
(cherry picked from commit 65977ef1d1
)
2015-11-11 16:15:41 +01:00
Harald Hoyer
9ee2f1e235
TEST-04-FULL-SYSTEMD: fixup loadkeys keymap loading
2015-07-07 14:31:06 +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
6d58fa27a4
change "while read x" to cope with EOF without newline
...
while read x || [ -n "$x" ]
should do the trick
2015-04-28 11:39:15 +02:00
Harald Hoyer
e93d0bea38
test: include kernel-network-modules for network tests
2015-03-26 10:57:58 +01:00
Harald Hoyer
8a430ab25b
test: use the new sfdisk syntax without disk geometry
2015-01-22 16:02:54 +01:00
Harald Hoyer
2a5a7fb662
test/TEST-04-FULL-SYSTEMD/test.sh: fix the find -perm
...
"find -perm +111" should be "find -perm /0111" as it is deprecated since
a long time
2015-01-22 16:00:50 +01:00
Marko Myllynen
b4fb539c9b
Change Fedora default console font to eurlatgr
...
See https://fedoraproject.org/wiki/Changes/NewDefaultConsoleFont
2015-01-22 15:51:03 +01:00