Combine and change all pt-diskstats test to new format. Use generic .t for bash tools. Number tests in each test file and use as default test name.

This commit is contained in:
Daniel Nichter
2011-08-18 09:02:46 -06:00
parent 918c4c4bb2
commit b21578a86f
18 changed files with 203 additions and 162 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/evn perl
#!/usr/bin/env perl
BEGIN {
die "The PERCONA_TOOLKIT_BRANCH environment variable is not set.\n"
@@ -12,6 +12,8 @@ use English qw(-no_match_vars);
use PerconaTest;
system("$trunk/util/test-bash-tool pt-pmp @ARGV");
my ($tool) = $PROGRAM_NAME =~ m/([\w-]+)\.t$/;
push @ARGV, "$trunk/t/$tool/*.sh" unless @ARGV;
system("$trunk/util/test-bash-functions $trunk/bin/$tool @ARGV");
exit;