d2793ba564020e13f2bad47f9f2bba9dd532b479
steve
  Wed Nov 28 22:24:51 2012 -0800
Added a table counter and added the total table count to the summary section
diff --git src/utils/qa/checkTrackUiLinks.csh src/utils/qa/checkTrackUiLinks.csh
index 8061153..1814eab 100755
--- src/utils/qa/checkTrackUiLinks.csh
+++ src/utils/qa/checkTrackUiLinks.csh
@@ -7,30 +7,31 @@
 #  Robert Kuhn
 #
 #  checks all links on trackUi pages for a track
 #
 ################################
 
 set tableinput=""
 set tables=""
 set machine="hgwbeta"
 set rr="false"
 set baseUrl=""
 set target=""
 set hgsid=""
 set db=""
 set errorCount=0
+set totalCount=0
 
 if ( $#argv < 2 || $#argv > 3 ) then
   echo
   echo "  checks all links on trackUi pages for a track."
   echo
   echo "    usage:  database tablelist [machine]"
   echo '           tablelist may also be single table or "all"'
   echo "           machine defaults to hgwbeta"
   echo
   echo '    note: includes assembly description.html page if "all"'
   echo
   exit
 else
   set db=$argv[1]
   set tableinput=$argv[2]
@@ -111,30 +112,36 @@
   cat error | egrep -v "doesn't exist" > error2
   mv error2 error
   # slow it down if hitting the RR
   if ( "true" == $rr ) then
     sleep 2
   endif
   if ( `wc -w error | awk '{print $1}'` != 0 ) then
     if ( `cat error` != "403 from http://hgwbeta.cse.ucsc.edu/cgi-bin/" ) then
       echo
       echo $table
       echo "============="
       cat error
       @ errorCount = $errorCount + 1
     endif
   endif
+  @ totalCount = $totalCount + 1
   rm -f error
 end
 echo
 echo "Summary"
 echo "======="
+if ( $totalCount == 1 ) then
+  echo $totalCount "table checked"
+else
+  echo $totalCount "tables checked"
+endif
 if ( $errorCount > 0) then
   if ( $errorCount == 1) then
     echo $errorCount "table with error(s) found"
   else
     echo $errorCount "tables with errors found"
   endif
 else
   echo "No errors found!"
 endif
 echo
