texinfo-commits
[Top][All Lists]
Advanced

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

[8053] use lib '.'


From: gavinsmith0123
Subject: [8053] use lib '.'
Date: Mon, 13 Aug 2018 06:51:38 -0400 (EDT)

Revision: 8053
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8053
Author:   gavin
Date:     2018-08-13 06:51:37 -0400 (Mon, 13 Aug 2018)
Log Message:
-----------
use lib '.'

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tp/t/01use.t
    trunk/tp/t/02coverage.t
    trunk/tp/t/03coverage_braces.t
    trunk/tp/t/04verb.t
    trunk/tp/t/05paragraph.t
    trunk/tp/t/06columnfractions.t
    trunk/tp/t/08misc_commands.t
    trunk/tp/t/09indices.t
    trunk/tp/t/10menu.t
    trunk/tp/t/16raw.t
    trunk/tp/t/181quotation.t
    trunk/tp/t/18itemize.t
    trunk/tp/t/19def.t
    trunk/tp/t/20preformatted.t
    trunk/tp/t/21multitable.t
    trunk/tp/t/22xtable.t
    trunk/tp/t/25regions.t
    trunk/tp/t/27float.t
    trunk/tp/t/28heading.t
    trunk/tp/t/30sectioning.t
    trunk/tp/t/50value.t
    trunk/tp/t/55conditionals.t
    trunk/tp/t/57invalid_nestings.t
    trunk/tp/t/58alias.t
    trunk/tp/t/60macro.t
    trunk/tp/t/70value_and_macro.t
    trunk/tp/t/80include.t
    trunk/tp/t/accents.t
    trunk/tp/t/automatic_menus.t
    trunk/tp/t/automatic_nodes.t
    trunk/tp/t/collect_spaces.t
    trunk/tp/t/converters_tests.t
    trunk/tp/t/do_master_menu.t
    trunk/tp/t/docbook_tests.t
    trunk/tp/t/fix_texinfo.t
    trunk/tp/t/html_tests.t
    trunk/tp/t/index_before_item.t
    trunk/tp/t/info_tests.t
    trunk/tp/t/languages.t
    trunk/tp/t/nodenormalization.t
    trunk/tp/t/paragraph.t
    trunk/tp/t/plaintext_tests.t
    trunk/tp/t/protect_character_in_texinfo.t
    trunk/tp/t/reference_to_text_in_tree.t
    trunk/tp/t/test_brace_count.t
    trunk/tp/t/test_fill_gaps_in_sectioning.t
    trunk/tp/t/test_is_content_empty.t
    trunk/tp/t/test_protect_hashchar_at_line_beginning.t
    trunk/tp/t/test_sort.t
    trunk/tp/t/test_tree_copy.t
    trunk/tp/t/xml_tests.t

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/ChangeLog     2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,34 @@
 2018-08-13  Gavin Smith  <address@hidden>
 
+       * tp/t/01use.t, tp/t/02coverage.t, tp/t/03coverage_braces.t, 
+       tp/t/04verb.t, tp/t/05paragraph.t,
+       tp/t/06columnfractions.t, tp/t/08misc_commands.t, tp/t/09indices.t,
+       tp/t/10menu.t, tp/t/16raw.t, tp/t/181quotation.t, tp/t/18itemize.t,
+       tp/t/19def.t, tp/t/20preformatted.t, tp/t/21multitable.t,
+       tp/t/22xtable.t, tp/t/25regions.t, tp/t/27float.t, tp/t/28heading.t,
+       tp/t/30sectioning.t, tp/t/50value.t, tp/t/55conditionals.t,
+       tp/t/57invalid_nestings.t, tp/t/58alias.t, tp/t/60macro.t,
+       tp/t/70value_and_macro.t, tp/t/80include.t, tp/t/accents.t,
+       tp/t/automatic_menus.t, tp/t/automatic_nodes.t, tp/t/collect_spaces.t,
+       tp/t/converters_tests.t, tp/t/do_master_menu.t, tp/t/docbook_tests.t,
+       tp/t/fix_texinfo.t, tp/t/html_tests.t, tp/t/index_before_item.t,
+       tp/t/info_tests.t, tp/t/languages.t, tp/t/nodenormalization.t,
+       tp/t/paragraph.t, tp/t/plaintext_tests.t,
+       tp/t/protect_character_in_texinfo.t, tp/t/reference_to_text_in_tree.t,
+       tp/t/test_brace_count.t, tp/t/test_fill_gaps_in_sectioning.t,
+       tp/t/test_is_content_empty.t,
+       tp/t/test_protect_hashchar_at_line_beginning.t, tp/t/test_sort.t,
+       tp/t/test_tree_copy.t, tp/t/xml_tests.t:
+       Add "use lib '.'" to add current working directory to @INC, the 
+       Perl module include path.  This directory is not present in @INC 
+       in recent versions of Perl, which makes running tests from the 
+       command-line (like "perl -w t/02coverage.t") difficult.  Require 
+       Texinfo::ModulePath to add all the other required directories to 
+       @INC.  As tp/Texinfo/ModulePath.pm is generated in the builddir, 
+       this should work for out-of-source builds.
+
+2018-08-13  Gavin Smith  <address@hidden>
+
        * tp/t/01use.t: Use Texinfo::ModulePath.
 
 2018-08-12  Gavin Smith  <address@hidden>

Modified: trunk/tp/t/01use.t
===================================================================
--- trunk/tp/t/01use.t  2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/01use.t  2018-08-13 10:51:37 UTC (rev 8053)
@@ -6,12 +6,16 @@
 use strict;
 
 use Test::More;
-use File::Spec;
-BEGIN { plan tests => 2;
-  require Texinfo::ModulePath;
+
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
 }
 use Texinfo::Convert::Texinfo;
+
+plan tests => 2;
+
 ok(1, "modules loading"); # If we made it this far, we're ok.
 
 #########################

Modified: trunk/tp/t/02coverage.t
===================================================================
--- trunk/tp/t/02coverage.t     2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/02coverage.t     2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,8 +1,11 @@
 # $Id$
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/03coverage_braces.t
===================================================================
--- trunk/tp/t/03coverage_braces.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/03coverage_braces.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/04verb.t
===================================================================
--- trunk/tp/t/04verb.t 2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/04verb.t 2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/05paragraph.t
===================================================================
--- trunk/tp/t/05paragraph.t    2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/05paragraph.t    2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,8 +1,11 @@
 # $Id$
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/06columnfractions.t
===================================================================
--- trunk/tp/t/06columnfractions.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/06columnfractions.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,8 +1,11 @@
 use Test::More;
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/08misc_commands.t
===================================================================
--- trunk/tp/t/08misc_commands.t        2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/08misc_commands.t        2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/09indices.t
===================================================================
--- trunk/tp/t/09indices.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/09indices.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/10menu.t
===================================================================
--- trunk/tp/t/10menu.t 2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/10menu.t 2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/16raw.t
===================================================================
--- trunk/tp/t/16raw.t  2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/16raw.t  2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/181quotation.t
===================================================================
--- trunk/tp/t/181quotation.t   2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/181quotation.t   2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/18itemize.t
===================================================================
--- trunk/tp/t/18itemize.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/18itemize.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/19def.t
===================================================================
--- trunk/tp/t/19def.t  2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/19def.t  2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/20preformatted.t
===================================================================
--- trunk/tp/t/20preformatted.t 2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/20preformatted.t 2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/21multitable.t
===================================================================
--- trunk/tp/t/21multitable.t   2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/21multitable.t   2018-08-13 10:51:37 UTC (rev 8053)
@@ -2,8 +2,11 @@
 
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/22xtable.t
===================================================================
--- trunk/tp/t/22xtable.t       2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/22xtable.t       2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/25regions.t
===================================================================
--- trunk/tp/t/25regions.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/25regions.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/27float.t
===================================================================
--- trunk/tp/t/27float.t        2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/27float.t        2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/28heading.t
===================================================================
--- trunk/tp/t/28heading.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/28heading.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/30sectioning.t
===================================================================
--- trunk/tp/t/30sectioning.t   2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/30sectioning.t   2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/50value.t
===================================================================
--- trunk/tp/t/50value.t        2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/50value.t        2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/55conditionals.t
===================================================================
--- trunk/tp/t/55conditionals.t 2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/55conditionals.t 2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/57invalid_nestings.t
===================================================================
--- trunk/tp/t/57invalid_nestings.t     2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/57invalid_nestings.t     2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/58alias.t
===================================================================
--- trunk/tp/t/58alias.t        2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/58alias.t        2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/60macro.t
===================================================================
--- trunk/tp/t/60macro.t        2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/60macro.t        2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/70value_and_macro.t
===================================================================
--- trunk/tp/t/70value_and_macro.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/70value_and_macro.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/80include.t
===================================================================
--- trunk/tp/t/80include.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/80include.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require 'Texinfo/ModulePath.pm';
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/accents.t
===================================================================
--- trunk/tp/t/accents.t        2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/accents.t        2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/automatic_menus.t
===================================================================
--- trunk/tp/t/automatic_menus.t        2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/automatic_menus.t        2018-08-13 10:51:37 UTC (rev 8053)
@@ -2,6 +2,7 @@
 
 use Test::More;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/automatic_nodes.t
===================================================================
--- trunk/tp/t/automatic_nodes.t        2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/automatic_nodes.t        2018-08-13 10:51:37 UTC (rev 8053)
@@ -2,6 +2,7 @@
 
 use Test::More;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/collect_spaces.t
===================================================================
--- trunk/tp/t/collect_spaces.t 2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/collect_spaces.t 2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/converters_tests.t
===================================================================
--- trunk/tp/t/converters_tests.t       2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/converters_tests.t       2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require Texinfo::ModulePath;
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/do_master_menu.t
===================================================================
--- trunk/tp/t/do_master_menu.t 2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/do_master_menu.t 2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/docbook_tests.t
===================================================================
--- trunk/tp/t/docbook_tests.t  2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/docbook_tests.t  2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require Texinfo::ModulePath;
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/fix_texinfo.t
===================================================================
--- trunk/tp/t/fix_texinfo.t    2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/fix_texinfo.t    2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/html_tests.t
===================================================================
--- trunk/tp/t/html_tests.t     2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/html_tests.t     2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require Texinfo::ModulePath;
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/index_before_item.t
===================================================================
--- trunk/tp/t/index_before_item.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/index_before_item.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/info_tests.t
===================================================================
--- trunk/tp/t/info_tests.t     2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/info_tests.t     2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require Texinfo::ModulePath;
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/languages.t
===================================================================
--- trunk/tp/t/languages.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/languages.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require Texinfo::ModulePath;
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/nodenormalization.t
===================================================================
--- trunk/tp/t/nodenormalization.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/nodenormalization.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/paragraph.t
===================================================================
--- trunk/tp/t/paragraph.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/paragraph.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -4,22 +4,13 @@
 use File::Spec;
 use File::Basename;
 
+use lib '.';
 BEGIN {
-
-plan tests => 119;
-
-my ($real_command_name, $command_directory, $command_suffix)
-  = fileparse($0, '.t');
-my $updir = File::Spec->updir();
-my $up = File::Spec->catdir($command_directory, $updir);
-push @INC, $up;
-if (!defined($ENV{'top_srcdir'})) {
-  $ENV{'top_srcdir'} = File::Spec->catdir($up, $updir);
+  require Texinfo::ModulePath;
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
 }
-require Texinfo::ModulePath;
-Texinfo::ModulePath::init();
 
-}; # end BEGIN
+BEGIN { plan tests => 119 ; }
 
 use Texinfo::Convert::Paragraph;
 use Texinfo::Convert::Line;

Modified: trunk/tp/t/plaintext_tests.t
===================================================================
--- trunk/tp/t/plaintext_tests.t        2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/plaintext_tests.t        2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,8 +1,11 @@
 # $Id$
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require Texinfo::ModulePath;
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 

Modified: trunk/tp/t/protect_character_in_texinfo.t
===================================================================
--- trunk/tp/t/protect_character_in_texinfo.t   2018-08-13 09:58:55 UTC (rev 
8052)
+++ trunk/tp/t/protect_character_in_texinfo.t   2018-08-13 10:51:37 UTC (rev 
8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/reference_to_text_in_tree.t
===================================================================
--- trunk/tp/t/reference_to_text_in_tree.t      2018-08-13 09:58:55 UTC (rev 
8052)
+++ trunk/tp/t/reference_to_text_in_tree.t      2018-08-13 10:51:37 UTC (rev 
8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/test_brace_count.t
===================================================================
--- trunk/tp/t/test_brace_count.t       2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/test_brace_count.t       2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/test_fill_gaps_in_sectioning.t
===================================================================
--- trunk/tp/t/test_fill_gaps_in_sectioning.t   2018-08-13 09:58:55 UTC (rev 
8052)
+++ trunk/tp/t/test_fill_gaps_in_sectioning.t   2018-08-13 10:51:37 UTC (rev 
8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/test_is_content_empty.t
===================================================================
--- trunk/tp/t/test_is_content_empty.t  2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/test_is_content_empty.t  2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/test_protect_hashchar_at_line_beginning.t
===================================================================
--- trunk/tp/t/test_protect_hashchar_at_line_beginning.t        2018-08-13 
09:58:55 UTC (rev 8052)
+++ trunk/tp/t/test_protect_hashchar_at_line_beginning.t        2018-08-13 
10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/test_sort.t
===================================================================
--- trunk/tp/t/test_sort.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/test_sort.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/test_tree_copy.t
===================================================================
--- trunk/tp/t/test_tree_copy.t 2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/test_tree_copy.t 2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,5 +1,6 @@
 use strict;
 
+use lib '.';
 BEGIN {
   require Texinfo::ModulePath;
   Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);

Modified: trunk/tp/t/xml_tests.t
===================================================================
--- trunk/tp/t/xml_tests.t      2018-08-13 09:58:55 UTC (rev 8052)
+++ trunk/tp/t/xml_tests.t      2018-08-13 10:51:37 UTC (rev 8053)
@@ -1,7 +1,10 @@
 use strict;
 
-use File::Spec;
-BEGIN { if (defined($ENV{'top_srcdir'})) {unshift @INC, 
File::Spec->catdir($ENV{'top_srcdir'}, 'tp');} }
+use lib '.';
+BEGIN {
+  require Texinfo::ModulePath;
+  Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
+}
 
 require 't/test_utils.pl';
 




reply via email to

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