tagged release 0.6.4
[parrot.git] / t / configure / 036-config_steps.t
blob99172ff5c41ca4cbd86c1a9e7068235e03d1a549
1 #!perl
2 # Copyright (C) 2001-2005, The Perl Foundation.
3 # $Id$
5 use strict;
6 use warnings;
8 use lib qw( lib );
10 use Test::More;
11 use File::Find;
13 =head1 NAME
15 t/configure/036-config_steps.t - tests step modules under the config dir
17 =head1 SYNOPSIS
19     prove t/configure/036-config_steps.t
21 =head1 DESCRIPTION
23 Regressions tests for configure steps that live under the config directory.
25 =cut
27 my @steps;
28 sub wanted { $File::Find::name =~ m{^config\/(.*)\.pm\z}s &&
29     do {
30         my $mod = $1;
31         my $class = join '::', ( split /\//, $mod );
32         push @steps, $class;
33     };
35 find( { wanted => \&wanted }, 'config' );
37 if ( $^O !~ /win32/i ) {
38     @steps = grep { $_ !~ /win32/i } @steps;
41 my $testcount = @steps + 2;
42 plan tests => $testcount;
43 unshift @INC, 'config';
45 foreach my $step (@steps) {
46     require_ok($step);
49 pass("Keep Devel::Cover happy");
50 pass("Completed all tests in $0");
52 # Local Variables:
53 #   mode: cperl
54 #   cperl-indent-level: 4
55 #   fill-column: 100
56 # End:
57 # vim: expandtab shiftwidth=4: