]> git.evergreen-ils.org Git - Evergreen.git/commit
Make C unit tests more robust
authorDan Scott <dscott@laurentian.ca>
Wed, 21 Aug 2013 15:57:40 +0000 (11:57 -0400)
committerJason Etheridge <jason@esilibrary.com>
Wed, 21 Aug 2013 19:45:10 +0000 (15:45 -0400)
commite5a3ee75ff36d3ace32b6b432e4458432f9d578f
treee6659bbc688477c165284b8d8143a0eef6e712da
parent82d65eccd0c40ab9e832a6a196b11608aa9520a4
Make C unit tests more robust

Adding -I@abs_top_srcdir@/Open-ILS/include will pull in the source tree
header files, so that the C unit tests can run before Evergreen has been
installed (and thus will be a valid test of the source header files
instead of relying on the installed versions that might be different).

Build c-apps before recursing into c-apps/tests:
This ensures that the required libraries are built before the C unit
tests are built, thus preventing "make check" on a just-configured
source tree from failing due to missing dependencies.

Also, link to the source tree directories first rather than last, to
ensure that we pull in the correct source (if possible). And remove the
cargo-cultish $(TMP) linking/including.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/c-apps/Makefile.am
Open-ILS/src/c-apps/tests/Makefile.am