[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Sun, 14 Jan 2024 18:23:52 -0500 (EST) |
branch: master
commit 55b23847aaab92dd9cc921eda1c9be7e688cbbdc
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon Jan 15 00:19:28 2024 +0100
* contrib/mass_test/check_perlVSC.sh: do only the manual given in
argument if an argument is given.
---
ChangeLog | 5 +++++
contrib/mass_test/check_perlVSC.sh | 24 +++++++++++++++++-------
2 files changed, 22 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a9a60a206b..a84729c96e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-01-14 Patrice Dumas <pertusus@free.fr>
+
+ * contrib/mass_test/check_perlVSC.sh: do only the manual given in
+ argument if an argument is given.
+
2024-01-14 Patrice Dumas <pertusus@free.fr>
* contrib/mass_test/*.sh: add copyright notices.
diff --git a/contrib/mass_test/check_perlVSC.sh
b/contrib/mass_test/check_perlVSC.sh
index e7de586543..affedf70b3 100755
--- a/contrib/mass_test/check_perlVSC.sh
+++ b/contrib/mass_test/check_perlVSC.sh
@@ -19,8 +19,15 @@
dir=compare_C_HTML
mkdir -p $dir
-rm -rf result_check_perlVSC
-mkdir result_check_perlVSC
+one_test=no
+if test -n "$1"; then
+ one_test=yes
+ the_test=$1
+else
+ rm -rf result_check_perlVSC
+fi
+
+mkdir -p result_check_perlVSC
TEXINFO_XS_CONVERT=1
export TEXINFO_XS_CONVERT
@@ -33,9 +40,14 @@ for manual_dir in manuals/*/ ; do
for file in $manual_dir/*.texi* ; do
if grep -q -s '^ *@node \+[tT][Oo][Pp] *\(,.*\)\?$' $file; then
one_manual_found=yes
- echo "doing $file"
bfile_ext=`basename $file`
bfile=`echo $bfile_ext | sed 's/\.texi.*$//'`
+ # if we're only doing one test, skip it unless this is the one.
+ if test $one_test = 'yes' && test "z$bfile" != "z$the_test" ; then
+ continue
+ fi
+
+ echo "doing $file"
rm -rf $dir/$bfile/
mkdir $dir/$bfile/
err_file=$dir/$bfile/${bfile}-html_nodes.err
@@ -46,10 +58,8 @@ for manual_dir in manuals/*/ ; do
diff_file=result_check_perlVSC/${manual_name}-${bfile}.diff
diff -u -r perl_HTML_refs/$bfile/ $dir/$bfile/ > $diff_file
- if test -s $diff_file ; then
- :
- else
- rm -f $diff_file
+ if test -s $diff_file ; then :
+ else rm -f $diff_file
fi
fi
done