tests/image: add booting tests

This commit makes the osbuild-image-tests binary doing the same set of tests
like the old test/run script.

Changes from test/run:
- qemu/nspawn are now killed gracefully. Firstly, SIGTERM is sent.
  If the process doesn't exit till the timeout, SIGKILL is sent.
  I changed this because nspawn leaves some artifacts behind when killed
  by SIGKILL.
- the unsharing of network namespace now works differently because of
  systemd issue #15079
This commit is contained in:
Ondřej Budai 2020-03-13 14:08:23 +01:00 committed by Tom Gundersen
parent f060c8d795
commit b4a7bc6467
7 changed files with 538 additions and 9 deletions

2
go.mod
View file

@ -16,5 +16,5 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/stretchr/testify v1.4.0
golang.org/x/net v0.0.0-20200202094626-16171245cfb2 // indirect
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4 // indirect
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4
)