Author: wyoung
Date: Wed Jul 11 23:02:24 2007
New Revision: 1662
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1662&view=rev
Log:
First cut at a script to run most of the example programs (excepting
only those that aren't suited for this) automatically, saving their
outputs to a file, then comparing that to a known-good run. Any
deviations indiciate probable regressions.
Added:
trunk/dtest (with props)
Added: trunk/dtest
URL: http://svn.gna.org/viewcvs/mysqlpp/trunk/dtest?rev=1662&view=auto
==============================================================================
--- trunk/dtest (added)
+++ trunk/dtest Wed Jul 11 23:02:24 2007
@@ -1,0 +1,43 @@
+#!/bin/sh
+
+# Disable UTF-8 translation stuff
+export LANG=C
+
+echo -n "Running tests: "
+TMP=`mktemp bmXXXXXX`
+for t in resetdb simple1 simple2 simple3 multiquery tquery usequery \
+ custom1 custom2 custom3 custom4 custom5 custom6 store_if for_each
+do
+ if [ -x $t ]
+ then
+ echo -n "$t "
+ echo "---------------- BEGIN $t OUTPUT ----------------" >> $TMP
+ if ! ./exrun $t $* >> $TMP
+ then
+ echo
+ echo 'TESTING ABORTED.'
+ rm -f $TMP
+ exit $?
+ fi
+ echo "================ END $t OUTPUT ================" >> $TMP
+ else
+ echo "Failed to find test program $t. Is it built?"
+ rm -f $TMP
+ exit 101
+ fi
+done
+echo
+
+BFILE=bmark.txt
+if [ -f $BFILE ]
+then
+ if diff -u -w $BFILE $TMP
+ then
+ echo 'No changes in test results.'
+ fi
+ rm -f $TMP
+else
+ mv $TMP $BFILE
+ chmod -w $BFILE
+ echo 'Benchmark file regenerated.'
+fi
Propchange: trunk/dtest
------------------------------------------------------------------------------
svn:executable = *
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits