2 # Copyright (C) 2007, Parrot Foundation.
8 use Test::More tests => 7;
10 use lib qw( lib t/configure/testlib );
11 use_ok('config::auto::attributes');
12 use Parrot::Configure::Options qw( process_options );
13 use Parrot::Configure::Step::Test;
14 use Parrot::Configure::Test qw(
15 test_step_constructor_and_description
17 use IO::CaptureOutput qw | capture |;
19 my ($args, $step_list_ref) = process_options( {
24 my $conf = Parrot::Configure::Step::Test->new;
25 $conf->include_config_results( $args );
27 my $pkg = q{auto::attributes};
29 $conf->add_steps($pkg);
30 $conf->options->set(%{$args});
31 my $step = test_step_constructor_and_description($conf);
37 sub { $rv = $step->runstep($conf); },
40 ok( defined $rv, "runstep() returned defined value" );
41 unlike($conf->data->get('ccflags'),
42 qr/HASATTRIBUTE_NEVER_WORKS/,
43 "'ccflags' excludes bogus attribute as expected"
48 pass("Completed all tests in $0");
50 ################### DOCUMENTATION ###################
54 auto/attributes-01.t - test auto::attributes
58 % prove t/steps/auto/attributes-01.t
62 The files in this directory test functionality used by F<Configure.pl>.
64 The tests in this file test auto::attributes.
72 config::auto::attributes, F<Configure.pl>.
78 # cperl-indent-level: 4
81 # vim: expandtab shiftwidth=4: