Revision: 56312
          http://sourceforge.net/p/brlcad/code/56312
Author:   brlcad
Date:     2013-07-30 04:54:50 +0000 (Tue, 30 Jul 2013)
Log Message:
-----------
issue a warning if a frame image is not produced.  something probably went 
wrong up in rt land.

Modified Paths:
--------------
    brlcad/trunk/bench/run.sh

Modified: brlcad/trunk/bench/run.sh
===================================================================
--- brlcad/trunk/bench/run.sh   2013-07-29 20:29:29 UTC (rev 56311)
+++ brlcad/trunk/bench/run.sh   2013-07-30 04:54:50 UTC (rev 56312)
@@ -911,7 +911,7 @@
     fi
 
     # look for an image file
-    if test -f ${base}.pix; then
+    if test -f ${base}.pix ; then
        if test -f ${base}-$$.pix ; then
            # backup already exists, just delete obstacle
            rm -f ${base}.pix
@@ -922,7 +922,7 @@
     fi
 
     # look for a log file
-    if test -f ${base}.log; then
+    if test -f ${base}.log ; then
        if test -f ${base}-$$.log ; then
            # backup already exists, just delete obstacle
            rm -f ${base}.log
@@ -989,7 +989,13 @@
 EOF
            retval=$?
 
-           if test -f ${bench_testname}.pix.$bench_frame ; then mv -f 
${bench_testname}.pix.$bench_frame ${bench_testname}.pix ; fi
+           if test $bench_frame -ne 0 ; then
+               if test -f ${bench_testname}.pix.$bench_frame ; then
+                   mv -f ${bench_testname}.pix.$bench_frame 
${bench_testname}.pix
+               else
+                   $ECHO "WARNING: ${bench_testname}.pix.$bench_frame does not 
exist"
+               fi
+           fi
 
            # compute how long we took, rounding up to at least one
            # second to prevent division by zero.
@@ -1105,9 +1111,21 @@
        bench_hypersample="`expr \( \( $bench_hypersample + 1 \) / 2 \) - 1`"
     done
 
+    # clear out any profile output files
+    if test -f gmon.out ; then
+       mv -f gmon.out gmon.${bench_testname}.out
+    fi
+
     # the last run should be a relatively stable representative of the 
performance
 
-    if test -f gmon.out; then mv -f gmon.out gmon.${bench_testname}.out; fi
+    if ! test -f "${PIX}/${bench_testname}.pix" ; then
+       $ECHO "ERROR: reference image ${PIX}/${bench_testname}.pix not found"
+    fi
+    if ! test -f "${bench_testname}.pix" ; then
+       $ECHO "ERROR: computed image ${bench_testname}.pix disappeared?!"
+       ls -la *.pix*
+    fi
+    $VERBOSE_ECHO "DEBUG: $CMP $PIX/${bench_testname}.pix 
${bench_testname}.pix"
     cmp_result="`${CMP} ${PIX}/${bench_testname}.pix ${bench_testname}.pix 
2>&1`"
     ret=$?
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to