X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F60-version.t;h=9d7183d771211e787325be52637eeeb60cdb4863;hb=f6fc0cc882bbaa44ecfa004e338ba09f017dda8d;hp=4b6b2a99ae2ab227a1e3cac7fdada86731427bc8;hpb=5dd4ffc1370138eb1e9501f82a69f98208e4c0ff;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/t/60-version.t b/t/60-version.t index 4b6b2a9..9d7183d 100644 --- a/t/60-version.t +++ b/t/60-version.t @@ -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 * 9 + 2 * 23 + 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) { @@ -54,11 +53,15 @@ for my $failure (@string_failures) { } my @command_valid = ( - 'valgrind-1' => '1.0.0', - 'valgrind-1.2' => '1.2.0', - 'valgrind-1.2.3' => '1.2.3', - 'valgrind-1.2.4-rc5' => '1.2.4', - 'valgrind-1.2.6a' => '1.2.6', + 'valgrind-1' => '1.0.0', + 'valgrind-1.2' => '1.2.0', + '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', + 'valgrind-3.12.0.SVN' => '3.12.0', ); my @string_valid = map { my $s = $_; $s =~ s/^valgrind-//; $s } @@ -89,27 +92,29 @@ sub tvv_s { } my @compare = ( - '1', '1', 0, - '1', '1.0', 0, - '1', '1.0.0', 0, - '1.1', '1', 1, - '1.1', '1.0', 1, - '1.1', '1.0.0', 1, - '1', '1.1', -1, - '1.0', '1.1', -1, - '1.0.0', '1.1', -1, - '1.1', '1.2', -1, - '1.1.0', '1.2', -1, - '1.1', '1.2.0', -1, - '1.1.0', '1.2.0', -1, - '1', '1', 0, - '1.0.1', '1', 1, - '1.0.1.0', '1', 1, - '1.0.0.1', '1', 1, - '1.0.0.1', '1.0.1', -1, - '1.0.0.2', '1.0.1', -1, - '3.4.0', '3.4.1', -1, - '3.5.2', '3.5.1', 1, + '1', '1', 0, + '1', '1.0', 0, + '1', '1.0.0', 0, + '1.1', '1', 1, + '1.1', '1.0', 1, + '1.1', '1.0.0', 1, + '1', '1.1', -1, + '1.0', '1.1', -1, + '1.0.0', '1.1', -1, + '1.1', '1.2', -1, + '1.1.0', '1.2', -1, + '1.1', '1.2.0', -1, + '1.1.0', '1.2.0', -1, + '1', '1', 0, + '1.0.1', '1', 1, + '1.0.1.0', '1', 1, + '1.0.0.1', '1', 1, + '1.0.0.1', '1.0.1', -1, + '1.0.0.2', '1.0.1', -1, + '3.4.0', '3.4.1', -1, + '3.5.2', '3.5.1', 1, + '3.12.0', '3.1.0', 1, + '3.1.0', '3.12.0', -1, ); while (@compare) {