Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
29 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!perl -w | ||
use Poet::t::App; | ||
Poet::t::App->runtests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
#!perl -w | ||
use File::Basename; | ||
my $class; | ||
|
||
BEGIN { | ||
$class = "Poet::t::" . substr( basename($0), 0, -2 ); | ||
eval "require $class"; | ||
die $@ if $@; | ||
} | ||
Test::Class::runtests( $class->new ); | ||
use Poet::t::Conf; | ||
Poet::t::Conf->runtests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
#!perl -w | ||
use File::Basename; | ||
my $class; | ||
|
||
BEGIN { | ||
$class = "Poet::t::" . substr( basename($0), 0, -2 ); | ||
eval "require $class"; | ||
die $@ if $@; | ||
} | ||
Test::Class::runtests( $class->new ); | ||
use Poet::t::Environment; | ||
Poet::t::Environment->runtests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
#!perl -w | ||
use File::Basename; | ||
my $class; | ||
|
||
BEGIN { | ||
$class = "Poet::t::" . substr( basename($0), 0, -2 ); | ||
eval "require $class"; | ||
die $@ if $@; | ||
} | ||
Test::Class::runtests( $class->new ); | ||
use Poet::t::Log; | ||
Poet::t::Log->runtests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
#!perl -w | ||
use File::Basename; | ||
my $class; | ||
|
||
BEGIN { | ||
$class = "Poet::t::" . substr( basename($0), 0, -2 ); | ||
eval "require $class"; | ||
die $@ if $@; | ||
} | ||
Test::Class::runtests( $class->new ); | ||
use Poet::t::Script; | ||
Poet::t::Script->runtests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/perl | ||
use Cwd qw(realpath); | ||
use File::Basename; | ||
use File::Slurp; | ||
use IPC::System::Simple qw(run); | ||
use warnings; | ||
use strict; | ||
|
||
my $cwd = dirname( realpath($0) ); | ||
|
||
my $class = shift(@ARGV) or die "usage: $0 MyClass"; | ||
$class =~ s/\.(t|pm)$//; | ||
my $filename = "$cwd/$class.t"; | ||
my $source = sprintf( "#!perl -w\nuse Poet::t::%s;\nPoet::t::%s->runtests;\n", | ||
$class, $class ); | ||
write_file( $filename, $source ); | ||
run("git add $filename"); | ||
print "$filename:\n$source\n"; |