debian-forge/samples
Tom Gundersen fc838a8e20 stages: add test stage
Adds a new systemd unit to the image that will be pulled in by default,
run a given command, forward the output to a virtio serial port and
shutdown the machine.

We add a sample that uses this to verify that systemd conciders the
machine successfully booted. A simple way to run this test from the
commandline is to use
  `$ socat UNIX-LISTEN:qemu.sock -`
to listen for either `running` for success or `degraded` or
`maintenance` for failure.

The image should then be booted using something like
  `$ qemu-kvm -m 1024 -nographic -monitor none -serial none -chardev socket,path=qemu.sock,id=char0 -device virtio-serial -device virtserialport,chardev=char0,id=test0 -snapshot  base.qcow2`

Signed-off-by: Tom Gundersen <teg@jklm.no>
2019-08-29 10:25:15 +02:00
..
base-from-yum.json Pipeline: add support for a build pipeline 2019-08-02 00:57:28 +02:00
base-qcow2.json stages: add test stage 2019-08-29 10:25:15 +02:00
base-test.json stages: add test stage 2019-08-29 10:25:15 +02:00
base.json rename io.weldr to org.osbuild (#39) 2019-07-26 09:40:55 +02:00
build-from-yum.json travis: add a test for a yum-based pipeline 2019-07-31 01:34:31 +02:00
noop.json travis: add an osbuild test 2019-07-31 01:34:31 +02:00