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

An experimental auto* re-wiring of libcheck-based testing (Duplicating Rietveld http://codereview.appspot.com/4833043/) #1

Closed
wants to merge 4 commits into from

Conversation

dotmjs
Copy link

@dotmjs dotmjs commented Aug 9, 2011

Goals:

  • make libcheck-based testing optional (disabled by default, until tests are not
    expected to fail), enabled by --with-check and requiring detection of libcheck
    installation.
  • all tests (libcheck or other) are executed only during the "make check" (and
    "make distcheck", etc) phase
  • if libcheck is not specified and installed, other tests (such as simple
    shell-based scripts) should still be able to run during "make check" phase

Implementation:

  • configure.ac is modified to require --with-check. If specified, pkg_config
    looks for libcheck. If found, AM-CONDITIONAL "CHECK" is set for use in
    tests/Makefile.am . "CHECK" replaces "TESTS", as "TESTS" is a reserved AM
    keyword for the testing phase(s).
  • tests/Makefile.am is modified to use the standard TESTS and check_* primaries
    and prefixes to enable testing. libcheck-based tests are enabled conditionally
    on "CHECK" from AC.

Matt Smith added 2 commits August 8, 2011 22:46
Goals:
* make libcheck-based testing optional (disabled by default, until tests are not
expected to fail), enabled by --with-check and requiring detection of libcheck
installation.
* all tests (libcheck or other) are executed only during the "make check" (and
"make distcheck", etc) phase
* if libcheck is not specified and installed, other tests (such as simple
shell-based scripts) should still be able to run during "make check" phase

Implementation:
* configure.ac is modified to require --with-check.  If specified, pkg_config
looks for libcheck.  If found, AM-CONDITIONAL "CHECK" is set for use in
tests/Makefile.am .  "CHECK" replaces "TESTS", as "TESTS" is a reserved AM
keyword for the testing phase(s).
* tests/Makefile.am is modified to use the standard TESTS and check_* primaries
and prefixes to enable testing.  libcheck-based tests are enabled conditionally
on "CHECK" from AC.
@pames
Copy link
Contributor

pames commented Aug 9, 2011

Quick (probably unrelated question), why is this diff massive and the one on Rietveld tiny? lack of distclean? or is it because these are 2 separate commits?

@dotmjs
Copy link
Author

dotmjs commented Aug 10, 2011

@pames SIze of diff is related to the autoreconf artifacts. 4067653 represents the "real" change, and is what is shown on RIetveld. 58af3be is the auto* output caused by the changes in 4067653, and are not for human consumption or review. I omitted these from Rietveld, as Rietveld is not directly connected to commits, but was not able to omit this from GH as both commits should be applied together to maintain buildability.

@dotmjs dotmjs closed this Aug 10, 2011
@dotmjs dotmjs reopened this Aug 10, 2011
@dotmjs
Copy link
Author

dotmjs commented Aug 10, 2011

Gah, hit wrong button and "closed" request. @smaresca -- can you confirm behavior is (functionally) same as you intended in original version?

@dotmjs
Copy link
Author

dotmjs commented Aug 10, 2011

@pames - do these modifications properly run your libcheck tests only when --with-check is supplied to ./configure, && when libcheck is installed, && only during issuance of "make check" ?

@pames
Copy link
Contributor

pames commented Aug 16, 2011

LGTM

Thanks for fixing the docs and that flag.

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.

2 participants