Bug 3776 - 'make check' should skip X-requiring tests if X not available (currently fails)
Summary: 'make check' should skip X-requiring tests if X not available (currently fails)
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: xlib backend (show other bugs)
Version: 0.9.3
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-15 02:07 UTC by Luis Villa
Modified: 2015-03-24 22:42 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Luis Villa 2005-07-15 02:07:37 UTC
I'm trying to build the GNOME stack in a tinderbox with 'make check', but it
fails since no X server is present. Would it be possible to make those tests
skip instead of fail if no X server is available?
Comment 1 Carl Worth 2005-07-15 05:30:30 UTC
I've fixed this so that backends that are untestable (for whatever reason)
print a result of UNTESTED rather than FAIL. Then, the overall test result
is SUCCESS if and only if there is at least one backend that is tested and
all tested backends return SUCCESS.

This should do the trick for the compiled-with-xlib-support-but-testing-
without-an-X-server case.

One downside is that "make check" will run a bit slower since it will wait
for XOpenDisplay to timeout on each test. Hopefully that's not a critical
concern on a tinderbox machine.

Otherwise, we could reduce the delay to a single timeout if we ignored the
builtin "make check" loop and wrote our own program to loop over all tests.
(I've been thinking of doing this independently to easily allow all tests to
be run under valgrind.)
Comment 2 Luis Villa 2005-07-15 05:34:59 UTC
Thanks a bunch, Carl. At least here, the timeout seems ~0 anyway- probably not
worth rewriting.
Comment 3 Carl Worth 2005-08-22 17:14:11 UTC
Move bugs against "cvs" version to "0.9.3" so we can remove the "cvs" version.
Comment 4 Larry Baker 2015-03-24 22:42:23 UTC
This is still a bug in release 1.14.2, at least on Mac OS X.

$ ./configure --disable-xlib --disable-ft --enable-png --disable-dependency-tracking

$ make
$ make check
<snip>
Making check in .
make  any2ppm   
make[5]: `any2ppm' is up to date.
make  check-TESTS
<snip>

LOTS OF "X11 quit unexpectedly." dialogs pop up here.  And, yes, the tests take FOREVER.

<snip>
FAIL: cairo-test-suite
make  all-recursive
Making all in pdiff
make  all-am
make[10]: Nothing to be done for `all-am'.
Making all in .
make[9]: Nothing to be done for `all-am'.
============================================================================
Testsuite summary for cairo 1.14.2
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See test/test-suite.log
Please report to http://bugs.freedesktop.org/enter_bug.cgi?product=cairo
============================================================================
make[6]: *** [test-suite.log] Error 1
make[5]: *** [check-TESTS] Error 2
make[4]: *** [check-am] Error 2
make[3]: *** [check-recursive] Error 1
make[2]: *** [check] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.