From 122e4436b1ee5f0acb9a08ed6bce28d839876dce Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 4 Jan 2010 13:23:17 +0100 Subject: [PATCH] Test skip due to missing OQGraph early, avoiding errors in log when starting server. --- mysql-test/lib/mtr_cases.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mysql-test/lib/mtr_cases.pm b/mysql-test/lib/mtr_cases.pm index c0f36ba03b9..df2f23b2117 100644 --- a/mysql-test/lib/mtr_cases.pm +++ b/mysql-test/lib/mtr_cases.pm @@ -1109,6 +1109,16 @@ sub collect_one_test_case { } } + if ( $tinfo->{'oqgraph_test'} ) + { + if ( !$ENV{'OQGRAPH_PLUGIN'} ) + { + $tinfo->{'skip'}= 1; + $tinfo->{'comment'}= "Test requires the OQGraph storage engine"; + return $tinfo; + } + } + # Set extra config file to use if (defined $defaults_extra_file) { @@ -1163,6 +1173,7 @@ my @tags= ["include/not_embedded.inc", "not_embedded", 1], ["include/not_valgrind.inc", "not_valgrind", 1], ["include/have_example_plugin.inc", "example_plugin_test", 1], + ["include/have_oqgraph_engine.inc", "oqgraph_test", 1], ["include/have_ssl.inc", "need_ssl", 1], );