Harald Hoyer
75d758e8f1
style: shfmt -s 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 -s .
```
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
0f62da0405
ci: get rid of "mount -o loop"
...
This finally allows running the test suite completely in a rootless container:
```
❯ podman run \
--user 0 \
-v /dev:/dev \
-v ./:/dracut \
-it \
quay.io/haraldh/dracut-fedora:33 \
bash -c 'cd /dracut; make DRACUT_NO_XATTR=1 check'
```
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
7c51256eb2
TEST-40-NBD: disable again
...
NBD is still too flaky and hangs hard sometimes
5 years ago
Harald Hoyer
0d33ba030b
test/TEST-40-NBD/test.sh: bail out early if mount fails
5 years ago
Harald Hoyer
4bd0ab61b2
test: remove "sudo" calls in test scripts
5 years ago
Harald Hoyer
eb8856a58c
TEST-40-NBD: run the working tests
5 years ago
Harald Hoyer
2f78bafa4b
tests: untabify, reformat
5 years ago
Harald Hoyer
f7b9356c9e
test: fix server init scripts for network
5 years ago
Harald Hoyer
3aae122c4b
Add github workflow
5 years ago
Daniel Molkentin
8996d3dfcd
test: use hosts randomness, not rngd
5 years ago
Lubomir Rintel
c9391e8f6a
TEST-{20,30,31,40,50,60,70): wait for server interfaces to come up
...
The network interfaces appear asynchronously and sometimes just too late,
after we're already halfway throught server-init.sh:
+ ip link set dev eth0 name ens3
Cannot find device "eth0"
+ ip addr add 192.168.50.1/24 dev ens3
Cannot find device "ens3"
+ dhcpd -cf /etc/dhcpd.conf -lf /var/lib/dhcpd/dhcpd.leases ens3 ens5
...
[ 8.040825] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 52:54:01:12:34:56
[ 8.047105] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
...
No subnet declaration for ens3 (no IPv4 addresses).
** Ignoring requests on ens3. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface ens3 is attached. **
Whoopsie. Let's ensure all the interfaces are there before we proceed
fiddling around with them.
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
d63a4e285e
TEST-40-NBD: disable for now
...
nbd is always broken
7 years ago
Harald Hoyer
66a3d4053b
testsuite: increase disk image size
8 years ago
Harald Hoyer
9b8e6e40a9
increased qemu memory
8 years ago
Harald Hoyer
b0d6254dad
TEST: redirect server output to server.log if $SERIAL empty
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
b070c1d360
nbd: add systemd generator and use nbd export names instead of port numbers
...
Add a systemd generator for root=nbd:.. so that systemd has a correct
sysroot.mount unit.
Use export names instead of port numbers, because port number based
exports are deprecated and were removed.
9 years ago
Mike Gilbert
5899f2f516
Replace echo -n with printf in code with a /bin/sh shebang
...
POSIX does not mandate that echo support the -n parameter.
printf has more well-defined behavior.
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
481ee9e6fc
test: ping watchdog in dhcp servers
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
967cc19ab1
remove all vim and emacs code format comments
11 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
f52759131b
test: include the same Makefile.testdir
11 years ago
Harald Hoyer
67b4a9ea17
testsuite: fixed network interface names
12 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
56fb5c4dbf
TESTSUITE: s/i6300esbwdt/i6300esb ib700wdt/g
12 years ago
Harald Hoyer
44f870be42
test: change qemu param -nographic to -display none for -daemonize
...
qemu does not like -nographic in combination with -daemonize
12 years ago
Harald Hoyer
57aa1e9140
TEST-40-NBD/test.sh: kill_server() after test_run()
12 years ago
Harald Hoyer
bb278147cf
fixed testsuite
12 years ago
Harald Hoyer
83691c413f
testsuite fixup
12 years ago