Skip to content
Newer
Older
100644 125 lines (103 sloc) 3.16 KB
fa84ef7 @dann made Makefile writing style simple
authored
1 use strict;
2 use warnings;
3
ba56553 @dann tried to use Module::Install::PRIVATE to extend test target
authored
4 #use lib 'privinc';
019df49 @dann initial commit
authored
5 use inc::Module::Install;
ce29451 @dann added tests for modperl with Apache::Test
authored
6
8a83fc2 @dann added version to Makefile.PL
authored
7 BEGIN {
8 eval {
ce29451 @dann added tests for modperl with Apache::Test
authored
9 die "not testing mod_perl" unless $ENV{TEST_MODPERL};
10 require mod_perl2;
11 require Apache::Test;
12 };
13 {
14 no strict 'refs';
8a83fc2 @dann added version to Makefile.PL
authored
15 *HAVE_MP = $@ ? sub {0} : sub {1};
ce29451 @dann added tests for modperl with Apache::Test
authored
16 }
ba56553 @dann tried to use Module::Install::PRIVATE to extend test target
authored
17
ce29451 @dann added tests for modperl with Apache::Test
authored
18 }
19
20 if (HAVE_MP) {
8a83fc2 @dann added version to Makefile.PL
authored
21
ba56553 @dann tried to use Module::Install::PRIVATE to extend test target
authored
22 #include 'Module/Install/PRIVATE/Angelos.pm';
ce29451 @dann added tests for modperl with Apache::Test
authored
23 require Apache::TestMM;
24 Apache::TestMM->import(qw(clean test));
25 }
26
019df49 @dann initial commit
authored
27 name 'Angelos';
28 all_from 'lib/Angelos.pm';
29
fa84ef7 @dann made Makefile writing style simple
authored
30 requires(
da5ebb4 @dann added Data::Util as dependnecy
authored
31
fa84ef7 @dann made Makefile writing style simple
authored
32 # Basics
33 'Mouse' => '0.14',
34 'HTTP::Engine' => 0,
122c740 @dann use HTTP::Engine::Middleware and moved some Middlewares to HE::Middle…
authored
35 'HTTP::Engine::Middleware' => 0,
fa84ef7 @dann made Makefile writing style simple
authored
36 'HTTP::Router' => 0,
37 'HTTP::Session' => 0,
38 'Module::Pluggable::Object' => 0,
39 'UNIVERSAL::require' => 0,
40 'Log::Dispatch::Config' => 0,
41 'Log::Dispatch::Configurator' => 0,
42 'Log::Dispatch::Configurator::YAML' => 0,
43 'Log::Dispatch::Colorful' => 0,
44 'String::CamelCase' => 0,
45 'Path::Class' => 0,
46 'Devel::InnerPackage' => 0,
47 'Exception::Class' => 0,
48 'File::Spec' => 0,
49 'IO::Pager' => 0,
50 'Class::Singleton' => 0,
51 'Params::Validate' => 0,
52 'Class::Method::Modifiers::Fast' => 0,
da5ebb4 @dann added Data::Util as dependnecy
authored
53 'Data::Util' => 0,
fa84ef7 @dann made Makefile writing style simple
authored
54
55 # Config
56 'Kwalify' => 0,
57 'YAML' => 0,
58 'Data::Visitor::Callback' => 0,
59
60 # Script
61 'Pod::Simple::Text' => 0,
62 'MouseX::Getopt' => 0,
63 'IPC::System::Simple' => 0,
64 'App::Cmd' => 0,
65 'Module::Setup' => 0,
66 'FindBin::libs' => 0,
67 'File::Slurp' => 0,
68 'File::HomeDir' => 0,
69 'Devel::EvalContext' => 0,
70
71 # BootLoader Plugins
72 'Text::SimpleTable' => 0,
73 'File::Find::Rule' => 0,
74 'Term::ReadLine' => 0,
75 'JSON::XS' => 0,
76
77 # Components
78 'Template' => 0,
79
80 # I18N
81 'Locale::Maketext::Simple' => 0,
82 'Locale::Maketext::Extract' => 0,
83
84 # Controller Plugins (remove from core)
85 'HTML::FillInForm' => 0,
86 'FormValidator::Simple' => 0,
87
88 # View Plugins (remove from core)
89
90 # Middleware
dce5b90 @dann changed test app path
authored
91 'MIME::Types' => 0,
fa84ef7 @dann made Makefile writing style simple
authored
92 );
f51219f @dann removed IO::File dependency
authored
93
ce29451 @dann added tests for modperl with Apache::Test
authored
94 if (HAVE_MP) {
95 Apache::TestMM::filter_args();
8a83fc2 @dann added version to Makefile.PL
authored
96
ba56553 @dann tried to use Module::Install::PRIVATE to extend test target
authored
97 #Apache::TestMM::generate_script('t/integration/modperl/TEST');
6ac8331 @dann added simple test for mod_perl environment
authored
98 Apache::TestMM::generate_script('t/TEST');
4cd9352 @dann added performance tests to investigate the problem under mod_perl
authored
99 tests('t/integration/modperl/*.t t/performance/020_modperl/*.t');
8a83fc2 @dann added version to Makefile.PL
authored
100 }
101 else {
ce29451 @dann added tests for modperl with Apache::Test
authored
102 tests('t/*.t t/unit/*.t t/unit/*/*.t');
103 author_tests('xt');
104 }
2efcc18 @dann changed test directory structure
authored
105
fa84ef7 @dann made Makefile writing style simple
authored
106 test_requires(
107 'Test::More' => 0,
108 'Test::Differences' => 0,
109 'Test::Deep' => 0,
110 'Test::Exception' => 0,
111 'Test::MockObject' => 0,
112 'Test::Class' => 0,
113 'Test::TCP' => 0,
114 'LWP::UserAgent' => 0,
115 'Module::Load::Conditional' => 0,
116 'Carp::Always' => 0,
117 'Module::Install::AuthorTests' => 0,
118 );
47cbe8b @dann added required modules to Makefile
authored
119
a356f51 @dann use App::CLI for Script classes
authored
120 install_script 'bin/angelos';
4c5b951 @dann added simple starter
authored
121
019df49 @dann initial commit
authored
122 use_test_base;
d1e9446 @dann auto_include
authored
123 auto_include;
019df49 @dann initial commit
authored
124 WriteAll;
Something went wrong with that request. Please try again.