21
21
# #############################################################################
22
# Test cmd line op sanity.
23
# #############################################################################
24
for my $opt (qw(review-table history-table)) {
25
$output = `$cmd --review h=127.1,P=12345,u=msandbox,p=msandbox --$opt test`;
26
like($output, qr/--$opt should be passed a/, "Dies if no database part in --$opt");
29
$output = `$cmd --review h=127.1,P=12345,u=msandbox,p=msandbox,D=test,t=test`;
30
like($output, qr/--review does not accept a t option/, 'Dies if t part in --review DSN');
34
qr/review-table\s+\Qpercona_schema.query_review\E/,
35
"--review-table has a sane default"
40
qr/history-table\s+\Qpercona_schema.query_history\E/,
41
"--history-table has a sane default"
44
# #############################################################################
45
22
# https://bugs.launchpad.net/percona-toolkit/+bug/885382
46
23
# pt-query-digest --embedded-attributes doesn't check cardinality
47
24
# #############################################################################