]> git.vpit.fr Git - perl/modules/Test-Valgrind.git/blobdiff - t/60-version.t
More lax valgrind version parsing
[perl/modules/Test-Valgrind.git] / t / 60-version.t
index 4b6b2a99ae2ab227a1e3cac7fdada86731427bc8..68a99a0975dc2868070f527e987e22f82736cc66 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 6 + 6 + 2 * 5 + 2 * 5 + 2 * 21 + 2 * 14;
+use Test::More tests => 6 + 5 + 4 * 8 + 2 * 21 + 2 * 14;
 
 use Test::Valgrind::Version;
 
@@ -40,9 +40,8 @@ my @string_failures = (
  undef,
  'valgrind',
  'valgrind-1.2.3',
- '1.',
- '1.2.',
- '1.2.a',
+ 'abc',
+ 'd.e.f',
 );
 
 for my $failure (@string_failures) {
@@ -59,6 +58,9 @@ my @command_valid = (
  'valgrind-1.2.3'     => '1.2.3',
  'valgrind-1.2.4-rc5' => '1.2.4',
  'valgrind-1.2.6a'    => '1.2.6',
+ 'valgrind-1.2.7.'    => '1.2.7',
+ 'valgrind-1.2.x.8'   => '1.2.0',
+ 'valgrind-1.10.'     => '1.10.0',
 );
 
 my @string_valid = map { my $s = $_; $s =~ s/^valgrind-//; $s }