Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ca063824
Commit
ca063824
authored
Nov 10, 2006
by
joerg@trift2
Browse files
Options
Browse Files
Download
Plain Diff
Merge trift2.:/MySQL/M50/push-5.0
into trift2.:/MySQL/M51/push-5.1
parents
ce805aff
e47f753a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
21 deletions
+62
-21
mysql-test/install_test_db.sh
mysql-test/install_test_db.sh
+12
-5
mysql-test/mysql-test-run-shell.sh
mysql-test/mysql-test-run-shell.sh
+28
-10
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+22
-3
mysql-test/t/rename.test
mysql-test/t/rename.test
+0
-3
No files found.
mysql-test/install_test_db.sh
View file @
ca063824
#!/bin/sh
#!/bin/sh
# Copyright (C) 1997-200
2
MySQL AB
# Copyright (C) 1997-200
6
MySQL AB
# For a more info consult the file COPYRIGHT distributed with this file
# For a more info consult the file COPYRIGHT distributed with this file
# This scripts creates the privilege tables db, host, user, tables_priv,
# This scripts creates the privilege tables db, host, user, tables_priv,
...
@@ -7,19 +7,26 @@
...
@@ -7,19 +7,26 @@
if
[
x
$1
=
x
"--bin"
]
;
then
if
[
x
$1
=
x
"--bin"
]
;
then
shift
1
shift
1
BINARY_DIST
=
1
bindir
=
../bin
scriptdir
=
../bin
libexecdir
=
../libexec
# Check if it's a binary distribution or a 'make install'
# Check if it's a binary distribution or a 'make install'
if
test
-x
../libexec/mysqld
if
test
-x
../libexec/mysqld
then
then
execdir
=
../libexec
execdir
=
../libexec
elif
test
-x
../../sbin/mysqld
# RPM installation
then
execdir
=
../../sbin
bindir
=
../../bin
scriptdir
=
../../bin
libexecdir
=
../../libexec
else
else
execdir
=
../bin
execdir
=
../bin
fi
fi
bindir
=
../bin
BINARY_DIST
=
1
fix_bin
=
mysql-test
fix_bin
=
mysql-test
scriptdir
=
../bin
libexecdir
=
../libexec
else
else
execdir
=
../sql
execdir
=
../sql
bindir
=
../client
bindir
=
../client
...
...
mysql-test/mysql-test-run-shell.sh
View file @
ca063824
...
@@ -180,18 +180,29 @@ fi
...
@@ -180,18 +180,29 @@ fi
# Misc. Definitions
# Misc. Definitions
#--
#--
if
[
-d
../sql
]
;
then
# BASEDIR is always above mysql-test directory ...
MYSQL_TEST_DIR
=
`
pwd
`
cd
..
if
[
-d
./sql
]
;
then
SOURCE_DIST
=
1
SOURCE_DIST
=
1
else
else
BINARY_DIST
=
1
BINARY_DIST
=
1
fi
fi
#BASEDIR is always one above mysql-test directory
# ... one level for tar.gz, two levels for a RPM installation
CWD
=
`
pwd
`
if
[
-d
./bin
]
;
then
cd
..
# this is not perfect: we have
BASEDIR
=
`
pwd
`
# /usr/share/mysql/ # mysql-test-run is here, so this is "$MYSQL_TEST_DIR"
cd
$CWD
# /usr/bin/ # with MySQL client programs
MYSQL_TEST_DIR
=
$BASEDIR
/mysql-test
# so the existence of "/usr/share/bin/" would make this test fail.
BASEDIR
=
`
pwd
`
else
cd
..
BASEDIR
=
`
pwd
`
fi
cd
$MYSQL_TEST_DIR
MYSQL_TEST_WINDIR
=
$MYSQL_TEST_DIR
MYSQL_TEST_WINDIR
=
$MYSQL_TEST_DIR
MYSQLTEST_VARDIR
=
$MYSQL_TEST_DIR
/var
MYSQLTEST_VARDIR
=
$MYSQL_TEST_DIR
/var
export
MYSQL_TEST_DIR MYSQL_TEST_WINDIR MYSQLTEST_VARDIR
export
MYSQL_TEST_DIR MYSQL_TEST_WINDIR MYSQLTEST_VARDIR
...
@@ -784,8 +795,15 @@ else
...
@@ -784,8 +795,15 @@ else
if
test
-x
"
$BASEDIR
/libexec/mysqld"
if
test
-x
"
$BASEDIR
/libexec/mysqld"
then
then
MYSQLD
=
"
$VALGRIND
$BASEDIR
/libexec/mysqld"
MYSQLD
=
"
$VALGRIND
$BASEDIR
/libexec/mysqld"
else
elif
test
-x
"
$BASEDIR
/bin/mysqld"
then
MYSQLD
=
"
$VALGRIND
$BASEDIR
/bin/mysqld"
MYSQLD
=
"
$VALGRIND
$BASEDIR
/bin/mysqld"
elif
test
-x
"
$BASEDIR
/sbin/mysqld"
then
MYSQLD
=
"
$VALGRIND
$BASEDIR
/sbin/mysqld"
else
$ECHO
"Fatal error: Cannot find program mysqld in
$BASEDIR
/{libexec,bin,sbin}"
1>&2
exit
1
fi
fi
CLIENT_BINDIR
=
"
$BASEDIR
/bin"
CLIENT_BINDIR
=
"
$BASEDIR
/bin"
if
test
-d
"
$BASEDIR
/tests"
if
test
-d
"
$BASEDIR
/tests"
...
@@ -1406,7 +1424,7 @@ start_master()
...
@@ -1406,7 +1424,7 @@ start_master()
then
then
$ECHO
"set args
$master_args
"
>
$GDB_MASTER_INIT$1
$ECHO
"set args
$master_args
"
>
$GDB_MASTER_INIT$1
$ECHO
"To start gdb for the master , type in another window:"
$ECHO
"To start gdb for the master , type in another window:"
$ECHO
"cd
$
CWD
; gdb -x
$GDB_MASTER_INIT$1
$MASTER_MYSQLD
"
$ECHO
"cd
$
MYSQL_TEST_DIR
; gdb -x
$GDB_MASTER_INIT$1
$MASTER_MYSQLD
"
wait_for_master
=
1500
wait_for_master
=
1500
else
else
(
$ECHO
set
args
$master_args
;
(
$ECHO
set
args
$master_args
;
...
@@ -1563,7 +1581,7 @@ start_slave()
...
@@ -1563,7 +1581,7 @@ start_slave()
then
then
$ECHO
"set args
$slave_args
"
>
$GDB_SLAVE_INIT
$ECHO
"set args
$slave_args
"
>
$GDB_SLAVE_INIT
echo
"To start gdb for the slave, type in another window:"
echo
"To start gdb for the slave, type in another window:"
echo
"cd
$
CWD
; gdb -x
$GDB_SLAVE_INIT
$SLAVE_MYSQLD
"
echo
"cd
$
MYSQL_TEST_DIR
; gdb -x
$GDB_SLAVE_INIT
$SLAVE_MYSQLD
"
wait_for_slave
=
1500
wait_for_slave
=
1500
else
else
(
$ECHO
set
args
$slave_args
;
(
$ECHO
set
args
$slave_args
;
...
...
mysql-test/mysql-test-run.pl
View file @
ca063824
...
@@ -220,6 +220,7 @@ our $opt_ndbconnectstring_slave;
...
@@ -220,6 +220,7 @@ our $opt_ndbconnectstring_slave;
our
$opt_record
;
our
$opt_record
;
our
$opt_check_testcases
;
our
$opt_check_testcases
;
my
$opt_report_features
;
our
$opt_skip
;
our
$opt_skip
;
our
$opt_skip_rpl
;
our
$opt_skip_rpl
;
...
@@ -642,7 +643,7 @@ sub command_line_setup () {
...
@@ -642,7 +643,7 @@ sub command_line_setup () {
$glob_hostname
=
mtr_short_hostname
();
$glob_hostname
=
mtr_short_hostname
();
# 'basedir' is always
parent of "mysql-test" directory
# 'basedir' is always
above "mysql-test" directory ...
$glob_mysql_test_dir
=
cwd
();
$glob_mysql_test_dir
=
cwd
();
if
(
$glob_cygwin_perl
)
if
(
$glob_cygwin_perl
)
{
{
...
@@ -650,11 +651,19 @@ sub command_line_setup () {
...
@@ -650,11 +651,19 @@ sub command_line_setup () {
$glob_mysql_test_dir
=
`
cygpath -m "
$glob_mysql_test_dir
"
`;
$glob_mysql_test_dir
=
`
cygpath -m "
$glob_mysql_test_dir
"
`;
chomp
(
$glob_mysql_test_dir
);
chomp
(
$glob_mysql_test_dir
);
}
}
# ... direct parent for "tar.gz" installations, ...
$glob_basedir
=
dirname
(
$glob_mysql_test_dir
);
$glob_basedir
=
dirname
(
$glob_mysql_test_dir
);
# ... or one more level up, for RPM installations.
if
(
!
-
d
"
$glob_basedir
/bin
"
)
{
$glob_basedir
=
dirname
(
$glob_basedir
);
}
# Expect mysql-bench to be located adjacent to the source tree, by default
# Expect mysql-bench to be located adjacent to the source tree, by default
$glob_mysql_bench_dir
=
"
$glob_basedir
/../mysql-bench
"
$glob_mysql_bench_dir
=
"
$glob_basedir
/../mysql-bench
"
unless
defined
$glob_mysql_bench_dir
;
unless
defined
$glob_mysql_bench_dir
;
$glob_mysql_bench_dir
=
undef
unless
-
d
$glob_mysql_bench_dir
;
$path_my_basedir
=
$path_my_basedir
=
$opt_source_dist
?
$glob_mysql_test_dir
:
$glob_basedir
;
$opt_source_dist
?
$glob_mysql_test_dir
:
$glob_basedir
;
...
@@ -682,7 +691,8 @@ sub command_line_setup () {
...
@@ -682,7 +691,8 @@ sub command_line_setup () {
"
$path_client_bindir
/mysqld-debug
",
"
$path_client_bindir
/mysqld-debug
",
"
$path_client_bindir
/mysqld-max
",
"
$path_client_bindir
/mysqld-max
",
"
$glob_basedir
/libexec/mysqld
",
"
$glob_basedir
/libexec/mysqld
",
"
$glob_basedir
/bin/mysqld
");
"
$glob_basedir
/bin/mysqld
",
"
$glob_basedir
/sbin/mysqld
");
# Use the mysqld found above to find out what features are available
# Use the mysqld found above to find out what features are available
collect_mysqld_features
();
collect_mysqld_features
();
...
@@ -799,6 +809,13 @@ sub command_line_setup () {
...
@@ -799,6 +809,13 @@ sub command_line_setup () {
$opt_vardir
=
"
$glob_mysql_test_dir
/
$opt_vardir
";
$opt_vardir
=
"
$glob_mysql_test_dir
/
$opt_vardir
";
}
}
# Ensure a proper error message
mkpath
("
$opt_vardir
");
unless
(
-
d
$opt_vardir
and
-
w
$opt_vardir
)
{
mtr_error
("
Writable 'var' directory is needed, use the '--vardir' option
");
}
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Set tmpdir
# Set tmpdir
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
...
@@ -1320,7 +1337,9 @@ sub executable_setup_im () {
...
@@ -1320,7 +1337,9 @@ sub executable_setup_im () {
$exe_im
=
$exe_im
=
mtr_exe_maybe_exists
(
mtr_exe_maybe_exists
(
"
$glob_basedir
/server-tools/instance-manager/mysqlmanager
",
"
$glob_basedir
/server-tools/instance-manager/mysqlmanager
",
"
$glob_basedir
/libexec/mysqlmanager
");
"
$glob_basedir
/libexec/mysqlmanager
",
"
$glob_basedir
/bin/mysqlmanager
",
"
$glob_basedir
/sbin/mysqlmanager
");
return
(
$exe_im
eq
"");
return
(
$exe_im
eq
"");
}
}
...
...
mysql-test/t/rename.test
View file @
ca063824
...
@@ -60,9 +60,6 @@ send RENAME TABLE t1 TO t2, t3 to t4;
...
@@ -60,9 +60,6 @@ send RENAME TABLE t1 TO t2, t3 to t4;
connection
con2
;
connection
con2
;
show
tables
;
show
tables
;
UNLOCK
TABLES
;
UNLOCK
TABLES
;
connection
con1
;
reap
;
connection
con2
;
# Wait for the the tables to be renamed
# Wait for the the tables to be renamed
# i.e the query below succeds
# i.e the query below succeds
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment