diff options
author | unknown <msvensson@shellback.(none)> | 2006-09-28 13:28:18 +0200 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-09-28 13:28:18 +0200 |
commit | 60928825f50572c618f6c3b44cff55185de635da (patch) | |
tree | 0f97ebeaa4a477128fdfd2839395a9f1b7d9c494 /mysql-test | |
parent | ffd5de297a06481c7c3bc568ae42689dac5dadb4 (diff) | |
parent | 7742d0593152fc2adcdcbb3c88f52d2400d8f840 (diff) | |
download | mariadb-git-60928825f50572c618f6c3b44cff55185de635da.tar.gz |
Merge bk-internal:/home/bk/mysql-5.1-maint
into shellback.(none):/home/msvensson/mysql/mysql-5.1-maint
mysql-test/lib/mtr_cases.pl:
Auto merged
mysql-test/mysql-test-run.pl:
Auto merged
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/lib/mtr_cases.pl | 7 | ||||
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 22 |
2 files changed, 29 insertions, 0 deletions
diff --git a/mysql-test/lib/mtr_cases.pl b/mysql-test/lib/mtr_cases.pl index bb92730444c..f63e8a4bfd4 100644 --- a/mysql-test/lib/mtr_cases.pl +++ b/mysql-test/lib/mtr_cases.pl @@ -514,6 +514,13 @@ sub collect_one_test_case($$$$$$$) { $tinfo->{'comment'}= "Test need debug binaries"; return; } + + if ( $tinfo->{'innodb_test'} && ! $::glob_innodb_supported ) + { + $tinfo->{'skip'}= 1; + $tinfo->{'comment'}= "Test need innodb"; + } + } # We can't restart a running server that may be in use diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index cfc83440fad..662afcd3bbf 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -332,6 +332,7 @@ our @data_dir_lst; our $used_binlog_format; our $debug_compiled_binaries; our $glob_tot_real_time= 0; +our $glob_innodb_supported; ###################################################################### # @@ -350,6 +351,7 @@ sub cleanup_stale_files (); sub check_ssl_support (); sub check_running_as_root(); sub check_ndbcluster_support (); +sub check_innodb_support (); sub rm_ndbcluster_tables ($); sub ndbcluster_start_install ($); sub ndbcluster_start ($$); @@ -390,6 +392,7 @@ sub main () { executable_setup(); check_ndbcluster_support(); + check_innodb_support(); check_ssl_support(); check_debug_support(); @@ -1855,6 +1858,25 @@ sub check_debug_support () { $debug_compiled_binaries= 1; } +sub check_innodb_support () { + + # check innodb support by testing using a switch + # that is only available in that case + if ( mtr_run($exe_mysqld, + ["--no-defaults", + "--innodb-data-file-path", + "--help"], + "", "/dev/null", "/dev/null", "") != 0 ) + { + # mtr_report("Binaries does not support innodb"); + $glob_innodb_supported= 0; + + return; + } + mtr_report("Using innodb when necessary"); + $glob_innodb_supported= 1; +} + ############################################################################## # # Start the ndb cluster |