1
0
mirror of synced 2026-03-10 12:18:17 +00:00

Use done_testing instead of no_plan

This commit is contained in:
Axel Beckert
2012-11-28 00:04:07 +01:00
parent 00bb137012
commit 16dd2d9f2f
18 changed files with 37 additions and 33 deletions

View File

@@ -8,7 +8,7 @@
#
use strict;
use Test::More qw( no_plan );
use Test::More;
#
# Open and parse the xen-tools.conf configuration file.
@@ -51,7 +51,7 @@ foreach my $key ( sort keys %OPTIONS )
is( $found, 1 , " Found documentation for '$key'" );
}
done_testing();
=head2 parseConfigFile

View File

@@ -12,7 +12,7 @@
use strict;
use File::Find;
use Test::More qw( no_plan );
use Test::More;
#
@@ -26,6 +26,7 @@ foreach my $file ( sort( glob "./bin/*-*" ) )
testFile( $file );
}
done_testing();
#
# Check that the given file implements all the option processing it

View File

@@ -8,7 +8,7 @@
use strict;
use Test::More qw( no_plan );
use Test::More;
use File::Temp;
@@ -32,7 +32,7 @@ foreach my $dir ( glob( "hooks/*" ) )
}
}
done_testing();
#
# If the given distribution has the following two files test them:

View File

@@ -8,7 +8,7 @@
use strict;
use Test::More qw( no_plan );
use Test::More;
use File::Temp;
@@ -33,7 +33,7 @@ foreach my $dir ( glob( "hooks/*" ) )
}
}
done_testing();
#

View File

@@ -15,10 +15,6 @@ if ( $Config::Config{archname} =~ /64/ )
{
plan skip_all => "This test will fail upon 64 bit systems" ;
}
else
{
plan no_plan;
}
#
# Rather than having a hardwired list of distributions to test
@@ -38,7 +34,7 @@ foreach my $dir ( glob( "hooks/*" ) )
}
}
done_testing();
#

View File

@@ -7,7 +7,7 @@
#
use strict;
use Test::More qw( no_plan );
use Test::More;
#
@@ -28,7 +28,7 @@ foreach my $dir ( glob( "hooks/*" ) )
}
}
done_testing();
sub testDistroHooks
{

View File

@@ -9,7 +9,7 @@
use strict;
use File::Find;
use Test::More qw( no_plan );
use Test::More;
#
@@ -18,7 +18,7 @@ use Test::More qw( no_plan );
#
find( { wanted => \&checkFile, no_chdir => 1 }, '.' );
done_testing();
#
# Check a file.

View File

@@ -11,7 +11,7 @@
use strict;
use File::Find;
use Test::More qw/ no_plan /;
use Test::More;
eval "use Moose";
plan skip_all => "Moose required for testing Perl syntax"
@@ -24,6 +24,8 @@ plan skip_all => "Moose required for testing Perl syntax"
#
find( { wanted => \&checkFile, no_chdir => 1 }, '.' );
done_testing();
#
# Check a file.
#

View File

@@ -9,7 +9,7 @@
use strict;
use Test::More qw( no_plan );
use Test::More;
#
@@ -30,7 +30,7 @@ foreach my $dir ( glob( "hooks/*" ) )
}
}
done_testing();
=head2 testPlugins

View File

@@ -8,7 +8,7 @@
#
use strict;
use Test::More qw( no_plan );
use Test::More;
foreach my $file ( glob( "bin/*-*" ) )
{
@@ -30,3 +30,4 @@ foreach my $file ( glob( "bin/*-*" ) )
}
}
done_testing();

View File

@@ -15,7 +15,7 @@
use strict;
use File::Find;
use Test::More qw( no_plan );
use Test::More;
#
@@ -24,7 +24,7 @@ use Test::More qw( no_plan );
#
find( { wanted => \&checkFile, no_chdir => 1 }, '.' );
done_testing();
#
# Check a file.

View File

@@ -6,7 +6,7 @@
# --
#
use Test::More qw( no_plan );
use Test::More;
#
@@ -44,3 +44,4 @@ foreach my $file ( @optional )
}
}
done_testing();

View File

@@ -10,7 +10,7 @@
use strict;
use File::Find;
use Test::More qw( no_plan );
use Test::More;
#
@@ -23,7 +23,7 @@ $dir = "./hooks" if ( -d "./hooks" );
ok( defined( $dir ), "Found hook directory" );
find( { wanted => \&checkFile, no_chdir => 1 }, $dir );
done_testing();
#
# Check a file; if it is a shell script.

View File

@@ -9,7 +9,7 @@
use strict;
use File::Find;
use Test::More qw( no_plan );
use Test::More;
#
@@ -18,7 +18,7 @@ use Test::More qw( no_plan );
#
find( { wanted => \&checkFile, no_chdir => 1 }, '.' );
done_testing();
#
# Check a file.

View File

@@ -9,7 +9,7 @@
use strict;
use File::Find;
use Test::More qw( no_plan );
use Test::More;
#
@@ -37,6 +37,7 @@ foreach my $file (sort( glob ( $dir . "*" ) ) )
checkFile( $file );
}
done_testing();
#
# Check a file.

View File

@@ -9,7 +9,7 @@
use strict;
use Test::More qw( no_plan );
use Test::More;
use File::Temp;
@@ -91,3 +91,5 @@ ok( ! -e $domains . "/" . $hostname . "/" . "swap.img",
#
ok( ! -d $domains . "/" . $hostname,
"The hostname directory was removed" );
done_testing();

View File

@@ -10,7 +10,7 @@
use strict;
use Test::More qw( no_plan );
use Test::More;
use File::Temp;
@@ -26,7 +26,7 @@ testRandomInstance( "bar.my.flat", 1 );
testRandomInstance( "baz.my.flat", 0 );
testRandomInstance( "baz.my.flat", 1 );
done_testing();
=head2 testRandomInstance

View File

@@ -9,7 +9,7 @@
use strict;
use Test::More qw( no_plan );
use Test::More;
use File::Temp;
@@ -107,7 +107,7 @@ noMentionOf( "phy:",
done_testing();