summaryrefslogtreecommitdiff
path: root/db-4.8.30/test/scr033
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2016-12-17 21:28:53 -0800
committerJesse Morgan <jesse@jesterpm.net>2016-12-17 21:28:53 -0800
commit54df2afaa61c6a03cbb4a33c9b90fa572b6d07b8 (patch)
tree18147b92b969d25ffbe61935fb63035cac820dd0 /db-4.8.30/test/scr033
Berkeley DB 4.8 with rust build script for linux.
Diffstat (limited to 'db-4.8.30/test/scr033')
-rw-r--r--db-4.8.30/test/scr033/chk.codegen43
1 files changed, 43 insertions, 0 deletions
diff --git a/db-4.8.30/test/scr033/chk.codegen b/db-4.8.30/test/scr033/chk.codegen
new file mode 100644
index 0000000..1deef0e
--- /dev/null
+++ b/db-4.8.30/test/scr033/chk.codegen
@@ -0,0 +1,43 @@
+#!/bin/sh -
+#
+# $Id$
+#
+# 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