/
03-steplist.t
57 lines (40 loc) · 1.07 KB
/
03-steplist.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#! perl
# Copyright (C) 2007, The Perl Foundation.
# $Id$
# 03-steplist.t
use strict;
use warnings;
use Test::More tests => 4;
use Carp;
use lib qw( . lib ../lib ../../lib );
use_ok('Parrot::Configure::Step::List', qw|
get_steps_list
| );
my @steps;
ok(@steps = get_steps_list(), "non-zero number of steps located");
my $badsteps = 0;
foreach my $s (@steps) {
$badsteps++ unless $s =~ /^(init|inter|auto|gen)::\w+$/;
}
is($badsteps, 0, "no bad entries found in \@steps");
pass("Completed all tests in $0");
################### DOCUMENTATION ###################
=head1 NAME
03-steplist.t - test Parrot::Configure::Step::List
=head1 SYNOPSIS
% prove t/configure/03-steplist.t
=head1 DESCRIPTION
The files in this directory test functionality used by F<Configure.pl>.
The tests in this file test subroutines exported by
Parrot::Configure::Step::List.
=head1 AUTHOR
James E Keenan
=head1 SEE ALSO
Parrot::Configure::Step::List, F<Configure.pl>.
=cut
# Local Variables:
# mode: cperl
# cperl-indent-level: 4
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4: