~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/mysql-test-run.pl

  • Committer: Package Import Robot
  • Author(s): James Page, Otto Kekäläinen
  • Date: 2014-02-17 16:51:52 UTC
  • mfrom: (2.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140217165152-k315d3175g865kkx
Tags: 5.5.35-1
[ Otto Kekäläinen ]
* New upstream release, fixing the following security issues:
  - Buffer overflow in client/mysql.cc (Closes: #737597).
    - CVE-2014-0001
  - http://www.oracle.com/technetwork/topics/security/cpujan2014-1972949.html
    - CVE-2013-5891
    - CVE-2013-5908
    - CVE-2014-0386
    - CVE-2014-0393
    - CVE-2014-0401
    - CVE-2014-0402
    - CVE-2014-0412
    - CVE-2014-0420
    - CVE-2014-0437
* Upstream https://mariadb.atlassian.net/browse/MDEV-4902
  fixes compatibility with Bison 3.0 (Closes: #733002)
* Updated Russian debconf translation (Closes: #734426)
* Updated Japanese debconf translation (Closes: #735284)
* Updated French debconf translation (Closes: #736480)
* Renamed SONAME properly (Closes: #732967)

Show diffs side-by-side

added added

removed removed

Lines of Context:
162
162
# executables will be used by the test suite.
163
163
our $opt_vs_config = $ENV{'MTR_VS_CONFIG'};
164
164
 
165
 
my $DEFAULT_SUITES= join(',', map { "$_-" } qw(
166
 
    main
167
 
    archive
168
 
    binlog
169
 
    csv
170
 
    federated
171
 
    funcs_1
172
 
    funcs_2
173
 
    handler
174
 
    heap
175
 
    innodb
176
 
    maria
177
 
    optimizer_unfixed_bugs
178
 
    oqgraph
179
 
    parts
180
 
    percona
181
 
    perfschema
182
 
    plugins
183
 
    rpl
184
 
    sphinx
185
 
    sys_vars
186
 
    unit
187
 
    vcol
188
 
  ));
 
165
my @DEFAULT_SUITES= qw(
 
166
    main-
 
167
    archive-
 
168
    binlog-
 
169
    csv-
 
170
    federated-
 
171
    funcs_1-
 
172
    funcs_2-
 
173
    handler-
 
174
    heap-
 
175
    innodb-
 
176
    maria-
 
177
    optimizer_unfixed_bugs-
 
178
    oqgraph-
 
179
    parts-
 
180
    percona-
 
181
    perfschema-
 
182
    plugins-
 
183
    rpl-
 
184
    sphinx-
 
185
    sys_vars-
 
186
    unit-
 
187
    vcol-
 
188
  );
189
189
my $opt_suites;
190
190
 
191
191
our $opt_verbose= 0;  # Verbose output, enable with --verbose
384
384
  }
385
385
 
386
386
  
387
 
  if (!$opt_suites) {
388
 
    $opt_suites= $DEFAULT_SUITES;
389
 
  }
390
 
  mtr_report("Using suites: $opt_suites") unless @opt_cases;
391
 
 
392
387
  print "vardir: $opt_vardir\n";
393
388
  initialize_servers();
394
389
  init_timers();
397
392
 
398
393
  executable_setup();
399
394
 
 
395
  if (!$opt_suites) {
 
396
    $opt_suites= join ',', collect_default_suites(@DEFAULT_SUITES);
 
397
  }
 
398
  mtr_report("Using suites: $opt_suites") unless @opt_cases;
 
399
 
400
400
  # --debug[-common] implies we run debug server
401
401
  $opt_debug_server= 1 if $opt_debug || $opt_debug_common;
402
402
 
1890
1890
 
1891
1891
  my @list= split '\n', $list;
1892
1892
  mtr_error("Could not find version of MariaDB")
1893
 
     unless shift(@list) =~ /^$exe_mysqld\s+Ver\s(\d+)\.(\d+)\.(\d+)(\S*)/;
 
1893
     unless shift(@list) =~ /^\Q$exe_mysqld\E\s+Ver\s(\d+)\.(\d+)\.(\d+)(\S*)/;
1894
1894
  $mysql_version_id= $1*10000 + $2*100 + $3;
1895
1895
  $mysql_version_extra= $4;
1896
1896
  mtr_report("MariaDB Version $1.$2.$3$4");
2068
2068
  }
2069
2069
  else
2070
2070
  {
2071
 
    $exe_mysqltest= mtr_exe_exists("$path_client_bindir/mysqltest");
 
2071
    if ( defined $ENV{'MYSQL_TEST'} )
 
2072
    {
 
2073
      $exe_mysqltest=$ENV{'MYSQL_TEST'};
 
2074
      print "===========================================================\n";
 
2075
      print "WARNING:The mysqltest binary is fetched from $exe_mysqltest\n";
 
2076
      print "===========================================================\n";
 
2077
    }
 
2078
    else
 
2079
    {
 
2080
      $exe_mysqltest= mtr_exe_exists("$path_client_bindir/mysqltest");
 
2081
    }
2072
2082
  }
2073
2083
 
2074
2084
}
2480
2490
                                 "$path_client_bindir/perror");
2481
2491
  $ENV{'MY_PERROR'}= native_path($exe_perror);
2482
2492
 
 
2493
  # ----------------------------------------------------
 
2494
  # mysql_tzinfo_to_sql
 
2495
  # ----------------------------------------------------
 
2496
  my $exe_mysql_tzinfo_to_sql= mtr_exe_exists("$basedir/sql$opt_vs_config/mysql_tzinfo_to_sql",
 
2497
                                 "$path_client_bindir/mysql_tzinfo_to_sql",
 
2498
                                 "$bindir/sql$opt_vs_config/mysql_tzinfo_to_sql");
 
2499
  $ENV{'MYSQL_TZINFO_TO_SQL'}= native_path($exe_mysql_tzinfo_to_sql);
 
2500
 
2483
2501
  # Create an environment variable to make it possible
2484
2502
  # to detect that valgrind is being used from test cases
2485
2503
  $ENV{'VALGRIND_TEST'}= $opt_valgrind;
2922
2940
  mtr_report(" - enabling ndbcluster");
2923
2941
  $ndbcluster_enabled= 1;
2924
2942
  # Add MySQL Cluster test suites
2925
 
  $DEFAULT_SUITES.=",ndb,ndb_binlog,rpl_ndb,ndb_rpl,ndb_memcache";
 
2943
  push @DEFAULT_SUITES, qw(ndb ndb_binlog rpl_ndb ndb_rpl ndb_memcache);
2926
2944
  return;
2927
2945
}
2928
2946
 
6294
6312
    exit;      
6295
6313
  }
6296
6314
 
 
6315
  local $"= ','; # for @DEFAULT_SUITES below
 
6316
 
6297
6317
  print <<HERE;
6298
6318
 
6299
6319
$0 [ OPTIONS ] [ TESTCASE ]
6359
6379
  suite[s]=NAME1,..,NAMEN
6360
6380
                        Collect tests in suites from the comma separated
6361
6381
                        list of suite names.
6362
 
                        The default is: "$DEFAULT_SUITES"
 
6382
                        The default is: "@DEFAULT_SUITES"
6363
6383
  skip-rpl              Skip the replication test cases.
6364
6384
  big-test              Also run tests marked as "big". Repeat this option
6365
6385
                        twice to run only "big" tests.