mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 05:00:45 +00:00
Add pt-fingerprint.
This commit is contained in:
2101
bin/pt-fingerprint
Executable file
2101
bin/pt-fingerprint
Executable file
File diff suppressed because it is too large
Load Diff
31
t/pt-fingerprint/basics.t
Normal file
31
t/pt-fingerprint/basics.t
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
BEGIN {
|
||||
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
|
||||
unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
|
||||
unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
|
||||
};
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
use Test::More tests => 1;
|
||||
|
||||
use PerconaTest;
|
||||
require "$trunk/bin/pt-fingerprint";
|
||||
|
||||
my @args = qw(--report-format=query_report --limit 10);
|
||||
my $sample = "$trunk/t/lib/samples/slowlogs/";
|
||||
my $output;
|
||||
|
||||
$output = `$trunk/bin/pt-fingerprint --help`;
|
||||
like(
|
||||
$output,
|
||||
qr/--help/,
|
||||
"It runs"
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
exit;
|
Reference in New Issue
Block a user