Import BSDDB 4.7.25 (as of svn r89086)

This commit is contained in:
Zachary Ware
2017-09-04 13:40:25 -05:00
parent 4b29e0458f
commit 8f590873d0
4781 changed files with 2241032 additions and 6 deletions

43
test/scr033/chk.codegen Normal file
View File

@@ -0,0 +1,43 @@
#!/bin/sh -
#
# $Id: chk.codegen,v 1.4 2007/05/01 17:44:31 bostic Exp $
#
# Check to make sure that the db_codegen examples build and compile.
d=../../db_codegen
[ -d $d ] || {
echo 'FAIL: cannot find db_codegen source directory.'
exit 1
}
(cd .. && make db_codegen > /dev/null) || {
echo 'FAIL: unable to build db_codgen'
exit 1
}
for i in `find $d -name 'example[0-9]*'` ; do
echo " example $i"
rm -rf BUILD && mkdir BUILD && cd BUILD
if ../../db_codegen -a c -i ../$i; then
:
else
echo "FAIL: failed to load $i"
exit 1
fi
if cc -DBUILD_STANDALONE -pthread \
-Wall -Werror -I../.. application.c ../../libdb.a -o t; then
:
else
echo "FAIL: failed to compile $i"
exit 1
fi
if ./t ; then
:
else
echo "FAIL: failed to run $i"
exit 1
fi
cd ..
done
exit 0