Add --help and --version to pt-align and pt-mext. Add --relative (-r) to pt-mext and re-enable its tests.

This commit is contained in:
Daniel Nichter
2013-04-03 17:42:10 -06:00
parent 79c36ca77c
commit bc77653f75
3 changed files with 1666 additions and 43 deletions

View File

@@ -9,7 +9,7 @@ BEGIN {
use strict;
use warnings FATAL => 'all';
use English qw(-no_match_vars);
use Test::More tests => 1;
use Test::More;
use PerconaTest;
@@ -19,7 +19,27 @@ like(
'It runs'
);
my $cmd = "$trunk/bin/pt-mext";
my $sample = "$trunk/t/pt-mext/samples";
ok(
no_diff(
"$cmd -- cat $sample/mext-001.txt",
"t/pt-mext/samples/mext-001-result.txt",
),
"mext-001"
) or diag($test_diff);
ok(
no_diff(
"$cmd -r -- cat $sample/mext-002.txt",
"t/pt-mext/samples/mext-002-result.txt",
),
"mext-002 -r"
) or diag($test_diff);
# #############################################################################
# Done.
# #############################################################################
done_testing;
exit;