diff options
author | unknown <kent@mysql.com> | 2005-09-28 23:24:44 +0200 |
---|---|---|
committer | unknown <kent@mysql.com> | 2005-09-28 23:24:44 +0200 |
commit | 21f6b1a10c3ecf24e296eba8181794290f2b957b (patch) | |
tree | 3cf7cce12025e302e62313a1aaab7e93ed17ab4c /mysql-test | |
parent | 51361adaf6be15f404dd0e0c6988cd6a41d7c5ed (diff) | |
download | mariadb-git-21f6b1a10c3ecf24e296eba8181794290f2b957b.tar.gz |
mysql-test-run.pl:
Pass on all --skip-* to mysqld
mysql-test/mysql-test-run.pl:
Pass on all --skip-* to mysqld
Diffstat (limited to 'mysql-test')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 66c92151ea4..bd71d89298d 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -467,6 +467,7 @@ sub command_line_setup () { # Read the command line # Note: Keep list, and the order, in sync with usage at end of this file + Getopt::Long::Configure("pass_through"); GetOptions( # Control what engine/variation to run 'embedded-server' => \$opt_embedded_server, @@ -554,7 +555,21 @@ sub command_line_setup () { usage(""); } - @opt_cases= @ARGV; + foreach my $arg ( @ARGV ) + { + if ( $arg =~ /^--skip-/ ) + { + push(@opt_extra_mysqld_opt, $arg); + } + elsif ( $arg =~ /^-/ ) + { + usage("Invalid option \"$arg\""); + } + else + { + push(@opt_cases, $arg); + } + } # -------------------------------------------------------------------------- # Set the "var/" directory, as it is the base for everything else |