diff regression/regression-tests.bash @ 176:ac6e22c8a9cf

build separate libpst, libpst-libs, libpst-devel rpms. remove many functions from the interface by making them static.
author Carl Byington <carl@five-ten-sg.com>
date Wed, 08 Apr 2009 14:13:06 -0700
parents c1a2fd06ffe6
children 0a4f7ecd7452
line wrap: on
line diff
--- a/regression/regression-tests.bash	Tue Apr 07 13:48:25 2009 -0700
+++ b/regression/regression-tests.bash	Wed Apr 08 14:13:06 2009 -0700
@@ -1,6 +1,21 @@
 #!/bin/bash
 
 
+function consistency()
+{
+    # check source and xml documentation for consistency
+    (
+        cd ..   # back to top level of project
+        f1=/tmp/f1$$
+        f2=/tmp/f2$$
+        grep 'case 0x' src/libpst.c   | awk '{print $2}' | tr A-Z a-z | sed -e 's/://g'             | sort >$f1
+        grep '^0x'     xml/libpst.in  | awk '{print $1}' | (for i in {1..19}; do read a; done; cat) | sort >$f2
+        diff $f1 $f2
+        less $f1
+        rm -f $f1 $f2
+    )
+}
+
 function dodii()
 {
     n="$1"