~percona-toolkit-dev/percona-toolkit/pt-fke-logger-2.2

« back to all changes in this revision

Viewing changes to t/pt-query-digest/http_analyses.t

  • Committer: Brian Fraser
  • Date: 2013-02-25 15:13:35 UTC
  • Revision ID: fraserbn@gmail.com-20130225151335-3z7wkeviyzci7ojm
pqd: Remove --type pglog, memcached, and http

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env perl
2
 
 
3
 
BEGIN {
4
 
   die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
5
 
      unless $ENV{PERCONA_TOOLKIT_BRANCH} && -d $ENV{PERCONA_TOOLKIT_BRANCH};
6
 
   unshift @INC, "$ENV{PERCONA_TOOLKIT_BRANCH}/lib";
7
 
};
8
 
 
9
 
use strict;
10
 
use warnings FATAL => 'all';
11
 
use English qw(-no_match_vars);
12
 
use Test::More tests => 1;
13
 
 
14
 
use PerconaTest;
15
 
 
16
 
my $run_with = "$trunk/bin/pt-query-digest --report-format=query_report --type http --limit 10 $trunk/t/lib/samples/http/";
17
 
 
18
 
ok(
19
 
   no_diff($run_with.'http_tcpdump002.txt', "t/pt-query-digest/samples/http_tcpdump002.txt"),
20
 
   'Analysis for http_tcpdump002.txt'
21
 
);
22
 
 
23
 
# #############################################################################
24
 
# Done.
25
 
# #############################################################################
26
 
exit;