1 # sample.t -- a sample test file for Module::Build
5 use MBTest tests => 2; # or 'no_plan'
8 # Ensure any Module::Build modules are loaded from correct directory
9 blib_load('Module::Build');
11 # create dist object in a temp directory
12 # enter the directory and generate the skeleton files
13 my $dist = DistGen->new->chdir_in->regen;
15 # get a Module::Build object and test with it
16 my $mb = $dist->new_from_context(); # quiet by default
17 isa_ok( $mb, "Module::Build" );
18 is( $mb->dist_name, "Simple", "dist_name is 'Simple'" );
20 # vim:ts=2:sw=2:et:sta:sts=2