⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build_man.t

📁 source of perl for linux application,
💻 T
字号:
#!/usr/bin/perl -w# Test if MakeMaker declines to build man pages under the right conditions.BEGIN {    if( $ENV{PERL_CORE} ) {        chdir 't' if -d 't';        @INC = ('../lib', 'lib');    }    else {        unshift @INC, 't/lib';    }}use strict;use Test::More tests => 9;use File::Spec;use TieOut;use MakeMaker::Test::Utils;use MakeMaker::Test::Setup::BFD;use ExtUtils::MakeMaker;use ExtUtils::MakeMaker::Config;# Simulate an installation which has man page generation turned off to# ensure these tests will still work.$Config{installman3dir} = 'none';chdir 't';perl_lib();ok( setup_recurs(), 'setup' );END {    ok( chdir File::Spec->updir );    ok( teardown_recurs(), 'teardown' );}ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) ||  diag("chdir failed: $!");ok( my $stdout = tie *STDOUT, 'TieOut' );{    local $Config{installman3dir} = File::Spec->catdir(qw(t lib));    my $mm = WriteMakefile(        NAME            => 'Big::Dummy',        VERSION_FROM    => 'lib/Big/Dummy.pm',    );    ok( keys %{ $mm->{MAN3PODS} } );}{    my $mm = WriteMakefile(        NAME            => 'Big::Dummy',        VERSION_FROM    => 'lib/Big/Dummy.pm',        INSTALLMAN3DIR  => 'none'    );    ok( !keys %{ $mm->{MAN3PODS} } );}{    my $mm = WriteMakefile(        NAME            => 'Big::Dummy',        VERSION_FROM    => 'lib/Big/Dummy.pm',        MAN3PODS        => {}    );    is_deeply( $mm->{MAN3PODS}, { } );}{    my $mm = WriteMakefile(        NAME            => 'Big::Dummy',        VERSION_FROM    => 'lib/Big/Dummy.pm',        MAN3PODS        => { "Foo.pm" => "Foo.1" }    );    is_deeply( $mm->{MAN3PODS}, { "Foo.pm" => "Foo.1" } );}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -