~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/perl
2
 
#
3
 
# Copyright (C) 2008
4
 
5
 
# This program is free software; you can redistribute it and/or modify
6
 
# it under the terms of the GNU General Public License as published by
7
 
# the Free Software Foundation; version 2 of the License.
8
 
9
 
# This program is distributed in the hope that it will be useful,
10
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
# GNU General Public License for more details.
13
 
14
 
# You should have received a copy of the GNU General Public License
15
 
# along with this program; if not, write to the Free Software
16
 
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
17
 
18
2
# ======================================================================
19
3
#                     MySQL server stress test system 
20
4
# ======================================================================
136
120
$pid_file="mysql_stress_test.pid";
137
121
$opt_mysqltest= ($^O =~ /mswin32/i) ? "mysqltest.exe" : "mysqltest";
138
122
$opt_check_tests_file="";
139
 
@mysqltest_args=("--silent", "-v");
 
123
@mysqltest_args=("--silent", "-v", "--skip-safemalloc");
140
124
 
141
125
# Client ip address
142
126
$client_ip=inet_ntoa((gethostbyname(hostname()))[4]);
450
434
#Adding mysql server specific command line options for mysqltest binary
451
435
#
452
436
$opt_server_host= $opt_server_host ? $opt_server_host : "localhost";
453
 
$opt_server_port= $opt_server_port ? $opt_server_port : "4427";
 
437
$opt_server_port= $opt_server_port ? $opt_server_port : "3306";
454
438
$opt_server_user= $opt_server_user ? $opt_server_user : "root";
455
439
$opt_server_socket= $opt_server_socket ? $opt_server_socket : "/tmp/mysql.sock";
456
440
$opt_server_database= $opt_server_database ? $opt_server_database : "test";
463
447
unshift @mysqltest_args, "--database=$opt_server_database";
464
448
 
465
449
#Export variables that could be used in tests
466
 
$ENV{DRIZZLE_TEST_DIR}=$test_dataset_dir;
 
450
$ENV{MYSQL_TEST_DIR}=$test_dataset_dir;
467
451
$ENV{MASTER_MYPORT}=$opt_server_port;
468
452
$ENV{MASTER_MYSOCK}=$opt_server_socket;
469
453