texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

texinfo/tp/tests parser_tests.sh run_parser_all.sh


From: Patrice Dumas
Subject: texinfo/tp/tests parser_tests.sh run_parser_all.sh
Date: Mon, 30 Jan 2012 01:04:21 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        12/01/30 01:04:21

Modified files:
        tp/tests       : parser_tests.sh run_parser_all.sh 

Log message:
        Better diff directory name output.  Report from Karl.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/parser_tests.sh?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/tests/run_parser_all.sh?cvsroot=texinfo&r1=1.1&r2=1.2

Patches:
Index: parser_tests.sh
===================================================================
RCS file: /sources/texinfo/texinfo/tp/tests/parser_tests.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- parser_tests.sh     14 Jan 2012 18:57:29 -0000      1.1
+++ parser_tests.sh     30 Jan 2012 01:04:21 -0000      1.2
@@ -35,7 +35,7 @@
   dir=$1
   shift
   [ -d "$dir" ] || mkdir $dir
-  (export srcdir_test=$dir; cd "$dir" && ../"$srcdir"/"$command" $arg)
+  (export srcdir_test=$dir; cd "$dir" && ../"$srcdir"/"$command" -dir $dir 
$arg)
   result=$?
   echo "$dir: $result"
   [ $result != 0 ] && failed=1

Index: run_parser_all.sh
===================================================================
RCS file: /sources/texinfo/texinfo/tp/tests/run_parser_all.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- run_parser_all.sh   14 Jan 2012 18:57:29 -0000      1.1
+++ run_parser_all.sh   30 Jan 2012 01:04:21 -0000      1.2
@@ -28,17 +28,26 @@
 commands=':'
 
 clean=no
-if [ z"$1" = 'z-clean' ]; then
+copy=no
+mydir=
+
+while [ z"$1" = 'z-clean' -o z"$1" = 'z-copy'  -o z"$1" = 'z-dir' ]; do
+  if [ z"$1" = 'z-clean' ]; then
   clean=yes
   shift
-fi
+  fi
 
-copy=no
-if [ z"$1" = 'z-copy' ]; then
+  if [ z"$1" = 'z-copy' ]; then
   #[ -d "$res_dir" ] || mkdir "$res_dir"
   copy=yes
   shift
-fi
+  fi
+  if [ z"$1" = 'z-dir' ]; then
+    shift 
+    mydir=`echo "$1" | sed 's:/*$::'`'/'
+    shift
+  fi
+done
 
 no_latex2html=yes
 if which latex2html > /dev/null 2>&1; then
@@ -306,7 +315,7 @@
         diff -a -u --exclude=CVS --exclude='*.png' --exclude='*_l2h.css' -r 
"$res_dir_used" "${outdir}$dir" 2>>$logfile > "$diffs_dir/$diff_base.diff"
         dif_ret=$?
         if [ $dif_ret != 0 ]; then
-          echo "D: $diffs_dir/$diff_base.diff"
+          echo "D: ${mydir}$diffs_dir/$diff_base.diff"
           return_code=1
         else
           rm "$diffs_dir/$diff_base.diff"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]