From 6fc3a3d94bc696e2d24a1f9bff08fb2b6e246bda Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 17 Feb 2006 16:20:53 +0100 Subject: mysql-test-run.pl: Added --comment= option mysql-test/mysql-test-run.pl: Added --comment= option --- mysql-test/mysql-test-run.pl | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'mysql-test') diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 4c72768a8e0..73ca9002806 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -508,13 +508,15 @@ sub command_line_setup () { # These are defaults for things that are set on the command line $opt_suite= "main"; # Special default suite - my $opt_master_myport= 9306; - my $opt_slave_myport= 9308; - $opt_ndbcluster_port= 9350; + my $opt_comment; + + my $opt_master_myport= 9306; + my $opt_slave_myport= 9308; + $opt_ndbcluster_port= 9350; $opt_ndbcluster_port_slave= 9358; - my $im_port= 9310; - my $im_mysqld1_port= 9312; - my $im_mysqld2_port= 9314; + my $im_port= 9310; + my $im_mysqld1_port= 9312; + my $im_mysqld2_port= 9314; # # To make it easier for different devs to work on the same host, @@ -626,6 +628,7 @@ sub command_line_setup () { 'big-test' => \$opt_big_test, 'debug' => \$opt_debug, 'fast' => \$opt_fast, + 'comment=s' => \$opt_comment, 'local' => \$opt_local, 'local-master' => \$opt_local_master, 'netware' => \$opt_netware, @@ -652,9 +655,14 @@ sub command_line_setup () { 'help|h' => \$opt_usage, ) or usage("Can't read options"); - if ( $opt_usage ) + usage("") if $opt_usage; + + if ( $opt_comment ) { - usage(""); + print "\n"; + print '#' x 78, "\n"; + print "# $opt_comment\n"; + print '#' x 78, "\n\n"; } foreach my $arg ( @ARGV ) -- cgit v1.2.1