Fix sanity failure on Mac OS X.

* src/sanity/Makefile.am: Pass TOPBUILD to includes.test, and split the
tests in different targets.
* src/sanity/includes.test: Add include directories to bin/'s headers.
This commit is contained in:
Alexandre Duret-Lutz 2012-09-17 08:15:23 +02:00
parent d9dc1f489d
commit 28e7d9aa4d
2 changed files with 25 additions and 6 deletions

View file

@ -30,7 +30,13 @@ for file in `find "$INCDIR" \( -name "${1-*}.hh" \
#include <$file>
#include <$file>
EOF
if $CXX $CPPFLAGS -DSKIP_DEPRECATED_WARNING $CXXFLAGS -c incltest.cc; then
case $file in
*bin/*) MOREFLAGS="-I $TOPBUILD/lib/ -I $INCDIR/../lib/ -I $TOPBUILD";;
*) MOREFLAGS=;;
esac
if $CXX $MOREFLAGS $CPPFLAGS -DSKIP_DEPRECATED_WARNING $CXXFLAGS -c incltest.cc; then
echo "PASS: $file"
else
echo "FAIL: $file"