summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorunknown <serg@janus.mylan>2008-01-29 15:26:04 +0100
committerunknown <serg@janus.mylan>2008-01-29 15:26:04 +0100
commit71eb292f37b25c11fd3d041d38d3397d7ce8ccb7 (patch)
tree340354e9b0c3754ece5b60377418dd16ce23857c /storage
parente4e8418ced94fff9c8b4bd7b8fcf5e2123717f2b (diff)
downloadmariadb-git-71eb292f37b25c11fd3d041d38d3397d7ce8ccb7.tar.gz
storage/maria/unittest/ma_test_all-t
1. reasonable defaults for maria_path 2. reasonable TAP-compatible output in non-verbose mode unittest/Makefile.am remove maria_path hack BitKeeper/etc/ignore@1.269 added maria_log.00000* ma_test_recovery.output test?.MA? BitKeeper/etc/ignore: added maria_log.00000* ma_test_recovery.output test?.MA? storage/maria/unittest/ma_test_all-t: 1. reasonable defaults for maria_path 2. reasonable TAP-compatible output in non-verbose mode unittest/Makefile.am: remove maria_path hack
Diffstat (limited to 'storage')
-rwxr-xr-xstorage/maria/unittest/ma_test_all-t12
1 files changed, 8 insertions, 4 deletions
diff --git a/storage/maria/unittest/ma_test_all-t b/storage/maria/unittest/ma_test_all-t
index 33a8d711ef7..7fe3269ce8b 100755
--- a/storage/maria/unittest/ma_test_all-t
+++ b/storage/maria/unittest/ma_test_all-t
@@ -4,6 +4,7 @@
#
use Getopt::Long;
+use File::Basename;
$|= 1;
$VER= "1.3";
@@ -56,8 +57,9 @@ sub run_tests
}
if (!defined($maria_path) || !length($maria_path))
{
- $maria_path= ".";
+ $maria_path= dirname($0) . '/..';
}
+ $ENV{'maria_path'}=$maria_path;
usage() if ($opt_help || $flag_exit);
@@ -524,12 +526,17 @@ sub ok
print " " x (5 - length("$test_counter"));
print "$test_counter";
}
+ else
+ {
+ print " $test_counter - $com"
+ }
print "\n";
return 1;
}
print "[ " if ($verbose);
print "not ok";
print " ]" if ($verbose);
+ print " $test_counter - $com" unless $verbose;
print "\n";
if ($verbose && defined($output) && length($output))
{
@@ -612,9 +619,6 @@ $my_progname version $VER
Description:
Run various Maria related tests. Typically used via make test as a unittest.
-Please set environment variable maria_path before executing, if you
-are not starting the program where ma_test1, ma_test2, ma_test3,
-ma_test_recovery etc. files are.
Options
--help Show this help and exit.