[Qemu-devel] [PATCH for-4.0 v2 0/2] test: replace gtester with a TAP driver

Paolo Bonzini posted 2 patches 1 week ago
Test checkpatch passed
Test docker-quick@centos7 passed
Test docker-clang@ubuntu passed
Test docker-mingw@fedora passed
Test asan passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20181206215026.7716-1-pbonzini@redhat.com
scripts/gtester-cat                          |  26 --
scripts/tap-driver.pl                        | 377 +++++++++++++++++++
scripts/tap-merge.pl                         | 110 ++++++
tests/Makefile.include                       |  54 +--
tests/cdrom-test.c                           |   2 +-
tests/docker/dockerfiles/centos7.docker      |   1 +
tests/docker/dockerfiles/debian-amd64.docker |   1 +
tests/docker/dockerfiles/debian-ports.docker |   1 +
tests/docker/dockerfiles/debian-sid.docker   |   1 +
tests/docker/dockerfiles/debian8.docker      |   1 +
tests/docker/dockerfiles/debian9.docker      |   1 +
tests/docker/dockerfiles/fedora.docker       |   1 +
tests/docker/dockerfiles/ubuntu.docker       |   1 +
tests/migration-test.c                       |   8 +-
14 files changed, 533 insertions(+), 52 deletions(-)
delete mode 100755 scripts/gtester-cat
create mode 100755 scripts/tap-driver.pl
create mode 100755 scripts/tap-merge.pl

[Qemu-devel] [PATCH for-4.0 v2 0/2] test: replace gtester with a TAP driver

Posted by Paolo Bonzini 1 week ago
gtester is deprecated by upstream glib[1] and it does not support tests
that call g_test_skip in some glib stable releases.

glib suggests instead using Automake's TAP support.  We do not support
Automake, but we can copy the code that beautifies the TAP output and
use it.  I chose to use the Perl copy rather than the shell/awk one
in order to reuse Perl's TAP parsing package.

Thanks,

Paolo

[1] https://blog.gtk.org/2018/07/11/news-from-glib-2-58/

Paolo Bonzini (2):
  test: execute g_test_run when tests are skipped
  test: replace gtester with a TAP driver

 scripts/gtester-cat                          |  26 --
 scripts/tap-driver.pl                        | 377 +++++++++++++++++++
 scripts/tap-merge.pl                         | 110 ++++++
 tests/Makefile.include                       |  54 +--
 tests/cdrom-test.c                           |   2 +-
 tests/docker/dockerfiles/centos7.docker      |   1 +
 tests/docker/dockerfiles/debian-amd64.docker |   1 +
 tests/docker/dockerfiles/debian-ports.docker |   1 +
 tests/docker/dockerfiles/debian-sid.docker   |   1 +
 tests/docker/dockerfiles/debian8.docker      |   1 +
 tests/docker/dockerfiles/debian9.docker      |   1 +
 tests/docker/dockerfiles/fedora.docker       |   1 +
 tests/docker/dockerfiles/ubuntu.docker       |   1 +
 tests/migration-test.c                       |   8 +-
 14 files changed, 533 insertions(+), 52 deletions(-)
 delete mode 100755 scripts/gtester-cat
 create mode 100755 scripts/tap-driver.pl
 create mode 100755 scripts/tap-merge.pl

-- 
2.19.2