texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/t/test_utils.pl (test): call convert_to_texi


From: Patrice Dumas
Subject: branch master updated: * tp/t/test_utils.pl (test): call convert_to_texinfo for plaintext test as it requires lessresources, no need to set up a Parser.
Date: Fri, 04 Oct 2024 06:51:36 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 3aebb35a45 * tp/t/test_utils.pl (test): call convert_to_texinfo for 
plaintext test as it requires lessresources, no need to set up a Parser.
3aebb35a45 is described below

commit 3aebb35a45ed8547d72fbe08a50a1df08428a9d0
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Aug 14 07:42:37 2024 +0200

    * tp/t/test_utils.pl (test): call convert_to_texinfo for plaintext
    test as it requires lessresources, no need to set up a Parser.
---
 ChangeLog          | 19 ++++++++++++-------
 tp/t/test_utils.pl | 31 ++++++++++++++++---------------
 2 files changed, 28 insertions(+), 22 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index dd8e4d5074..20f65fa605 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,7 @@
-2024-10-04  Patrice Dumas  <pertusus@free.fr>
-
-       * tp/maintain/regenerate_C_options_info.pl: remove directory from
-       generated include.
+2024-08-14  Patrice Dumas  <pertusus@free.fr>
 
-2024-10-04  Patrice Dumas  <pertusus@free.fr>
-
-       * tp/Texinfo/XS/teximakehtml.c: add missing include.
+       * tp/t/test_utils.pl (test): call convert_to_texinfo for plaintext
+       test as it requires lessresources, no need to set up a Parser.
 
 2024-08-13  Patrice Dumas  <pertusus@free.fr>
 
@@ -14,6 +10,15 @@
        for reset_converter and destroy_converter in texinfo.c and call them
        in teximakehtml.c.
 
+2024-10-04  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/maintain/regenerate_C_options_info.pl: remove directory from
+       generated include.
+
+2024-10-04  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/teximakehtml.c: add missing include.
+
 2024-08-13  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/converter.c (new_converter): rename
diff --git a/tp/t/test_utils.pl b/tp/t/test_utils.pl
index c494497d71..749cc3c6b1 100644
--- a/tp/t/test_utils.pl
+++ b/tp/t/test_utils.pl
@@ -1507,12 +1507,12 @@ sub test($$)
       goto END_OUT_FILE;
     }
 
-    my $converter_to_texinfo = Texinfo::Convert::PlainTexinfo->converter();
-    my $texi_string_result = $converter_to_texinfo->convert($document);
-    $converter_to_texinfo->reset_converter();
-    $converter_to_texinfo->destroy();
-    #my $texi_string_result
-    #    = Texinfo::Convert::Texinfo::convert_to_texinfo($tree);
+    #my $converter_to_texinfo = Texinfo::Convert::PlainTexinfo->converter();
+    #my $texi_string_result = $converter_to_texinfo->convert($document);
+    #$converter_to_texinfo->reset_converter();
+    #$converter_to_texinfo->destroy();
+    my $texi_string_result
+        = Texinfo::Convert::Texinfo::convert_to_texinfo($tree);
     $out_result .= "\n".'$result_texis{\''.$test_name.'\'} = \''
           .protect_perl_string($texi_string_result)."';\n\n";
     $out_result .= "\n".'$result_texts{\''.$test_name.'\'} = \''
@@ -1645,15 +1645,16 @@ sub test($$)
         $test_name.' indices sort');
     # NOTE either a PlainTexinfo converter or a direct call to
     # convert_to_texinfo can be used to test conversion to raw text,
-    # both for pure Perl and XS.
-    #my $texi_result = Texinfo::Convert::Texinfo::convert_to_texinfo($tree);
-    my $converter_to_texinfo = Texinfo::Convert::PlainTexinfo->converter();
-    my $texi_result;
-    if ($document) {
-      $texi_result = $converter_to_texinfo->convert($document);
-    }
-    $converter_to_texinfo->reset_converter();
-    $converter_to_texinfo->destroy();
+    # both for pure Perl and XS.  We use convert_to_texinfo as is should
+    # require less resources as there is no need to create a converter.
+    my $texi_result = Texinfo::Convert::Texinfo::convert_to_texinfo($tree);
+    #my $converter_to_texinfo = Texinfo::Convert::PlainTexinfo->converter();
+    #my $texi_result;
+    #if ($document) {
+    #  $texi_result = $converter_to_texinfo->convert($document);
+    #}
+    #$converter_to_texinfo->reset_converter();
+    #$converter_to_texinfo->destroy();
 
     is ($texi_result, $result_texis{$test_name}, $test_name.' texi');
     if ($todos{'text'}) {



reply via email to

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