From 54df2afaa61c6a03cbb4a33c9b90fa572b6d07b8 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sat, 17 Dec 2016 21:28:53 -0800 Subject: Berkeley DB 4.8 with rust build script for linux. --- db-4.8.30/test/scr008/chk.pubdef | 189 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 189 insertions(+) create mode 100644 db-4.8.30/test/scr008/chk.pubdef (limited to 'db-4.8.30/test/scr008/chk.pubdef') diff --git a/db-4.8.30/test/scr008/chk.pubdef b/db-4.8.30/test/scr008/chk.pubdef new file mode 100644 index 0000000..0b74741 --- /dev/null +++ b/db-4.8.30/test/scr008/chk.pubdef @@ -0,0 +1,189 @@ +#!/bin/sh - +# +# Reconcile the list of public defines with the man pages and the Java files. + +d=../.. +docs=$d/docs_src + +[ -f $d/LICENSE ] || { + echo 'FAIL: cannot find source distribution directory.' + exit 1 +} + +p=$d/dist/pubdef.in + +exitv=0 + +# remove m4 doc tests, m4 has been removed for 4.8 +# TODO: add test for csharp const +#cat < /dev/null`; then +# : +# else +# echo "$f: $name is missing from $p" +# exitv=1 +# fi +#done + +#cat < /dev/null`; then +# [ "X$isdoc" != "XD" ] && { +# echo "$name should not appear in $f" +# exitv=1 +# } +# else +# [ "X$isdoc" = "XD" ] && { +# echo "$name does not appear in $f" +# exitv=1; +# } +# fi +#done + +cat < /dev/null`; then + : + else + echo "db.in/api_flags.in: $name is missing from $p" + exitv=1 + fi +done + +cat < /dev/null`; then + [ "X$isinc" != "XI" ] && { + echo "$name should not appear in db.in/api_flags.in" + exitv=1 + } + else + [ "X$isinc" = "XI" ] && { + echo "$name does not appear in db.in/api_flags.in" + exitv=1 + } + fi +done + +cat < /dev/null`; then + : + else + echo "$f: $name is missing from $p" + exitv=1 + fi +done + +cat < $t + +sed '/^#/d' $p | +while read name isdoc isinc isjava iscsharp; do + if `egrep -w "$name" $t > /dev/null`; then + [ "X$isjava" != "XJ" ] && { + echo "$name should not appear in the Java API" + exitv=1 + } + else + [ "X$isjava" = "XJ" ] && { + echo "$name does not appear in the Java API" + exitv=1 + } + fi +done + +cat < /dev/null`; then + [ "X$isjava" != "XN" ] && [ "X$isjava" != "XJ" ] && { + echo "$name should not appear in the Java native layer" + exitv=1 + } + else + [ "X$isjava" = "XN" ] && { + echo "$name does not appear in the Java native layer" + exitv=1 + } + fi +done + +exit $exitv -- cgit v1.2.3