[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/t/test_utils.pl (test): rename $main_configu
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/t/test_utils.pl (test): rename $main_configuration* variables as $test_customization*. |
Date: |
Mon, 08 Apr 2024 17:38:35 -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 906e51b73a * tp/t/test_utils.pl (test): rename $main_configuration*
variables as $test_customization*.
906e51b73a is described below
commit 906e51b73a8fcb0f9136b2c368a0812b56360d77
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon Apr 8 23:37:52 2024 +0200
* tp/t/test_utils.pl (test): rename $main_configuration* variables as
$test_customization*.
---
ChangeLog | 5 +++++
tp/t/test_utils.pl | 22 +++++++++++-----------
2 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e2a9c73d89..af40132627 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-04-08 Patrice Dumas <pertusus@free.fr>
+
+ * tp/t/test_utils.pl (test): rename $main_configuration* variables as
+ $test_customization*.
+
2024-04-08 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Document.pm (%XS_overrides),
diff --git a/tp/t/test_utils.pl b/tp/t/test_utils.pl
index ee7e9c9a29..ade8fc394a 100644
--- a/tp/t/test_utils.pl
+++ b/tp/t/test_utils.pl
@@ -949,7 +949,7 @@ sub test($$)
# %Texinfo::Common::default_main_program_customization_options
# The main difference would be that
# CHECK_NORMAL_MENU_STRUCTURE is set to 1.
- my $main_configuration_defaults = {'FORMAT_MENU' => 'menu',
+ my $test_customization_defaults = {'FORMAT_MENU' => 'menu',
'CHECK_MISSING_MENU_ENTRY' => 1};
# get symbols in Texinfo::Config namespace before calling the init files
@@ -960,7 +960,7 @@ sub test($$)
Texinfo::Config::GNUT_reinitialize_init_files();
my $init_files_options
= Texinfo::Config::GNUT_initialize_customization('',
- $main_configuration_defaults, {});
+ $test_customization_defaults, {});
my $init_file_directories = [$srcdir.'init/', $srcdir.'t/init/'];
# the init file names should be binary strings. Since they
# are not encoded here, ascii file names should be used or they
@@ -984,7 +984,7 @@ sub test($$)
# Setup main configuration options at this point to remove
# structuring options from parser options.
- my $main_configuration_options = {};
+ my $test_customization_options = {};
# gather options for structuring.
foreach my $structuring_option ('CHECK_NORMAL_MENU_STRUCTURE',
'CHECK_MISSING_MENU_ENTRY',
@@ -992,7 +992,7 @@ sub test($$)
'USE_UNICODE_COLLATION',
'COLLATION_LANGUAGE') {
if (defined($parser_options->{$structuring_option})) {
- $main_configuration_options->{$structuring_option}
+ $test_customization_options->{$structuring_option}
= $parser_options->{$structuring_option};
delete $parser_options->{$structuring_option};
}
@@ -1063,30 +1063,30 @@ sub test($$)
# information.
foreach my $parser_and_structuring_option ('FORMAT_MENU', 'DEBUG') {
if (defined($parser_options->{$parser_and_structuring_option})) {
- $main_configuration_options->{$parser_and_structuring_option}
+ $test_customization_options->{$parser_and_structuring_option}
= $parser_options->{$parser_and_structuring_option};
}
}
# setup options from test specification (+DEBUG) as if they were
# command-line options, with high precedence.
- foreach my $option (keys(%$main_configuration_options)) {
+ foreach my $option (keys(%$test_customization_options)) {
Texinfo::Config::GNUT_set_from_cmdline($option,
- $main_configuration_options->{$option});
+ $test_customization_options->{$option});
}
- my $main_configuration = Texinfo::MainConfig::new();
+ my $test_customization = Texinfo::MainConfig::new();
- Texinfo::Common::set_output_encodings($main_configuration,
+ Texinfo::Common::set_output_encodings($test_customization,
$document);
if ($document_information->{'novalidate'}) {
- $main_configuration->set_conf('novalidate', 1);
+ $test_customization->set_conf('novalidate', 1);
}
# Now that all the configuration has been set, associate it with the
# document
- $document->register_options($main_configuration);
+ $document->register_options($test_customization);
if ($tree_transformations{'fill_gaps_in_sectioning'}) {
Texinfo::Transformations::fill_gaps_in_sectioning($tree);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/t/test_utils.pl (test): rename $main_configuration* variables as $test_customization*.,
Patrice Dumas <=
- Prev by Date:
[no subject]
- Next by Date:
branch master updated: * tp/Texinfo/Document.pm (%XS_overrides, register_document_options), tp/Texinfo/XS/main/DocumentXS.xs (register_document_options), tp/t/test_utils.pl (test), tp/texi2any.pl: rename register_options as register_document_options. Pass a hash of customization variables to register_document_options, call get_customization_options_hash in the calling code. Remove _XS_set_document_options.
- Previous by thread:
master updated (75dc63104b -> 5c39dc7c82)
- Next by thread:
branch master updated: * tp/Texinfo/Document.pm (%XS_overrides, register_document_options), tp/Texinfo/XS/main/DocumentXS.xs (register_document_options), tp/t/test_utils.pl (test), tp/texi2any.pl: rename register_options as register_document_options. Pass a hash of customization variables to register_document_options, call get_customization_options_hash in the calling code. Remove _XS_set_document_options.
- Index(es):