[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Wed, 4 Sep 2024 10:43:52 -0400 (EDT) |
branch: master
commit b56129f62f54043b1530e82d5e35509733646921
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Sep 4 16:43:52 2024 +0200
* tp/maintain/all_tests.sh: use $srcdir, adapt for out of source
build.
---
ChangeLog | 5 +++++
tp/maintain/all_tests.sh | 26 +++++++++++++++-----------
tp/maintain/check_epubcheck_texi_t.sh | 2 +-
3 files changed, 21 insertions(+), 12 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ffa006b0f4..3cc27bfd45 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-09-04 Patrice Dumas <pertusus@free.fr>
+
+ * tp/maintain/all_tests.sh: use $srcdir, adapt for out of source
+ build.
+
2024-09-04 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/options_data.txt (EPUB_STRICT): add.
diff --git a/tp/maintain/all_tests.sh b/tp/maintain/all_tests.sh
index 73b49b5035..9c73310d89 100755
--- a/tp/maintain/all_tests.sh
+++ b/tp/maintain/all_tests.sh
@@ -13,6 +13,10 @@
#
# Originally written by Patrice Dumas.
+if [ z"$srcdir" = 'z' ]; then
+ srcdir='.'
+fi
+
command=$1
if [ $# -gt 0 ]; then
shift
@@ -31,20 +35,20 @@ if [ "$command" = 'clean' ]; then
rm -rf t/results/*/*/out_*/
elif [ "$command" = 'diff' ]; then
if [ z"$test_name" = 'z' ]; then
- for result in t/results/*/*.pl; do
- diff -a -U 3 $result $result.new
+ for result in `cd $srcdir && echo t/results/*/*.pl`; do
+ diff -a -U 3 ${srcdir}/$result $result.new
done
- for result in t/results/*/*/res*/; do
+ for result in `cd $srcdir && echo t/results/*/*/res*/`; do
out=`echo $result | sed 's;res\([^/]*/\)$;out\1;'`
- diff -a -u -r $result $out
+ diff -a -u -r ${srcdir}/$result $out
done
else
- for result in t/results/$test_name/*.pl; do
- diff -a -u $result $result.new
+ for result in `cd $srcdir && echo t/results/$test_name/*.pl`; do
+ diff -a -u ${srcdir}/$result $result.new
done
- for result in t/results/$test_name/*/res*/; do
+ for result in `cd $srcdir && echo t/results/$test_name/*/res*/`; do
out=`echo $result | sed 's;res\([^/]*/\)$;out\1;'`
- diff -a -u -r $result $out
+ diff -a -u -r ${srcdir}/$result $out
done
fi
else
@@ -52,17 +56,17 @@ else
. ./defs || exit 1
if [ "$command" = 'generate' ]; then
- for file in $srcdir/t/*.t; do
+ for file in ${srcdir}/t/*.t; do
set -e
echo "$file" >&2
$PERL -w $file -g
done
elif [ "$command" = 'output' ]; then
- for file in t/*.t; do
+ for file in ${srcdir}/t/*.t; do
$PERL -w $file -o
done
elif [ "$command" = 'texis' ]; then
- for file in t/*.t; do
+ for file in ${srcdir}/t/*.t; do
echo "$file"
$PERL -w $file -c
done
diff --git a/tp/maintain/check_epubcheck_texi_t.sh
b/tp/maintain/check_epubcheck_texi_t.sh
index cdaf289c0f..9d2d3c51f8 100755
--- a/tp/maintain/check_epubcheck_texi_t.sh
+++ b/tp/maintain/check_epubcheck_texi_t.sh
@@ -27,7 +27,7 @@ LANGUAGE=en; export LANGUAGE
mdir=check_epubcheck
mkdir -p $mdir
-set -x
+#set -x
echo "generate t directory Texinfo files"
one_directory=no