~percona-toolkit-dev/percona-toolkit/2.0

« back to all changes in this revision

Viewing changes to t/lib/bash.t

  • Committer: Daniel Nichter
  • Date: 2011-12-27 22:37:09 UTC
  • mfrom: (109.2.27 bash-tool-libs)
  • Revision ID: daniel@percona.com-20111227223709-v227ijlpw51qxl5z
MergeĀ lp:~daniel-nichter/percona-toolkit/bash-tool-libs.

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
 
 
13
use PerconaTest;
 
14
 
 
15
my ($tool) = $PROGRAM_NAME =~ m/([\w-]+)\.t$/;
 
16
push @ARGV, "$trunk/t/lib/bash/*.sh" unless @ARGV;
 
17
 
 
18
$ENV{LIB_DIR}   = "$trunk/lib/bash";
 
19
$ENV{T_LIB_DIR} = "$trunk/t/lib";
 
20
 
 
21
system("$trunk/util/test-bash-functions $trunk/t/lib/samples/bash/dummy.sh @ARGV");
 
22
 
 
23
exit;