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
060e1f192e
test: use `uname -m` to determine qemu-system
...
E.g. `uname -i` does not work in Arch Linux containers.
2021-05-04 10:14:08 +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
e010f45524
fix(test/run-qemu): shellcheck for test/run-qemu
2021-03-30 12:26:14 +02:00
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 .
```
2021-03-13 20:10:43 +01: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
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
7374391434
Revert "test/run-qemu: add "-serial stdio""
...
This reverts commit c6c588d648
.
2020-02-28 08:51:31 +01:00
Harald Hoyer
c6c588d648
test/run-qemu: add "-serial stdio"
2020-02-28 08:47:52 +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
Daniel Molkentin
c226bfdda7
test: Provide host's randomness via virtio
2019-11-13 09:07:45 +01:00
Harald Hoyer
cafe6675c2
test/run-qemu: move -cpu host to kvm args
2018-08-14 16:31:22 +02:00
Harald Hoyer
b7774da97c
might even run without kvm
2018-08-14 16:18:53 +02:00
Daniel Molkentin
ce999bff98
Tests: find qemu on (open)SUSE systems
2017-04-05 16:42:22 +02:00
Harald Hoyer
bdd626059c
test/run-qemu: make "-cpu host" the default
2017-01-18 16:26:30 +01:00
Harald Hoyer
97ff396a97
run-qemu: default kernel to "/lib/modules/${KVERSION}/vmlinuz"
...
newer Fedora kernel install the kernel to /lib/modules
2015-06-11 17:39:47 +02:00
Harald Hoyer
87ae968810
test/run-qemu: specify the kernel
2013-06-28 10:21:42 +02:00
Harald Hoyer
709302e3cc
run-qemu: add /usr/libexec/qemu-kvm to search
2010-04-16 17:59:49 +02:00
Harald Hoyer
e5ccf5eb93
run-qemu: specify PATH
2009-10-09 13:17:45 +02:00
Harald Hoyer
2f692e8ff8
silently run qemu
2009-05-25 14:11:24 +02:00
Harald Hoyer
008bb4f22c
/dev/kvm is a char device
2009-05-25 11:44:52 +02:00
Harald Hoyer
2281815799
set u+x for run-qemu
2009-05-25 11:36:32 +02:00
Andreas Thienemann
8a4b60d9b2
Support different virtualization technologies for run-qemu.
...
If the host supports kvm, use is. If this is not the case but the kqemu
module is loaded, run qemu with kqemu optimization. Otherwise fall-back to
pure usermode qemu.
2009-05-25 11:36:32 +02:00
Victor Lowther
ac6da96cc8
Make running qemu a little more generic
...
Also create the root filesystem from within the virtual env, this way there
will be no nasty suprises w.r.t interactions with the host machine. This
is important when we test booting to LVM, LUKS, and mdraid.
2009-05-25 11:24:26 +02:00