]> git.proxmox.com Git - mirror_qemu.git/commit - tests/Makefile.include
test: replace gtester with a TAP driver
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 29 Nov 2018 17:45:31 +0000 (18:45 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 11 Jan 2019 14:46:52 +0000 (15:46 +0100)
commit9df43317b8252609599092b3074ffd8aa6eae933
treef0a2a3b97c05f5d8d680b8c65048da56ff9b22b7
parent4848cb3d9fd3f7a13a9ac5166b97a594dc67d2ab
test: replace gtester with a TAP driver

gtester is deprecated by upstream glib (see for example the announcement
at https://blog.gtk.org/2018/07/11/news-from-glib-2-58/) and it does
not support tests that call g_test_skip in some glib stable releases.

glib suggests instead using Automake's TAP support, which gtest itself
supports since version 2.38 (QEMU's minimum requirement is 2.40).
We do not support Automake, but we can use Automake's code to beautify
the TAP output.  I chose to use the Perl copy rather than the shell/awk
one, with some changes so that it can accept TAP through stdin, in order
to reuse Perl's TAP parsing package.  This also avoids duplicating the
parser between tap-driver.pl and tap-merge.pl.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1543513531-1151-3-git-send-email-pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rules.mak
scripts/gtester-cat [deleted file]
scripts/tap-driver.pl [new file with mode: 0755]
scripts/tap-merge.pl [new file with mode: 0755]
tests/Makefile.include
tests/docker/dockerfiles/centos7.docker
tests/docker/dockerfiles/fedora.docker