Commit 71eb292f authored by unknown's avatar unknown

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
parent e4e8418c
......@@ -3073,3 +3073,6 @@ libmysqld/sql_profile.cc
comments
maria-win.patch
storage/maria/maria_dump_log
maria_log.00000*
ma_test_recovery.output
test?.MA?
......@@ -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.
......
......@@ -21,10 +21,10 @@ CLEANFILES = unit
unittests = mytap mysys @mysql_se_unittest_dirs@ @mysql_pg_unittest_dirs@
test:
maria_path=../storage/maria perl unit.pl run $(unittests)
perl unit.pl run $(unittests)
test-verbose:
HARNESS_VERBOSE=1 maria_path=../storage/maria perl unit.pl run $(unittests)
HARNESS_VERBOSE=1 perl unit.pl run $(unittests)
# Don't update the files from bitkeeper
%::SCCS/s.%
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment