2 # packaging test - make sure we included the samples in the MANIFEST <sigh>
5 use ExtUtils::Manifest qw(maniread);
7 # first build a list of samples from samples/README
8 open SAMPLES, "< samples/README"
9 or die "Cannot open samples/README: $!";
13 /^\w[\w.-]+\.\w+$/ and push @sample_files, $_;
18 plan tests => scalar(@sample_files);
20 my $manifest = maniread();
22 for my $filename (@sample_files) {
23 ok(exists($manifest->{"samples/$filename"}),
24 "sample file $filename in manifest");