Make C unit tests more robust user/dbs/fix_c_unit_tests
authorDan Scott <dscott@laurentian.ca>
Wed, 21 Aug 2013 15:57:40 +0000 (11:57 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 21 Aug 2013 16:00:50 +0000 (12:00 -0400)
commit285de25e7ccee2e42de43c4cef7f4f4702c25111
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>
Open-ILS/src/c-apps/Makefile.am
Open-ILS/src/c-apps/tests/Makefile.am