mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-08 06:18:12 +00:00

- Moved data collection for THP from lib/bash/report_system_info.sh to lib/bash/collect_system_info.sh, so pt-summary reports THP status on the machine where samples were collected, not on the machine where an engineer examines samples.
29 lines
723 B
Perl
29 lines
723 B
Perl
#!/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 PerconaTest;
|
|
|
|
my ($tool) = $PROGRAM_NAME =~ m/([\w-]+)\.t$/;
|
|
|
|
use Test::More tests => 7;
|
|
|
|
for my $i (2..3,5..9) {
|
|
ok(
|
|
no_diff(
|
|
sub { print `LC_NUMERIC=POSIX $trunk/bin/pt-summary --read-samples "$trunk/t/pt-summary/samples/Linux/00$i/" | tail -n+3` },
|
|
"t/pt-summary/samples/Linux/output_00$i.txt"),
|
|
"--read-samples samples/Linux/00$i works",
|
|
) or diag($test_diff);
|
|
}
|
|
|
|
exit;
|