~giuseppe-maxia/mysql-sandbox/mysql-sandbox-3

« back to all changes in this revision

Viewing changes to t/semi_synch_plugin_install.sb.pl

  • Committer: g.maxia at gmail
  • Date: 2015-08-02 15:15:16 UTC
  • Revision ID: g.maxia@gmail.com-20150802151516-3blys2q56v788sc1
- Added default name for relay log files.
- Added 'show_binlog' script in each sandbox
- improved tests by getting all the version components from a single function call
- Added GTID initialization options for MySQL 5.6, 5.7, and MariaDB 10
- Added GTID enabling test for MySQL 5.6 and 5.7
- added and improved more tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
#
4
4
my $TEST_VERSION = $ENV{TEST_VERSION};
5
 
my ($bare_version, $version) = get_bare_version ($TEST_VERSION);
 
5
my ($bare_version, $version, $major,$minor, $rev) = get_bare_version ($TEST_VERSION);
6
6
my $reference_schema = 'information_schema';
7
7
my $additional_5_7_options='';
8
8
 
9
 
if ($TEST_VERSION =~ /5\.(\d+)\.(\d+)/)
 
9
# Starting with MySQL 5.7.8, information_schema.global_* tables 
 
10
# are now in performance_schema
 
11
if ( (($major ==5) &&  ($minor > 7) )
 
12
        or 
 
13
    ( ($major ==5) && ($minor == 7) && ($rev >= 8) ) 
 
14
   )
10
15
{
11
 
    my $minor=$1;
12
 
    my $rev=$2;
13
 
    # Starting with MySQL 5.7.8, information_schema.global_* tables 
14
 
    # are now in performance_schema
15
 
    if ( ($minor > 7) 
16
 
            or 
17
 
        ( ($minor == 7) && ($rev >= 6)) 
18
 
       )
19
 
    {
20
 
        # $additional_5_7_options = "--node_options=' -c show_compatibility_56=on'";
21
 
        $reference_schema='performance_schema';
22
 
    }
 
16
    # $additional_5_7_options = "--node_options=' -c show_compatibility_56=on'";
 
17
    $reference_schema='performance_schema';
23
18
}
24
19
 
25
20
my $plugindir = $ENV{SB_PLUGIN_DIR}