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

Enable Autoconf's TAP driver. #169

Closed
wants to merge 4 commits into from
Closed

Enable Autoconf's TAP driver. #169

wants to merge 4 commits into from

Conversation

QuLogic
Copy link
Contributor

@QuLogic QuLogic commented Sep 19, 2013

Autoconf's TAP driver is more fully featured and is able to understand a tester (e.g., sass-spec's sass-spec.rb) that runs multiple tests. You get a more detailed output of your test results.

For example, see this Travis build (and summary) where each individual test is recognized by autoconf's make rules.

Depends on sass/sass-spec/pull/3.

With automake 1.12, it's possible to use a custom test driver, and so we
can use its TAP driver instead. When the sass-spec framework is set up
to output TAP, then the automake driver will understand all the subtests
and be able to count them individually.

Note, automake 1.11 does not support custom test drivers, so I added a
check in configure to see if the automake-produced Makefile.in includes
the TEST_LOG_DRIVER variable. This seems to be the only way to test for
the custom log driver ability. Once the automake requirements are bumped
to 1.12, this test should be removed (especially if some newer automake
stops defining this variable).
This requires installing a PPA to get it, but it's worth it to be able
to use the TAP driver with automake. Hopefully, Travis will upgrade to
the next LTS and get a newer automake within a year, anyway.

Also, I disabled testing of automake-1.12+clang, since that's basically
the same as automake-1.11+clang.
Only set CXX=g++ if it's not set otherwise. Normally, one would just say
to do "make CXX=clang++" but Travis sets an environment variable which
we need make to notice.
@nschonni
Copy link
Collaborator

nschonni commented Jan 4, 2014

I didn't see this and added the Clang + gcc to the Travis matrix. You may need to rebase.

@mgreter
Copy link
Contributor

mgreter commented Dec 11, 2014

@QuLogic I took your code and adapted it to the current build in #724!
If anything is missing, please comment on that PR and thanks for this PR!

@mgreter mgreter closed this Dec 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants