Move the locale/strict/warnings helper files back
Jarkko Hietaniemi [Mon, 18 Jun 2001 13:32:13 +0000 (13:32 +0000)]
under the t/lib; this way the amount of non-installabled
stuff under lib/ stays smaller.

p4raw-id: //depot/perl@10686

42 files changed:
MANIFEST
installperl
lib/locale.t
lib/strict.t
t/lib/locale/latin1 [moved from lib/locale/latin1 with 100% similarity]
t/lib/locale/utf8 [moved from lib/locale/utf8 with 100% similarity]
t/lib/strict/refs [moved from lib/strict/refs with 100% similarity]
t/lib/strict/subs [moved from lib/strict/subs with 100% similarity]
t/lib/strict/vars [moved from lib/strict/vars with 100% similarity]
t/lib/warnings/1global [moved from lib/warnings/1global with 100% similarity]
t/lib/warnings/2use [moved from lib/warnings/2use with 100% similarity]
t/lib/warnings/3both [moved from lib/warnings/3both with 100% similarity]
t/lib/warnings/4lint [moved from lib/warnings/4lint with 100% similarity]
t/lib/warnings/5nolint [moved from lib/warnings/5nolint with 100% similarity]
t/lib/warnings/6default [moved from lib/warnings/6default with 100% similarity]
t/lib/warnings/7fatal [moved from lib/warnings/7fatal with 100% similarity]
t/lib/warnings/8signal [moved from lib/warnings/8signal with 100% similarity]
t/lib/warnings/9enabled [moved from lib/warnings/9enabled with 100% similarity]
t/lib/warnings/av [moved from lib/warnings/av with 100% similarity]
t/lib/warnings/doio [moved from lib/warnings/doio with 100% similarity]
t/lib/warnings/doop [moved from lib/warnings/doop with 100% similarity]
t/lib/warnings/gv [moved from lib/warnings/gv with 100% similarity]
t/lib/warnings/hv [moved from lib/warnings/hv with 100% similarity]
t/lib/warnings/malloc [moved from lib/warnings/malloc with 100% similarity]
t/lib/warnings/mg [moved from lib/warnings/mg with 100% similarity]
t/lib/warnings/op [moved from lib/warnings/op with 100% similarity]
t/lib/warnings/perl [moved from lib/warnings/perl with 100% similarity]
t/lib/warnings/perlio [moved from lib/warnings/perlio with 100% similarity]
t/lib/warnings/perly [moved from lib/warnings/perly with 100% similarity]
t/lib/warnings/pp [moved from lib/warnings/pp with 100% similarity]
t/lib/warnings/pp_ctl [moved from lib/warnings/pp_ctl with 100% similarity]
t/lib/warnings/pp_hot [moved from lib/warnings/pp_hot with 100% similarity]
t/lib/warnings/pp_sys [moved from lib/warnings/pp_sys with 100% similarity]
t/lib/warnings/regcomp [moved from lib/warnings/regcomp with 100% similarity]
t/lib/warnings/regexec [moved from lib/warnings/regexec with 100% similarity]
t/lib/warnings/run [moved from lib/warnings/run with 100% similarity]
t/lib/warnings/sv [moved from lib/warnings/sv with 100% similarity]
t/lib/warnings/taint [moved from lib/warnings/taint with 100% similarity]
t/lib/warnings/toke [moved from lib/warnings/toke with 100% similarity]
t/lib/warnings/universal [moved from lib/warnings/universal with 100% similarity]
t/lib/warnings/utf8 [moved from lib/warnings/utf8 with 100% similarity]
t/lib/warnings/util [moved from lib/warnings/util with 100% similarity]

index 403305e..9026368 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1216,8 +1216,6 @@ lib/less.pm                       For "use less"
 lib/lib_pm.PL                  For "use lib", produces lib/lib.pm
 lib/locale.pm                  For "use locale"
 lib/locale.t                   See if locale support works
-lib/locale/latin1              Part of locale.t in Latin 1
-lib/locale/utf8                        Part of locale.t in UTF8
 lib/look.pl                    A "look" equivalent
 lib/newgetopt.pl               A perl library supporting long option parsing
 lib/open.pm                    Pragma to specify default I/O disciplines
@@ -1233,9 +1231,6 @@ lib/sigtrap.pm                    For trapping an abort and giving traceback
 lib/stat.pl                    Perl library supporting stat function
 lib/strict.pm                  For "use strict"
 lib/strict.t                   See if strictures work
-lib/strict/refs                        Tests of "use strict 'refs'" for strict.t
-lib/strict/subs                        Tests of "use strict 'subs'" for strict.t
-lib/strict/vars                        Tests of "use strict 'vars'" for strict.t
 lib/subs.pm                    Declare overriding subs
 lib/subs.t                     See if subroutine pseudo-importation works
 lib/syslog.pl                  Perl library supporting syslogging
@@ -1531,41 +1526,8 @@ lib/validate.pl                  Perl library supporting wholesale file mode validation
 lib/vars.pm                    Declare pseudo-imported global variables
 lib/vars.t                     See if "use vars" work
 lib/warnings.pm                        For "use warnings"
-lib/warnings.t         See if warning controls work
-lib/warnings/1global           Tests of global warnings for warnings.t
-lib/warnings/2use              Tests for "use warnings" for warnings.t
-lib/warnings/3both             Tests for interaction of $^W and "use warnings"
-lib/warnings/4lint             Tests for -W switch
-lib/warnings/5nolint           Tests for -X switch
-lib/warnings/6default          Tests default warnings
-lib/warnings/7fatal            Tests fatal warnings
-lib/warnings/8signal           Tests warnings + __WARN__ and __DIE__
-lib/warnings/9enabled          Tests warnings
-lib/warnings/av                        Tests for av.c for warnings.t
-lib/warnings/doio              Tests for doio.c for warnings.t
-lib/warnings/doop              Tests for doop.c for warnings.t
-lib/warnings/gv                        Tests for gv.c for warnings.t
-lib/warnings/hv                        Tests for hv.c for warnings.t
-lib/warnings/malloc            Tests for malloc.c for warnings.t
-lib/warnings/mg                        Tests for mg.c for warnings.t
-lib/warnings/op                        Tests for op.c for warnings.t
-lib/warnings/perl              Tests for perl.c for warnings.t
-lib/warnings/perlio            Tests for perlio.c for warnings.t
-lib/warnings/perly             Tests for perly.y for warnings.t
-lib/warnings/pp                        Tests for pp.c for warnings.t
-lib/warnings/pp_ctl            Tests for pp_ctl.c for warnings.t
-lib/warnings/pp_hot            Tests for pp_hot.c for warnings.t
-lib/warnings/pp_sys            Tests for pp_sys.c for warnings.t
-lib/warnings/regcomp           Tests for regcomp.c for warnings.t
-lib/warnings/regexec           Tests for regexec.c for warnings.t
+lib/warnings.t                 See if warning controls work
 lib/warnings/register.pm       For "use warnings::register"
-lib/warnings/run               Tests for run.c for warnings.t
-lib/warnings/sv                        Tests for sv.c for warnings.t
-lib/warnings/taint             Tests for taint.c for warnings.t
-lib/warnings/toke              Tests for toke.c for warnings.t
-lib/warnings/universal         Tests for universal.c for warnings.t
-lib/warnings/utf8              Tests for utf8.c for warnings.t
-lib/warnings/util              Tests for util.c for warnings.t
 locale.c                       locale-specific utility functions
 makeaperl.SH                   perl script that produces a new perl binary
 makedef.pl                     Create symbol export lists for linking
@@ -1860,6 +1822,8 @@ t/lib/dprof/test6_v               Perl code profiler tests
 t/lib/filter-util.pl           See if Filter::Util::Call works
 t/lib/h2ph.h                   Test header file for h2ph
 t/lib/h2ph.pht                 Generated output from h2ph.h by h2ph, for comparison
+t/lib/locale/latin1            Part of locale.t in Latin 1
+t/lib/locale/utf8              Part of locale.t in UTF8
 t/lib/sample-tests/bailout             Test data for Test::Harness
 t/lib/sample-tests/combined            Test data for Test::Harness
 t/lib/sample-tests/descriptive         Test data for Test::Harness
@@ -1873,6 +1837,42 @@ t/lib/sample-tests/skip_all              Test data for Test::Harness
 t/lib/sample-tests/todo                        Test data for Test::Harness
 t/lib/sample-tests/with_comments       Test data for Test::Harness
 t/lib/st-dump.pl               See if Storable works
+t/lib/strict/refs              Tests of "use strict 'refs'" for strict.t
+t/lib/strict/subs              Tests of "use strict 'subs'" for strict.t
+t/lib/strict/vars              Tests of "use strict 'vars'" for strict.t
+t/lib/warnings/1global         Tests of global warnings for warnings.t
+t/lib/warnings/2use            Tests for "use warnings" for warnings.t
+t/lib/warnings/3both           Tests for interaction of $^W and "use warnings"
+t/lib/warnings/4lint           Tests for -W switch
+t/lib/warnings/5nolint         Tests for -X switch
+t/lib/warnings/6default                Tests default warnings
+t/lib/warnings/7fatal          Tests fatal warnings
+t/lib/warnings/8signal         Tests warnings + __WARN__ and __DIE__
+t/lib/warnings/9enabled                Tests warnings
+t/lib/warnings/av              Tests for av.c for warnings.t
+t/lib/warnings/doio            Tests for doio.c for warnings.t
+t/lib/warnings/doop            Tests for doop.c for warnings.t
+t/lib/warnings/gv              Tests for gv.c for warnings.t
+t/lib/warnings/hv              Tests for hv.c for warnings.t
+t/lib/warnings/malloc          Tests for malloc.c for warnings.t
+t/lib/warnings/mg              Tests for mg.c for warnings.t
+t/lib/warnings/op              Tests for op.c for warnings.t
+t/lib/warnings/perl            Tests for perl.c for warnings.t
+t/lib/warnings/perlio          Tests for perlio.c for warnings.t
+t/lib/warnings/perly           Tests for perly.y for warnings.t
+t/lib/warnings/pp              Tests for pp.c for warnings.t
+t/lib/warnings/pp_ctl          Tests for pp_ctl.c for warnings.t
+t/lib/warnings/pp_hot          Tests for pp_hot.c for warnings.t
+t/lib/warnings/pp_sys          Tests for pp_sys.c for warnings.t
+t/lib/warnings/regcomp         Tests for regcomp.c for warnings.t
+t/lib/warnings/regexec         Tests for regexec.c for warnings.t
+t/lib/warnings/run             Tests for run.c for warnings.t
+t/lib/warnings/sv              Tests for sv.c for warnings.t
+t/lib/warnings/taint           Tests for taint.c for warnings.t
+t/lib/warnings/toke            Tests for toke.c for warnings.t
+t/lib/warnings/universal       Tests for universal.c for warnings.t
+t/lib/warnings/utf8            Tests for utf8.c for warnings.t
+t/lib/warnings/util            Tests for util.c for warnings.t
 t/op/64bitint.t                        See if 64 bit integers work
 t/op/anonsub.t                 See if anonymous subroutines work
 t/op/append.t                  See if . works
index e681eae..2774553 100755 (executable)
@@ -697,9 +697,6 @@ sub installlib {
     # .exists files, .PL files, and .t files.
     return if $name =~ m{\.orig$|~$|^#.+#$|,v$|^\.exists|\.PL$|\.t$};
 
-    # ignore locale, strict, and warnings test data files
-    return if $name =~ m{^lib/(locale|strict|warnings)/\w+$};
-
     $name = "$dir/$name" if $dir ne '';
 
     my $installlib = $installprivlib;
index 19fba59..b18ff41 100644 (file)
@@ -311,9 +311,9 @@ if ($^O eq 'os390') {
 sub in_utf8 () { $^H & 0x08 }
 
 if (in_utf8) {
-    require "locale/utf8";
+    require "lib/locale/utf8";
 } else {
-    require "locale/latin1";
+    require "lib/locale/latin1";
 }
 
 my @Locale;
index 8b9083f..6067ad3 100644 (file)
@@ -18,7 +18,7 @@ END { if ($tmpfile) { 1 while unlink $tmpfile; } }
 
 my @prgs = () ;
 
-foreach (sort glob($^O eq 'MacOS' ? ":pragma:strict-*" : "pragma/strict-*")) {
+foreach (sort glob($^O eq 'MacOS' ? ":lib::strict:*" : "lib/strict/*")) {
 
     next if /(~|\.orig|,v)$/;
 
similarity index 100%
rename from lib/locale/latin1
rename to t/lib/locale/latin1
similarity index 100%
rename from lib/locale/utf8
rename to t/lib/locale/utf8
similarity index 100%
rename from lib/strict/refs
rename to t/lib/strict/refs
similarity index 100%
rename from lib/strict/subs
rename to t/lib/strict/subs
similarity index 100%
rename from lib/strict/vars
rename to t/lib/strict/vars
similarity index 100%
rename from lib/warnings/1global
rename to t/lib/warnings/1global
similarity index 100%
rename from lib/warnings/2use
rename to t/lib/warnings/2use
similarity index 100%
rename from lib/warnings/3both
rename to t/lib/warnings/3both
similarity index 100%
rename from lib/warnings/4lint
rename to t/lib/warnings/4lint
similarity index 100%
rename from lib/warnings/5nolint
rename to t/lib/warnings/5nolint
similarity index 100%
rename from lib/warnings/7fatal
rename to t/lib/warnings/7fatal
similarity index 100%
rename from lib/warnings/8signal
rename to t/lib/warnings/8signal
similarity index 100%
rename from lib/warnings/av
rename to t/lib/warnings/av
similarity index 100%
rename from lib/warnings/doio
rename to t/lib/warnings/doio
similarity index 100%
rename from lib/warnings/doop
rename to t/lib/warnings/doop
similarity index 100%
rename from lib/warnings/gv
rename to t/lib/warnings/gv
similarity index 100%
rename from lib/warnings/hv
rename to t/lib/warnings/hv
similarity index 100%
rename from lib/warnings/malloc
rename to t/lib/warnings/malloc
similarity index 100%
rename from lib/warnings/mg
rename to t/lib/warnings/mg
similarity index 100%
rename from lib/warnings/op
rename to t/lib/warnings/op
similarity index 100%
rename from lib/warnings/perl
rename to t/lib/warnings/perl
similarity index 100%
rename from lib/warnings/perlio
rename to t/lib/warnings/perlio
similarity index 100%
rename from lib/warnings/perly
rename to t/lib/warnings/perly
similarity index 100%
rename from lib/warnings/pp
rename to t/lib/warnings/pp
similarity index 100%
rename from lib/warnings/pp_ctl
rename to t/lib/warnings/pp_ctl
similarity index 100%
rename from lib/warnings/pp_hot
rename to t/lib/warnings/pp_hot
similarity index 100%
rename from lib/warnings/pp_sys
rename to t/lib/warnings/pp_sys
similarity index 100%
rename from lib/warnings/regcomp
rename to t/lib/warnings/regcomp
similarity index 100%
rename from lib/warnings/regexec
rename to t/lib/warnings/regexec
similarity index 100%
rename from lib/warnings/run
rename to t/lib/warnings/run
similarity index 100%
rename from lib/warnings/sv
rename to t/lib/warnings/sv
similarity index 100%
rename from lib/warnings/taint
rename to t/lib/warnings/taint
similarity index 100%
rename from lib/warnings/toke
rename to t/lib/warnings/toke
similarity index 100%
rename from lib/warnings/utf8
rename to t/lib/warnings/utf8
similarity index 100%
rename from lib/warnings/util
rename to t/lib/warnings/util