| 1 | #!./perl
|
|---|
| 2 |
|
|---|
| 3 | # Modules should have their own tests. For historical reasons, some
|
|---|
| 4 | # do not. This does basic compile tests on modules that have no tests
|
|---|
| 5 | # of their own.
|
|---|
| 6 |
|
|---|
| 7 | BEGIN {
|
|---|
| 8 | chdir 't';
|
|---|
| 9 | @INC = '../lib';
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | use strict;
|
|---|
| 13 | use warnings;
|
|---|
| 14 | use File::Spec::Functions;
|
|---|
| 15 |
|
|---|
| 16 | # Okay, this is the list.
|
|---|
| 17 |
|
|---|
| 18 | my @Core_Modules = grep /\S/, <DATA>;
|
|---|
| 19 | chomp @Core_Modules;
|
|---|
| 20 |
|
|---|
| 21 | if (eval { require Socket }) {
|
|---|
| 22 | push @Core_Modules, qw(Net::Domain);
|
|---|
| 23 | # Two Net:: modules need the Convert::EBCDIC if in EBDCIC.
|
|---|
| 24 | if (ord("A") != 193 || eval { require Convert::EBCDIC }) {
|
|---|
| 25 | push @Core_Modules, qw(Net::Cmd Net::POP3);
|
|---|
| 26 | }
|
|---|
| 27 | }
|
|---|
| 28 | if(eval { require B }) {
|
|---|
| 29 | push @Core_Modules, qw(B::C B::CC B::Stackobj);
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
|
|---|