Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gtest TAP output #11998

Merged

Conversation

allisonkarlitskaya
Copy link
Member

Switch to the soon-mandatory TAP output from GLib testcases.

This function was added before g_test_skip() was widely available and
produces TAP-non-compliant output.  Remove it and replace its use with
g_test_skip().
@allisonkarlitskaya allisonkarlitskaya added the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Jun 4, 2019
This wrapper used to convert the now-deprecated gtester format to TAP.

Versions of GLib from 2.38 have supported the --tap option, and the
upcoming 2.62 release will default to TAP.  For now, make sure we
continue to pass '--tap' to all testcases in order to ensure we get TAP
output even on older GLib versions.  We can remove that once we depend
on GLib > 2.62.

Closes cockpit-project#11998
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works with check and check-memory in a rawhide mock. Thanks!

@martinpitt martinpitt removed the no-test For doc/workflow changes, or experiments which don't need a full CI run, label Jun 4, 2019
@allisonkarlitskaya allisonkarlitskaya merged commit f254f58 into cockpit-project:master Jun 4, 2019
@allisonkarlitskaya allisonkarlitskaya deleted the gtester-use-tap branch June 4, 2019 18:57
gnomesysadmins pushed a commit to GNOME/gnome-keyring that referenced this pull request Sep 26, 2019
GLib 2.62+ outputs TAP by default, which breaks the tap-gtester
script's expectations. In older GLib versions since 2.38, --tap is an
opt-in to the TAP output mode, so use that.

This is essentially the same issue as
cockpit-project/cockpit#11998 (cockpit was the
source of the tap-gtester script), GNOME/gcr!19, and GNOME/libsecret!5.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug-Debian: https://bugs.debian.org/940157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants