diff options
author | unknown <kent@mysql.com> | 2006-02-17 16:20:53 +0100 |
---|---|---|
committer | unknown <kent@mysql.com> | 2006-02-17 16:20:53 +0100 |
commit | 6fc3a3d94bc696e2d24a1f9bff08fb2b6e246bda (patch) | |
tree | a0a1b5b199943545f6edb02778d0fa9699fd92c0 /mysql-test | |
parent | 189b687d48df97e4f903bb4fcd11ae0c0b71a899 (diff) | |
download | mariadb-git-6fc3a3d94bc696e2d24a1f9bff08fb2b6e246bda.tar.gz |
mysql-test-run.pl:
Added --comment=<string> option
mysql-test/mysql-test-run.pl:
Added --comment=<string> option
Diffstat (limited to 'mysql-test')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 24 |
1 files changed, 16 insertions, 8 deletions
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 ) |