mod_perl
view release on metacpan or search on metacpan
Apache-Test/lib/Apache/TestBuild.pm view on Meta::CPAN
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
package Apache::TestBuild;
use strict;
use warnings FATAL => 'all';
use subs qw(system chdir
info warning);
use Config;
use File::Spec::Functions;
use File::Path ();
use Cwd ();
use constant DRYRUN => 0;
my @min_modules = qw(access auth log-config env mime setenvif
mime autoindex dir alias);
my %shared_modules = (
min => join(' ', @min_modules),
);
my %configs = (
all => {
'apache-1.3' => [],
'httpd-2.0' => enable20(qw(modules=all proxy)),
},
most => {
'apache-1.3' => [],
'httpd-2.0' => enable20(qw(modules=most)),
},
min => {
'apache-1.3' => [],
'httpd-2.0' => enable20(@min_modules),
},
exp => {
'apache-1.3' => [],
'httpd-2.0' => enable20(qw(example case_filter
case_filter_in cache
echo deflate bucketeer)),
},
);
my %builds = (
default => {
cflags => '-Wall',
config => {
'apache-1.3' => [],
'httpd-2.0' => [],
},
},
debug => {
cflags => '-g',
config => {
'apache-1.3' => [],
'httpd-2.0' => [qw(--enable-maintainer-mode)],
},
},
prof => {
cflags => '-pg -DGPROF',
},
shared => {
config => {
'apache-1.3' => [],
'httpd-2.0' => enable20_shared('all'),
},
},
mostshared => {
config => {
'apache-1.3' => [],
'httpd-2.0' => enable20_shared('most'),
},
},
minshared => {
config => {
'apache-1.3' => [],
( run in 1.022 second using v1.01-cache-2.11-cpan-39bf76dae61 )