Author: wyoung
Date: Wed Jul 11 23:28:29 2007
New Revision: 1667

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1667&view=rev
Log:
Added a bit of polish to dtest script, and created the first known-good
test sequence benchmark file.

Added:
    trunk/bmark.txt   (with props)
Modified:
    trunk/dtest

Added: trunk/bmark.txt
URL: http://svn.gna.org/viewcvs/mysqlpp/trunk/bmark.txt?rev=1667&view=auto
==============================================================================
Binary file - no diff available.

Propchange: trunk/bmark.txt
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: trunk/dtest
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/dtest?rev=1667&r1=1666&r2=1667&view=diff
==============================================================================
--- trunk/dtest (original)
+++ trunk/dtest Wed Jul 11 23:28:29 2007
@@ -1,15 +1,22 @@
 #!/bin/sh
 
-# Disable UTF-8 translation stuff
-export LANG=C
-
-echo -n "Running tests: "
+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
+# Yes, the repeated use of resetdb is intentional!  We're running it
+# after the examples that change the database in a way that will cause
+# subsequent examples to fail because data they need isn't present.
+for t in resetdb simple1 simple2 simple3 store_if for_each \
+       multiquery tquery resetdb usequery custom1 custom2 custom3 custom4 \
+       custom5 custom6
 do
        if [ -x $t ]
        then
+               if [ "$t" = "resetdb" ]
+               then
+                       echo
+                       echo -n "   "
+               fi
+       
                echo -n "$t "
                echo "---------------- BEGIN $t OUTPUT ----------------" >> $TMP
                if ! ./exrun $t $* >> $TMP
@@ -20,6 +27,7 @@
                        exit $?
                fi
                echo "================ END $t OUTPUT ================" >> $TMP
+               echo >> $TMP
        else
                echo "Failed to find test program $t. Is it built?"
                rm -f $TMP
@@ -33,11 +41,13 @@
 then
        if diff -u -w $BFILE $TMP
        then
+               echo
                echo 'No changes in test results.'
        fi
        rm -f $TMP
 else
        mv $TMP $BFILE
        chmod -w $BFILE
+       echo
        echo 'Benchmark file regenerated.'
 fi


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to