summaryrefslogtreecommitdiff
path: root/cpan/Module-Build/t/mymeta.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Module-Build/t/mymeta.t')
-rw-r--r--cpan/Module-Build/t/mymeta.t30
1 files changed, 30 insertions, 0 deletions
diff --git a/cpan/Module-Build/t/mymeta.t b/cpan/Module-Build/t/mymeta.t
new file mode 100644
index 0000000000..c60a5b2420
--- /dev/null
+++ b/cpan/Module-Build/t/mymeta.t
@@ -0,0 +1,30 @@
+#!/usr/bin/perl -w
+
+use strict;
+use lib 't/lib';
+use MBTest tests => 3;
+
+blib_load('Module::Build');
+
+my $tmp = MBTest->tmpdir;
+
+use DistGen;
+my $dist = DistGen->new( dir => $tmp );
+$dist->regen;
+$dist->chdir_in;
+
+#########################
+
+# Test MYMETA generation
+{
+ ok( ! -e "MYMETA.yml", "MYMETA.yml doesn't exist before Build.PL runs" );
+ my $output;
+ $output = stdout_of sub { $dist->run_build_pl };
+ like($output, qr/Creating new 'MYMETA.yml' with configuration results/,
+ "Saw MYMETA.yml creation message"
+ );
+ ok( -e "MYMETA.yml", "MYMETA.yml exists" );
+}
+
+#########################
+