summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <joerg@mysql.com>2006-03-01 13:29:37 +0100
committerunknown <joerg@mysql.com>2006-03-01 13:29:37 +0100
commit4ede8823b772f65745b55c44ff8df6eb1c25afd9 (patch)
tree48e0b2698477bfd7a27282b5448c2826ed4e19ce
parent2efabfd11a6fa5621c851a472c076e4ef5184d6d (diff)
parentca3dd7f01aae783c2f8efea6adbf446e2c410c42 (diff)
downloadmariadb-git-4ede8823b772f65745b55c44ff8df6eb1c25afd9.tar.gz
Manual merge of the added "--comment=<string>" option
to both the Shell and the Perl vaerion of "mysql-test-run"- mysql-test/mysql-test-run.pl: Manual merge. mysql-test/mysql-test-run.sh: Manual merge
-rwxr-xr-xmysql-test/mysql-test-run.pl11
-rw-r--r--mysql-test/mysql-test-run.sh9
2 files changed, 19 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index dcdf48ec7ac..905a2b2af37 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -193,6 +193,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;
@@ -600,6 +601,7 @@ sub command_line_setup () {
# Misc
'big-test' => \$opt_big_test,
+ 'comment=s' => \$opt_comment,
'debug' => \$opt_debug,
'fast' => \$opt_fast,
'local' => \$opt_local,
@@ -633,6 +635,14 @@ sub command_line_setup () {
usage("");
}
+ 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-/ )
@@ -2997,6 +3007,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 c6185e990bb..8e4e8a7bea7 100644
--- a/mysql-test/mysql-test-run.sh
+++ b/mysql-test/mysql-test-run.sh
@@ -555,7 +555,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 ;;