mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-18 16:40:23 +00:00
Change mk_tool::main() to pt_tool::main() in all tests.
This commit is contained in:
@@ -47,21 +47,21 @@ $sb->load_file('master', 't/lib/samples/dupe_key.sql', 'test');
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
sub { mk_duplicate_key_checker::main(@args, qw(-d test)) },
|
||||
sub { pt_duplicate_key_checker::main(@args, qw(-d test)) },
|
||||
"$sample/basic_output.txt"),
|
||||
'Default output'
|
||||
);
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
sub { mk_duplicate_key_checker::main(@args, qw(-d test --nosql)) },
|
||||
sub { pt_duplicate_key_checker::main(@args, qw(-d test --nosql)) },
|
||||
"$sample/nosql_output.txt"),
|
||||
'--nosql'
|
||||
);
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
sub { mk_duplicate_key_checker::main(@args, qw(-d test --nosummary)) },
|
||||
sub { pt_duplicate_key_checker::main(@args, qw(-d test --nosummary)) },
|
||||
"$sample/nosummary_output.txt"),
|
||||
'--nosummary'
|
||||
);
|
||||
@@ -70,7 +70,7 @@ $sb->load_file('master', 't/lib/samples/uppercase_names.sql', 'test');
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
sub { mk_duplicate_key_checker::main(@args, qw(-d test -t UPPER_TEST)) },
|
||||
sub { pt_duplicate_key_checker::main(@args, qw(-d test -t UPPER_TEST)) },
|
||||
($sandbox_version ge '5.1' ? "$sample/uppercase_names-51.txt"
|
||||
: "$sample/uppercase_names.txt")
|
||||
),
|
||||
@@ -81,7 +81,7 @@ $sb->load_file('master', 't/lib/samples/issue_269-1.sql', 'test');
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
sub { mk_duplicate_key_checker::main(@args, qw(-d test -t a)) },
|
||||
sub { pt_duplicate_key_checker::main(@args, qw(-d test -t a)) },
|
||||
"$sample/issue_269.txt"),
|
||||
'No dupes for issue 269'
|
||||
);
|
||||
@@ -90,7 +90,7 @@ $sb->wipe_clean($dbh);
|
||||
|
||||
ok(
|
||||
no_diff(
|
||||
sub { mk_duplicate_key_checker::main(@args, qw(-d test)) },
|
||||
sub { pt_duplicate_key_checker::main(@args, qw(-d test)) },
|
||||
"$sample/nonexistent_db.txt"),
|
||||
'No results for nonexistent db'
|
||||
);
|
||||
|
@@ -39,7 +39,7 @@ $sb->create_dbs($dbh, ['test']);
|
||||
$sb->load_file('master', 't/pt-duplicate-key-checker/samples/issue_295.sql', 'test');
|
||||
ok(
|
||||
no_diff(
|
||||
sub { mk_duplicate_key_checker::main(@args, qw(-d issue_295)) },
|
||||
sub { pt_duplicate_key_checker::main(@args, qw(-d issue_295)) },
|
||||
($sandbox_version ge '5.1' ? "$sample/issue_295-51.txt"
|
||||
: "$sample/issue_295.txt")
|
||||
),
|
||||
|
@@ -40,7 +40,7 @@ $sb->create_dbs($dbh, ['test']);
|
||||
$sb->load_file('master', 't/pt-duplicate-key-checker/samples/issue_331.sql', 'test');
|
||||
ok(
|
||||
no_diff(
|
||||
sub { mk_duplicate_key_checker::main(@args, qw(-d issue_331)) },
|
||||
sub { pt_duplicate_key_checker::main(@args, qw(-d issue_331)) },
|
||||
't/pt-duplicate-key-checker/samples/issue_331.txt',
|
||||
),
|
||||
'Issue 331 crash on fks'
|
||||
|
Reference in New Issue
Block a user