* src/sanity/Makefile.am, src/sanity/includes.test: New files.

* src/Makefile.am (SUBDIRS): Add sanity.
* configure.ac: Output src/sanity/Makefile.in.
This commit is contained in:
Alexandre Duret-Lutz 2004-04-23 12:27:40 +00:00
parent 7cf55415a7
commit 007143e9e3
5 changed files with 78 additions and 5 deletions

25
src/sanity/includes.test Executable file
View file

@ -0,0 +1,25 @@
#! /bin/sh
# Check that each header is self contained and generates no warning.
set -e
rm -f failures
for file in `find "$INCDIR" -name "${1-*}.hh" -type f -print |
sed "s,$INCDIR/,,g"`; do
echo "#include <$file>" > incltest.cc
if $CXX $CPPFLAGS $CXXFLAGS -c incltest.cc; then
echo "PASS: $file"
else
echo "FAIL: $file"
echo " $file" >> failures
fi
done
if test -f failures; then
echo "Failed files:"
cat failures
rm failures
exit 1;
fi