support/testing: use virtio-rng-pci to test syslog-ng
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Tue, 30 Jul 2019 23:13:21 +0000 (20:13 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 1 Aug 2019 18:31:54 +0000 (20:31 +0200)
commit450863097f588fe85d23e83cff14a75f1740d8fa
tree1c0094a3e423d7a8f266866fe3295ad17b6eed01
parentd63e171bfcbbb9204168849ec5181ee70f4dc79b
support/testing: use virtio-rng-pci to test syslog-ng

Recent versions of syslog-ng need some entropy on startup.
So use VirtIORNG to provide it. In order to accomplish this:
 - build the kernel containing the driver;
 - pass '-device virtio-rng-pci' to qemu.

Use the same kernel version and kernel config as qemu_arm_versatile.
It already has PCI enabled but it does not have HW_RANDOM_VIRTIO, so add
a defconfig fragment to enable the drivers.

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/259856394

At the same time, fix a typo (missing '#') that resulted in the
generation of root.tar. This file is not used in the test.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/testing/conf/syslog-ng-kernel-fragment.config [new file with mode: 0644]
support/testing/tests/package/test_syslog_ng.py