Harald Hoyer
7e140a407b
fix(TEST FULL-SYSTEMD): shellcheck
4 years ago
Harald Hoyer
d97f88f28b
test(FULL-SYSTEMD): add fuse kernel module in test root
...
systemd wants to use it
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
560402c3dc
style: shfmt pre correction
4 years ago
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.
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
c7403700df
TEST-04-FULL-SYSTEMD: use seperate marker disk for root creation
5 years ago
Harald Hoyer
b3d40a4390
TEST-04-FULL-SYSTEMD: change error reporting
5 years ago
Harald Hoyer
1edee0c4a1
test/TEST-0[34] remove qemu return check
...
remove check of qemu return code $?
seems like it randomly returns with != 0
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
ba66cb2789
TEST-04-FULL-SYSTEMD: more info on failure
5 years ago
Harald Hoyer
4bd0ab61b2
test: remove "sudo" calls in test scripts
5 years ago
Harald Hoyer
b4de4f287f
test: do btrfs filesystem sync in create-root.sh
5 years ago
Harald Hoyer
074ac62576
TEST-04-FULL-SYSTEMD: report failure on rootfs creation
5 years ago
Harald Hoyer
2f78bafa4b
tests: untabify, reformat
5 years ago
Daniel Molkentin
8996d3dfcd
test: use hosts randomness, not rngd
5 years ago
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
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
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
b039b20ec2
test: correct cmdline reading functions
9 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
Ville Skyttä
9430ae301e
Do not use deprecated egrep/fgrep
9 years ago
Harald Hoyer
b8bccd398a
test/TEST-04-FULL-SYSTEMD: optionally install machine-info and *-id
9 years ago
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
)
9 years ago
Harald Hoyer
9ee2f1e235
TEST-04-FULL-SYSTEMD: fixup loadkeys keymap loading
10 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
6d58fa27a4
change "while read x" to cope with EOF without newline
...
while read x || [ -n "$x" ]
should do the trick
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
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
10 years ago
Marko Myllynen
b4fb539c9b
Change Fedora default console font to eurlatgr
...
See https://fedoraproject.org/wiki/Changes/NewDefaultConsoleFont
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
e54d961160
test: add udev settle after sfdisk
11 years ago
Harald Hoyer
b0d844fa74
TEST-04-FULL-SYSTEMD/test.sh: removed debug comments
11 years ago
Chapman Flack
9cf339ada3
Correct strstr/strglobin in test suite.
...
Previous commit included versions of strstr/strglobin in the test
suite files that did not match those in dracut-lib.sh.
11 years ago
Chapman Flack
2c19a5fa78
Specify strstr tightly, add strglob/strglobin.
...
By convention, strstr should be a literal string match. Previously, it
would match as a glob pattern. Some code used that, so add new
functions strglob and strglobin to do what that code expects, and
specify them tightly too. strglob tests whether the glob pattern
matches the entire string (the name strglob is also used in the yorick
language, and that's what it does there), while strglobin tests whether
the glob pattern matches anywhere in the string.
Also tightens str_starts, str_ends, and str_replace to deal with
literal strings only. In a quick grep I did not find code that depended
on these functions matching globs.
Changes the call sites where strstr was used with glob patterns to use
strglobin or strglob as the intention seemed to be (or, in one case,
strstr with the * removed as it did not affect the result anyway).
11 years ago
Harald Hoyer
f52759131b
test: include the same Makefile.testdir
11 years ago