Revision: 76733
          http://sourceforge.net/p/brlcad/code/76733
Author:   starseeker
Date:     2020-08-13 14:45:22 +0000 (Thu, 13 Aug 2020)
Log Message:
-----------
Nope, looks like run isn't general purpose

Modified Paths:
--------------
    brlcad/branches/RELEASE/regress/asc/asc.sh
    brlcad/branches/RELEASE/regress/bots/bots.sh
    brlcad/branches/RELEASE/regress/iges/iges.sh
    brlcad/branches/RELEASE/regress/lights/lights.sh
    brlcad/branches/RELEASE/regress/shaders/shaders.sh
    brlcad/branches/RELEASE/regress/solids/solids.sh
    brlcad/branches/RELEASE/regress/spdi/spdi.sh

Modified: brlcad/branches/RELEASE/regress/asc/asc.sh
===================================================================
--- brlcad/branches/RELEASE/regress/asc/asc.sh  2020-08-13 14:11:02 UTC (rev 
76732)
+++ brlcad/branches/RELEASE/regress/asc/asc.sh  2020-08-13 14:45:22 UTC (rev 
76733)
@@ -77,19 +77,21 @@
 ASC1="$1/db/moss.asc"
 G1="moss_v5.g"
 rm -f $G1
-run $A2G "$ASC1" $G1 2>&1 > $LOGFILE
+$A2G "$ASC1" $G1 2>&1 > $LOGFILE
 
 # Next convert v5 .g file to a v5 asc file
 log "convert v5 .g file to v5 asc format"
 ASC2="moss_v5.asc"
 rm -f $ASC2
-run $G2A $G1 $ASC2 2>&1 > $LOGFILE
+log "$G2A $G1 $ASC2"
+$G2A $G1 $ASC2 2>&1 > $LOGFILE
 
 # convert v5 .g file to a v5 .g file
 log "convert v5 asc file to v5 .g format (simple round trip)"
 GRT="moss_v5_basic.g"
 rm -f $GRT
-run $A2G "$ASC2" $GRT 2>&1 > $LOGFILE
+log "$A2G $ASC2 $GRT"
+$A2G "$ASC2" $GRT 2>&1 > $LOGFILE
 
 # the original v5 .g file and the round-tripped v5 .g file
 # should be identical (apparently except for the color table)
@@ -114,13 +116,15 @@
 log "convert v5 .g file to v4 .g format"
 G2="moss_v4.g"
 rm -f $G2
-run $DU -r $G1 $G2 2>&1 > $LOGFILE
+log "$DU -r $G1 $G2"
+$DU -r $G1 $G2 2>&1 > $LOGFILE
 
 # convert v4 .g file to a v4 asc file
 log "convert v4 .g file to v4 asc format"
 ASC3="moss_v4.asc"
 rm -f $ASC3
-run $G2A $G2 $ASC3 2>&1 > $LOGFILE
+log "$G2A $G2 $ASC3"
+$G2A $G2 $ASC3 2>&1 > $LOGFILE
 
 # convert v4 asc to v5 .g file
 
@@ -127,7 +131,8 @@
 log "convert v4 asc file to v5 g format"
 G3="moss_v4_asc_v5.g"
 rm -f $G3
-run $A2G $ASC3 $G3 2>&1 > $LOGFILE
+log "$A2G $ASC3 $G3"
+$A2G $ASC3 $G3 2>&1 > $LOGFILE
 
 # Next, do the downgrade/upgrade cycle on the .g file to test dbupgrade's
 # behavior on a binary v4 .g.
@@ -134,8 +139,10 @@
 G4="moss_v4_asc_v4.g"
 G5="moss_v4_asc_v4_v5.g"
 rm -f $G4 $G5
-run $DU -r $G3 $G4 2>&1 > $LOGFILE
-run $DU $G4 $G5 2>&1 > $LOGFILE
+log "$DU -r $G3 $G4"
+$DU -r $G3 $G4 2>&1 > $LOGFILE
+log "$DU $G4 $G5"
+$DU $G4 $G5 2>&1 > $LOGFILE
 
 # Rather surprisingly, all.g doesn't pass this comparison... not sure
 # why yet...
@@ -156,7 +163,8 @@
 # (Well, unchanged sans a region color table, region_id=-1 on all.g and
 # numerical differences anyway... Accomidate data changes with gdiff
 # filtering.)
-run $GD -v -t 0.0001 -F "! -name _GLOBAL ! -attr region_id=-1" $G1 $G5 2>&1 > 
$LOGFILE
+log "$GD -v -t 0.0001 -F \"! -name _GLOBAL ! -attr region_id=-1\" $G1 $G5"
+$GD -v -t 0.0001 -F "! -name _GLOBAL ! -attr region_id=-1" $G1 $G5 2>&1 > 
$LOGFILE
 STATUS=$?
 
 if [ $STATUS -gt 0 ] ; then
@@ -172,7 +180,8 @@
 # trip.
 #
 G2ASC1="$1/regress/asc/v4.g"
-run $G2A "$G2ASC1" v4.asc 2>&1 > $LOGFILE
+log "$G2A $G2ASC1 v4.asc"
+$G2A "$G2ASC1" v4.asc 2>&1 > $LOGFILE
 STATUS=$?
 # If something went wrong, bail.
 if [ $STATUS -gt 0 ] ; then

Modified: brlcad/branches/RELEASE/regress/bots/bots.sh
===================================================================
--- brlcad/branches/RELEASE/regress/bots/bots.sh        2020-08-13 14:11:02 UTC 
(rev 76732)
+++ brlcad/branches/RELEASE/regress/bots/bots.sh        2020-08-13 14:45:22 UTC 
(rev 76733)
@@ -160,7 +160,7 @@
 fi
 # compare
 rm -f bots.diff.pix
-run $PIXDIFF bots.sph.pix bots.rh.pix > bots.diff.pix 2>> bots.diff.log
+$PIXDIFF bots.sph.pix bots.rh.pix > bots.diff.pix 2>> bots.diff.log
 NUMBER_WRONG=`tail -n 1 bots.diff.log | tr , '\012' | awk '/many/ {print $1}'`
 if [ $NUMBER_WRONG -eq 0 ] ; then
     # we expect implicit and BoT sphere to be different

Modified: brlcad/branches/RELEASE/regress/iges/iges.sh
===================================================================
--- brlcad/branches/RELEASE/regress/iges/iges.sh        2020-08-13 14:11:02 UTC 
(rev 76732)
+++ brlcad/branches/RELEASE/regress/iges/iges.sh        2020-08-13 14:45:22 UTC 
(rev 76733)
@@ -107,7 +107,8 @@
 # test G -> IGES via stdout (can't use 'run')
 output="iges.export.stdout.iges"
 rm -f "$output"
-run $GIGES iges.g box.nmg > $output 2>> "$LOGFILE"
+log "... running $GIGES iges.g box.nmg > $output"
+$GIGES iges.g box.nmg > $output 2>> "$LOGFILE"
 if [ ! -f "$output" ] ; then
     log "ERROR: g-iges failed to create $output"
     log "-> iges.sh FAILED, see $LOGFILE"
@@ -255,7 +256,7 @@
 
 # make our starting database
 $GZIP -d -c "$PATH_TO_THIS/m35.asc.gz" > iges.m35.asc
-run $ASC2G iges.m35.asc iges.m35.g
+$ASC2G iges.m35.asc iges.m35.g
 
 # and test it (note it should work with the '-f' option, but fail
 # without any options)

Modified: brlcad/branches/RELEASE/regress/lights/lights.sh
===================================================================
--- brlcad/branches/RELEASE/regress/lights/lights.sh    2020-08-13 14:11:02 UTC 
(rev 76732)
+++ brlcad/branches/RELEASE/regress/lights/lights.sh    2020-08-13 14:45:22 UTC 
(rev 76733)
@@ -100,7 +100,7 @@
 
 log "... running $PIXDIFF lights.pix $PATH_TO_THIS/lights.ref.pix > 
lights.diff.pix"
 rm -f lights.diff.pix
-run $PIXDIFF lights.pix "$PATH_TO_THIS/lights.ref.pix" > lights.diff.pix 2>> 
$LOGFILE
+$PIXDIFF lights.pix "$PATH_TO_THIS/lights.ref.pix" > lights.diff.pix 2>> 
$LOGFILE
 
 NUMBER_WRONG=`tail -n1 "$LOGFILE" | tr , '\012' | awk '/many/ {print $1}'`
 log "lights.pix $NUMBER_WRONG off by many"

Modified: brlcad/branches/RELEASE/regress/shaders/shaders.sh
===================================================================
--- brlcad/branches/RELEASE/regress/shaders/shaders.sh  2020-08-13 14:11:02 UTC 
(rev 76732)
+++ brlcad/branches/RELEASE/regress/shaders/shaders.sh  2020-08-13 14:45:22 UTC 
(rev 76733)
@@ -73,8 +73,9 @@
 fi
 
 
+log "... running $GENCOLOR -r205 0 16 32 64 128 | dd of=shaders.ebm.bw bs=1024 
count=1"
 rm -f shaders.ebm.bw
-run $GENCOLOR -r205 0 16 32 64 128 | dd of=shaders.ebm.bw bs=1024 count=1 2>> 
$LOGFILE
+$GENCOLOR -r205 0 16 32 64 128 | dd of=shaders.ebm.bw bs=1024 count=1 2>> 
$LOGFILE
 
 
 EAGLECAD=shaders.eagleCAD-working.pix

Modified: brlcad/branches/RELEASE/regress/solids/solids.sh
===================================================================
--- brlcad/branches/RELEASE/regress/solids/solids.sh    2020-08-13 14:11:02 UTC 
(rev 76732)
+++ brlcad/branches/RELEASE/regress/solids/solids.sh    2020-08-13 14:45:22 UTC 
(rev 76733)
@@ -108,7 +108,7 @@
 fi
 
 rm -f solids.simple.pix.diff
-run $PIXDIFF solids.simple.rt.pix "$PATH_TO_THIS/solids.simple.ref.pix" > 
solids.simple.pix.diff 2>> $LOGFILE
+$PIXDIFF solids.simple.rt.pix "$PATH_TO_THIS/solids.simple.ref.pix" > 
solids.simple.pix.diff 2>> $LOGFILE
 
 log "... running tail -n1 $LOGFILE | tr , '\012' | awk '/many/ {print $1}'"
 NUMBER_WRONG=`tail -n1 "$LOGFILE" | tr , '\012' | awk '/many/ {print $1}'`
@@ -126,8 +126,9 @@
 # then check a complex TGM
 
 # Trim 1025 byte sequence down to exactly 1024.
+log "... running $GENCOLOR -r205 0 16 32 64 128 | dd of=solids.ebm.bw bs=1024 
count=1"
 rm -f solids.ebm.bw
-run $GENCOLOR -r205 0 16 32 64 128 | dd of=solids.ebm.bw bs=1024 count=1 > 
$LOGFILE 2>&1
+$GENCOLOR -r205 0 16 32 64 128 | dd of=solids.ebm.bw bs=1024 count=1 > 
$LOGFILE 2>&1
 if [ ! -f solids.ebm.bw ] ; then
     log "ERROR: Failed to create file 'solids.ebm.bw'"
     log "-> solids.sh FAILED, see $LOGFILE"
@@ -136,8 +137,9 @@
 fi
 
 # generate required pix file
+log "... running $A2P < $PATH_TO_THIS/solids.dsp.dat > solids.dsp.pix"
 rm -f solids.dsp.pix
-run $A2P < "$PATH_TO_THIS/solids.dsp.dat" > solids.dsp.pix
+$A2P < "$PATH_TO_THIS/solids.dsp.dat" > solids.dsp.pix
 if [ ! -f solids.dsp.pix ] ; then
     log "ERROR: Failed to generate file 'solids.dsp.pix'"
     log "-> solids.sh FAILED (test 2 of 2), see $LOGFILE"
@@ -174,8 +176,9 @@
        exit 1
 fi
 
+log "... running $PIXDIFF solids.rt.pix $PATH_TO_THIS/solids.ref.pix > 
solids.pix.diff"
 rm -f solids.pix.diff
-run $PIXDIFF solids.rt.pix "$PATH_TO_THIS/solids.ref.pix" > solids.pix.diff 2> 
$LOGFILE
+$PIXDIFF solids.rt.pix "$PATH_TO_THIS/solids.ref.pix" > solids.pix.diff 2> 
$LOGFILE
 
 tail -n1 "$LOGFILE" | tr , '\012' | awk '/many/ {print $0}'
 NUMBER_WRONG=`tail -n1 "$LOGFILE" | tr , '\012' | awk '/many/ {print $1}'`

Modified: brlcad/branches/RELEASE/regress/spdi/spdi.sh
===================================================================
--- brlcad/branches/RELEASE/regress/spdi/spdi.sh        2020-08-13 14:11:02 UTC 
(rev 76732)
+++ brlcad/branches/RELEASE/regress/spdi/spdi.sh        2020-08-13 14:45:22 UTC 
(rev 76733)
@@ -122,8 +122,9 @@
 
 EOF
 
+log "... running $PIXDIFF spdi.pix $PATH_TO_THIS/spdi.ref.pix > spdi.diff.pix"
 rm -f spdi.diff.pix
-run $PIXDIFF spdi.pix "$PATH_TO_THIS/spdi.ref.pix" > spdi.diff.pix 2>> $LOGFILE
+$PIXDIFF spdi.pix "$PATH_TO_THIS/spdi.ref.pix" > spdi.diff.pix 2>> $LOGFILE
 NUMBER_WRONG=`tail -n1 "$LOGFILE" | tr , '\012' | awk '/many/ {print $1}'`
 log "spdi.pix $NUMBER_WRONG off by many"
 

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

Reply via email to