Skip to content
Browse files

Add basic test

  • Loading branch information...
1 parent 92b923e commit 6ac0d9aa9b38c1db0eaa3ea438a148cd031e4c32 @yanick committed Oct 18, 2012
View
18 t/basic.t
@@ -0,0 +1,18 @@
+use strict;
+use warnings;
+
+use Test::More tests => 2;
+
+use Test::DZil;
+
+my $tzil = Builder->from_config(
+ { dist_root => 't/corpus' },
+);
+
+$tzil->build;
+
+my @shared = grep { $_->name =~ m#share/# } @{ $tzil->files };
+
+is @shared => 1, "there is only one file";
+
+is $shared[0]->name => 'share/shared-files.tar.gz', "and it's the tarball";
View
5 t/corpus/Changes
@@ -0,0 +1,5 @@
+Revision history for {{$dist->name}}
+
+{{$NEXT}}
+
+ - First version, unleashed on an unsuspecting world.
View
BIN t/corpus/DZT-Sample-1.0.tar.gz
Binary file not shown.
View
6 t/corpus/DZT-Sample-1.0/Changes
@@ -0,0 +1,6 @@
+Revision history for DZT-Sample
+
+1.0 2012-03-24T12:23:54Z
+ - First version, unleashed on an unsuspecting world.
+ - stats: 1 files changed, 5 insertions(+), 0 deletions(-)
+
View
11 t/corpus/DZT-Sample-1.0/dist.ini
@@ -0,0 +1,11 @@
+name = DZT-Sample
+author = Yanick Champoux <yanick@babyl.dyndns.org>
+license = Perl_5
+copyright_holder = Yanick Champoux
+copyright_year = 2012
+version = 1.0
+
+[GatherDir]
+[FakeRelease]
+[NextRelease]
+[ChangeStats::Git]
View
11 t/corpus/DZT-Sample-1.0/lib/DZT/Sample.pm
@@ -0,0 +1,11 @@
+use strict;
+use warnings;
+package DZT::Sample;
+# ABSTRACT: test module
+
+sub return_arrayref_of_values_passed {
+ my $invocant = shift;
+ return \@_;
+}
+
+1;
View
9 t/corpus/dist.ini
@@ -0,0 +1,9 @@
+name = DZT-Sample
+author = Yanick Champoux <yanick@babyl.dyndns.org>
+license = Perl_5
+copyright_holder = Yanick Champoux
+copyright_year = 2012
+version = 1.0
+
+[GatherDir]
+[ShareDir::Tarball]
View
11 t/corpus/lib/DZT/Sample.pm
@@ -0,0 +1,11 @@
+use strict;
+use warnings;
+package DZT::Sample;
+# ABSTRACT: test module
+
+sub return_arrayref_of_values_passed {
+ my $invocant = shift;
+ return \@_;
+}
+
+1;
View
1 t/corpus/share/bar
@@ -0,0 +1 @@
+bar
View
1 t/corpus/share/foo
@@ -0,0 +1 @@
+foo

0 comments on commit 6ac0d9a

Please sign in to comment.
Something went wrong with that request. Please try again.