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

« back to all changes in this revision

Viewing changes to bin/test_sandbox

  • 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:
966
966
sub get_bare_version {
967
967
    my ($ver) = @_;
968
968
    $ver =~ s{.*/}{};
969
 
    if ($ver =~ /((?:\w+)?\d+\.\d+\.\d+)/) {
 
969
    if ($ver =~ /((?:\w+)?(\d+)\.(\d+)\.(\d+))/) {
970
970
        my $bv = $1;
 
971
        my $major = $2;
 
972
        my $minor = $3;
 
973
        my $rev = $4;
971
974
        my $underscored_version = $bv;
972
975
        $underscored_version =~ s/\./_/g;
973
976
        $bv =~ s/^\D+//;
974
977
        # print STDERR "$ver, $bv, $underscored_version \n"; exit;
975
978
        if (wantarray) {
976
 
            return ($bv, $underscored_version);
 
979
            return ($bv, $underscored_version, $major, $minor, $rev);
977
980
        }
978
981
        else {
979
982
            return $bv;