diff options
author | unknown <msvensson@neptunus.(none)> | 2006-11-17 11:01:09 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-11-17 11:01:09 +0100 |
commit | 060c768c2b09634b14d4dc4f22f6b32a8c2f0ed8 (patch) | |
tree | bfcb9189f9cf98d15270768fc510a7c73fa8452f | |
parent | f142723e0e23be26275bdf0921cc3bc2817776d1 (diff) | |
download | mariadb-git-060c768c2b09634b14d4dc4f22f6b32a8c2f0ed8.tar.gz |
Bug#24274 option "--big-test" of mysql-test-run.pl does not work anymore
- Set environment variable BIG_TEST when using --big-test
- Skip comment lines when looking for features a test case supports.
mysql-test/lib/mtr_cases.pl:
Skip all lines that start with # when looking for features required by the test case
mysql-test/mysql-test-run.pl:
Set environment variable BIG_TEST if option --big-test passed.
-rw-r--r-- | mysql-test/lib/mtr_cases.pl | 3 | ||||
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 20 |
2 files changed, 14 insertions, 9 deletions
diff --git a/mysql-test/lib/mtr_cases.pl b/mysql-test/lib/mtr_cases.pl index d270d72d526..283e728fdaf 100644 --- a/mysql-test/lib/mtr_cases.pl +++ b/mysql-test/lib/mtr_cases.pl @@ -593,6 +593,9 @@ sub mtr_options_from_test_file($$) { while ( my $line= <$F> ) { + # Skip line if it start's with # + next if ( $line =~ /^#/ ); + # Match this line against tag in "tags" array foreach my $tag (@tags) { diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index e78b899cd46..0ac3054d7c7 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -164,7 +164,7 @@ our $exe_libtool; our $opt_bench= 0; our $opt_small_bench= 0; -our $opt_big_test= 0; # Send --big-test to mysqltest +our $opt_big_test= 0; our @opt_extra_mysqld_opt; @@ -920,6 +920,14 @@ sub command_line_setup () { } # -------------------------------------------------------------------------- + # Big test flags + # -------------------------------------------------------------------------- + if ( $opt_big_test ) + { + $ENV{'BIG_TEST'}= 1; + } + + # -------------------------------------------------------------------------- # Gcov flag # -------------------------------------------------------------------------- if ( $opt_gcov and ! $opt_source_dist ) @@ -4370,11 +4378,6 @@ sub run_mysqltest ($) { mtr_add_arg($args, "--timer-file=%s/log/timer", $opt_vardir); } - if ( $opt_big_test ) - { - mtr_add_arg($args, "--big-test"); - } - if ( $opt_compress ) { mtr_add_arg($args, "--compress"); @@ -4765,9 +4768,8 @@ Options to control what test suites or cases to run skip-rpl Skip the replication test cases. skip-im Don't start IM, and skip the IM test cases skip-test=PREFIX Skip test cases which name are prefixed with PREFIX - big-test Pass "--big-test" to mysqltest which will set the - environment variable BIG_TEST, which can be checked - from test cases. + big-test Set the environment variable BIG_TEST, which can be + checked from test cases. Options that specify ports |