[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[5236] run_parser_all.sh: Use defs from tp.
From: |
Patrice Dumas |
Subject: |
[5236] run_parser_all.sh: Use defs from tp. |
Date: |
Thu, 14 Mar 2013 02:02:15 +0000 |
Revision: 5236
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=5236
Author: pertusus
Date: 2013-03-14 02:01:39 +0000 (Thu, 14 Mar 2013)
Log Message:
-----------
run_parser_all.sh: Use defs from tp.
manage_test_archives.sh: accept a version number.
Modified Paths:
--------------
trunk/texi2html/test/manage_test_archives.sh
trunk/texi2html/test/run_parser_all.sh
Modified: trunk/texi2html/test/manage_test_archives.sh
===================================================================
--- trunk/texi2html/test/manage_test_archives.sh 2013-03-14 01:59:19 UTC
(rev 5235)
+++ trunk/texi2html/test/manage_test_archives.sh 2013-03-14 02:01:39 UTC
(rev 5236)
@@ -10,18 +10,24 @@
fi
shift;
+download_dir="download-mirror.savannah.gnu.org/releases/texinfo"
+
if [ z"$1" != 'z' ]; then
- user=$1
+ VERSION=$1
+ shift
+else
+ VERSION=`grep '^VERSION = ' ../../Makefile | sed 's/^VERSION = *//'`
fi
-download_dir="download-mirror.savannah.gnu.org/releases/texinfo"
-
-VERSION=`grep '^VERSION = ' ../../Makefile | sed 's/^VERSION = *//'`
if [ z"$VERSION" = 'z' ]; then
echo "Cannot find version"
exit 1
fi
+if [ z"$1" != 'z' ]; then
+ user=$1
+fi
+
tp_tests_name=tp_tests_results-$VERSION
texi2html_tests_name=t2h_tests_results
#manuals=t2h_tests_big_manuals
@@ -44,6 +50,8 @@
for file in $texi2html_tests_name $tp_tests_name; do
if [ -f $download_dir/$file.tar.gz ]; then
cp -a $download_dir/$file.tar.gz ..
+ else
+ echo "WARNING: missing $download_dir/$file.tar.gz" 1>&2
fi
done
elif [ $command = 'clean' ]; then
@@ -56,10 +64,23 @@
for file in $texi2html_tests_name $tp_tests_name; do
if [ -f $file.tar.gz ]; then
tar x -z -f $file.tar.gz
+ else
+ echo "WARNING: missing $file.tar.gz" 1>&2
fi
done
#tar x -z -f test/$manuals.tar.gz
+
)
+ for dir in */; do
+ if [ -f "$dir/htmlxref.cnf-texinfo" ]; then
+ mkdir -p $dir/.texinfo/
+ cp -p "$dir/htmlxref.cnf-texinfo" $dir/.texinfo/
+ fi
+ if [ -f "$dir/htmlxref.cnf-ref" ]; then
+ cp -p "$dir/htmlxref.cnf-ref" $dir/htmlxref.cnf
+ fi
+ done
+ cp -p sectioning/renamednodes.cnf-ref
sectioning/equivalent_nodes-noderename.cnf
elif [ $command = 'upload' ]; then
mkdir -p ../upload
#cp -a $texi2html_tests_name.tar.gz upload
Modified: trunk/texi2html/test/run_parser_all.sh
===================================================================
--- trunk/texi2html/test/run_parser_all.sh 2013-03-14 01:59:19 UTC (rev
5235)
+++ trunk/texi2html/test/run_parser_all.sh 2013-03-14 02:01:39 UTC (rev
5236)
@@ -133,8 +133,17 @@
exit 0
fi
-. ../path_separator || exit 1
+for command_location_dir in "$testdir/$srcdir_test/../../../tp" ../../../tp; do
+ if test -f "$command_location_dir/defs"; then
+ . "$command_location_dir/defs"
+ fi
+done
+if test "z$PATH_SEPARATOR" = 'z'; then
+ echo "No defs file found for PATH_SEPARATOR definition" 1>&2
+ exit 1
+fi
+
[ -d "$diffs_dir" ] || mkdir "$diffs_dir"
for command_dir in $commands; do
dir_suffix=`echo $command_dir | cut -d':' -f2`
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [5236] run_parser_all.sh: Use defs from tp.,
Patrice Dumas <=