summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2006-03-01 13:43:42 +0100
committerunknown <joerg@mysql.com>2006-03-01 13:43:42 +0100
commit621db819d9f56c11709e3ef4bd1835d902fc016a (patch)
treeff94fbff59d9d8b29d486b780d9db18295b049db /mysql-test
parentee9930bfa4c6cbdd15438f22dccc3a4a2c232d36 (diff)
parent4ede8823b772f65745b55c44ff8df6eb1c25afd9 (diff)
downloadmariadb-git-621db819d9f56c11709e3ef4bd1835d902fc016a.tar.gz
Merge mysql.com:/M50/comment-5.0 into mysql.com:/M51/comment-5.1
mysql-test/mysql-test-run.pl: Auto merged mysql-test/mysql-test-run.sh: Auto merged
Diffstat (limited to 'mysql-test')
-rwxr-xr-xmysql-test/mysql-test-run.pl10
-rw-r--r--mysql-test/mysql-test-run.sh9
2 files changed, 18 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 62ce4da253e..a40ee5b8a63 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -198,6 +198,7 @@ our $opt_big_test= 0; # Send --big-test to mysqltest
our @opt_extra_mysqld_opt;
+our $opt_comment;
our $opt_compress;
our $opt_ssl;
our $opt_skip_ssl;
@@ -669,6 +670,14 @@ sub command_line_setup () {
print '#' x 78, "\n\n";
}
+ if ( $opt_comment )
+ {
+ print "\n";
+ print '#' x 78, "\n";
+ print "# $opt_comment\n";
+ print '#' x 78, "\n\n";
+ }
+
foreach my $arg ( @ARGV )
{
if ( $arg =~ /^--skip-/ )
@@ -3256,6 +3265,7 @@ Options for coverage, profiling etc
Misc options
+ comment=STR Write STR to the output
verbose Verbose output from this script
script-debug Debug this script itself
timer Show test case execution time
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh
index c0875955b4e..64dc079af7c 100644
--- a/mysql-test/mysql-test-run.sh
+++ b/mysql-test/mysql-test-run.sh
@@ -601,7 +601,14 @@ while test $# -gt 0; do
FAST_START=1
;;
--use-old-data)
- USE_OLD_DATA=1;
+ USE_OLD_DATA=1
+ ;;
+ --comment=*)
+ TMP=`$ECHO "$1" | $SED -e "s;--comment=;;"`
+ echo
+ echo '############################################'
+ echo "# $TMP"
+ echo '############################################'
;;
-- ) shift; break ;;
--* ) $ECHO "Unrecognized option: $1"; exit 1 ;;