Revision: 73114
http://sourceforge.net/p/brlcad/code/73114
Author: brlcad
Date: 2019-05-21 19:08:12 +0000 (Tue, 21 May 2019)
Log Message:
-----------
add initial framing for an rtedge regression test to check what the manual page
says should be working
Modified Paths:
--------------
brlcad/trunk/regress/CMakeLists.txt
Added Paths:
-----------
brlcad/trunk/regress/rtedge.ref.pix.gz
brlcad/trunk/regress/rtedge.sh
brlcad/trunk/regress/tgms/havoc.g.gz
Modified: brlcad/trunk/regress/CMakeLists.txt
===================================================================
--- brlcad/trunk/regress/CMakeLists.txt 2019-05-21 19:04:10 UTC (rev 73113)
+++ brlcad/trunk/regress/CMakeLists.txt 2019-05-21 19:08:12 UTC (rev 73114)
@@ -77,6 +77,7 @@
Sh_Regression_Test(solids "rt;mged;pixdiff;asc2pix;gencolor")
Sh_Regression_Test(shaders "rt;mged;pixdiff;gencolor")
Sh_Regression_Test(spdi "rt;mged;pixdiff")
+ Sh_Regression_Test(rtedge "rt;rtedge;pixdiff;asc2g")
Sh_Regression_Test(iges "iges-g;g-iges;mged;asc2g")
Sh_Regression_Test(weight "rtweight;mged")
Sh_Regression_Test(gqa "gqa;mged")
@@ -147,6 +148,8 @@
nurbs/brep-3dm.tar.bz2
red.sh
repository.sh
+ rtedge.ref.pix.gz
+ rtedge.sh
shaders.eagleCAD-512x438.pix
shaders.ref.pix
shaders.sh
@@ -158,6 +161,7 @@
tgms/comgeom.cg
tgms/comgeom.tgt-1-v4-documented.cg
tgms/comgeom.tgt-1-v4.cg
+ tgms/havoc.g.gz
tgms/m35.asc.gz
tgms/m35.cg.gz
tgms/solids.dsp.dat
@@ -347,6 +351,10 @@
region_ids
regions
repository.log
+ rtedge.diff.pix
+ rtedge.log
+ rtedge.pix
+ rtedge.havoc.g
shaders.ebm.bw
shaders.ell_2.prj
shaders.g
Added: brlcad/trunk/regress/rtedge.ref.pix.gz
===================================================================
(Binary files differ)
Index: brlcad/trunk/regress/rtedge.ref.pix.gz
===================================================================
--- brlcad/trunk/regress/rtedge.ref.pix.gz 2019-05-21 19:04:10 UTC (rev
73113)
+++ brlcad/trunk/regress/rtedge.ref.pix.gz 2019-05-21 19:08:12 UTC (rev
73114)
Property changes on: brlcad/trunk/regress/rtedge.ref.pix.gz
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/x-gtar
\ No newline at end of property
Added: brlcad/trunk/regress/rtedge.sh
===================================================================
--- brlcad/trunk/regress/rtedge.sh (rev 0)
+++ brlcad/trunk/regress/rtedge.sh 2019-05-21 19:08:12 UTC (rev 73114)
@@ -0,0 +1,112 @@
+#!/bin/sh
+# R T E D G E . S H
+# BRL-CAD
+#
+# Copyright (c) 2019 United States Government as represented by
+# the U.S. Army Research Laboratory.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# 2. Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials provided
+# with the distribution.
+#
+# 3. The name of the author may not be used to endorse or promote
+# products derived from this software without specific prior written
+# permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
+# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+###
+
+# Ensure /bin/sh
+export PATH || (echo "This isn't sh."; sh $0 $*; kill $$)
+
+# source common library functionality, setting ARGS, NAME_OF_THIS,
+# PATH_TO_THIS, and THIS.
+PATH_TO_THIS="`dirname $0`"
+. "$PATH_TO_THIS/library.sh"
+
+if test "x$LOGFILE" = "x" ; then
+ LOGFILE=`pwd`/rtedge.log
+ rm -f $LOGFILE
+fi
+log "=== TESTING rtedge ==="
+
+RT="`ensearch rt`"
+if test ! -f "$RT" ; then
+ log "Unable to find rt, aborting"
+ exit 1
+fi
+
+RTEDGE="`ensearch rtedge`"
+if test ! -f "$RTEDGE" ; then
+ log "Unable to find rtedge, aborting"
+ exit 1
+fi
+
+PIXDIFF="`ensearch pixdiff`"
+if test ! -f "$PIXDIFF" ; then
+ log "Unable to find pixdiff, aborting"
+ exit 1
+fi
+
+GZIP="`which gzip`"
+if test ! -f "$GZIP" ; then
+ log "Unable to find gzip, aborting"
+ exit 1
+fi
+
+# make our database
+rm -f rtedge.havoc.g
+log "... running rtedge.havoc.g gzip decompress"
+$GZIP -d -c "$PATH_TO_THIS/tgms/havoc.g.gz" > rtedge.havoc.g
+
+# get our reference
+rm -f rtedge.ref.pix
+log "... running rtedge.ref.pix gzip decompress"
+$GZIP -d -c "$PATH_TO_THIS/rtedge.ref.pix.gz" > rtedge.ref.pix
+
+log "... rendering rtedge"
+rm -f rtedge.pix
+$RTEDGE -s 1024 -o rtedge.pix rtedge.havoc.g 'havoc' 2>> $LOGFILE
+
+log "... running $PIXDIFF rtedge.pix rtedge.ref.pix > rtedge.diff.pix"
+rm -f rtedge.diff.pix
+$PIXDIFF rtedge.pix rtedge.ref.pix > rtedge.diff.pix 2>> $LOGFILE
+NUMBER_WRONG=`tail -n1 $LOGFILE | tr , '\012' | awk '/many/ {print $1}'`
+log "rtedge.pix $NUMBER_WRONG off by many"
+
+
+if [ "X$NUMBER_WRONG" = "X0" ] ; then
+ log "-> rtedge.sh succeeded"
+else
+ log "-> rtedge.sh FAILED, see $LOGFILE"
+fi
+
+exit $NUMBER_WRONG
+
+# Local Variables:
+# mode: sh
+# tab-width: 8
+# sh-indentation: 4
+# sh-basic-offset: 4
+# indent-tabs-mode: t
+# End:
+# ex: shiftwidth=4 tabstop=8
Property changes on: brlcad/trunk/regress/rtedge.sh
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/x-sh
\ No newline at end of property
Added: brlcad/trunk/regress/tgms/havoc.g.gz
===================================================================
(Binary files differ)
Index: brlcad/trunk/regress/tgms/havoc.g.gz
===================================================================
--- brlcad/trunk/regress/tgms/havoc.g.gz 2019-05-21 19:04:10 UTC (rev
73113)
+++ brlcad/trunk/regress/tgms/havoc.g.gz 2019-05-21 19:08:12 UTC (rev
73114)
Property changes on: brlcad/trunk/regress/tgms/havoc.g.gz
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/x-gtar
\ No newline at end of property
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits