Compile tests on `make check` invocation
Submitted by Marvin Schmidt
Assigned to Chris Wilson @ickle
Description
Created attachment 71511 use check_PROGRAMS to compile tests on make check
Currently tests are treated like normal programs and are therefore built during make
. This requires having all test dependencies installed to succeed. Among the test dependencies are packages which depend on cairo itself, causing a circular dependency.
To work around this one could compile cairo first without running tests, compile all test dependencies and then get back to running the tests. This can easily be made possible by using "check_PROGRAMS" for the tests instead of "noinst_PROGRAMS", resulting in the tests getting built when make check
is invoked
The attached patch does just that
Attachment 71511, "use check_PROGRAMS to compile tests on make check":
0001-build-Don-t-compile-tests-until-make-check.patch
Version: 1.12.8