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
1045f452
Commit
1045f452
authored
Oct 01, 2010
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
0ac08173
3c8814cb
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
52 additions
and
24 deletions
+52
-24
client/mysqltest.cc
client/mysqltest.cc
+5
-3
mysql-test/collections/default.experimental
mysql-test/collections/default.experimental
+0
-2
mysql-test/collections/default.weekly
mysql-test/collections/default.weekly
+2
-1
mysql-test/suite/parts/inc/partition_check_drop.inc
mysql-test/suite/parts/inc/partition_check_drop.inc
+5
-4
mysql-test/suite/parts/inc/partition_crash.inc
mysql-test/suite/parts/inc/partition_crash.inc
+3
-3
mysql-test/suite/parts/inc/partition_fail.inc
mysql-test/suite/parts/inc/partition_fail.inc
+2
-0
mysql-test/suite/parts/inc/partition_layout.inc
mysql-test/suite/parts/inc/partition_layout.inc
+1
-1
mysql-test/suite/parts/inc/partition_layout_check1.inc
mysql-test/suite/parts/inc/partition_layout_check1.inc
+1
-1
mysql-test/suite/parts/inc/partition_layout_check2.inc
mysql-test/suite/parts/inc/partition_layout_check2.inc
+1
-1
mysql-test/suite/parts/r/partition_recover_myisam.result
mysql-test/suite/parts/r/partition_recover_myisam.result
+1
-1
mysql-test/suite/parts/r/partition_special_myisam.result
mysql-test/suite/parts/r/partition_special_myisam.result
+1
-1
mysql-test/suite/parts/t/part_supported_sql_func_innodb.test
mysql-test/suite/parts/t/part_supported_sql_func_innodb.test
+3
-0
mysql-test/suite/parts/t/partition_alter1_1_2_innodb.test
mysql-test/suite/parts/t/partition_alter1_1_2_innodb.test
+3
-0
mysql-test/suite/parts/t/partition_alter1_2_innodb.test
mysql-test/suite/parts/t/partition_alter1_2_innodb.test
+3
-0
mysql-test/suite/parts/t/partition_alter2_1_1_innodb.test
mysql-test/suite/parts/t/partition_alter2_1_1_innodb.test
+3
-0
mysql-test/suite/parts/t/partition_alter2_1_2_innodb.test
mysql-test/suite/parts/t/partition_alter2_1_2_innodb.test
+3
-0
mysql-test/suite/parts/t/partition_alter2_2_2_innodb.test
mysql-test/suite/parts/t/partition_alter2_2_2_innodb.test
+3
-0
mysql-test/suite/parts/t/partition_alter4_innodb.test
mysql-test/suite/parts/t/partition_alter4_innodb.test
+3
-0
mysql-test/suite/parts/t/partition_debug_sync_innodb.test
mysql-test/suite/parts/t/partition_debug_sync_innodb.test
+2
-0
mysql-test/suite/parts/t/partition_recover_myisam.test
mysql-test/suite/parts/t/partition_recover_myisam.test
+1
-1
mysql-test/suite/parts/t/partition_special_myisam.test
mysql-test/suite/parts/t/partition_special_myisam.test
+6
-5
No files found.
client/mysqltest.cc
View file @
1045f452
...
...
@@ -447,7 +447,7 @@ struct st_command
char
*
query
,
*
query_buf
,
*
first_argument
,
*
last_argument
,
*
end
;
DYNAMIC_STRING
content
;
int
first_word_len
,
query_len
;
my_bool
abort_on_error
;
my_bool
abort_on_error
,
used_replace
;
struct
st_expected_errors
expected_errors
;
char
require_file
[
FN_REFLEN
];
enum
enum_commands
type
;
...
...
@@ -3414,7 +3414,7 @@ static int get_list_files(DYNAMIC_STRING *ds, const DYNAMIC_STRING *ds_dirname,
if
(
ds_wild
&&
ds_wild
->
length
&&
wild_compare
(
file
->
name
,
ds_wild
->
str
,
0
))
continue
;
dynstr_append
(
ds
,
file
->
name
);
replace_
dynstr_append
(
ds
,
file
->
name
);
dynstr_append
(
ds
,
"
\n
"
);
}
set_wild_chars
(
0
);
...
...
@@ -3444,6 +3444,7 @@ static void do_list_files(struct st_command *command)
{
"file"
,
ARG_STRING
,
FALSE
,
&
ds_wild
,
"Filename (incl. wildcard)"
}
};
DBUG_ENTER
(
"do_list_files"
);
command
->
used_replace
=
1
;
check_command_args
(
command
,
command
->
first_argument
,
list_files_args
,
...
...
@@ -3485,6 +3486,7 @@ static void do_list_files_write_file_command(struct st_command *command,
{
"file"
,
ARG_STRING
,
FALSE
,
&
ds_wild
,
"Filename (incl. wildcard)"
}
};
DBUG_ENTER
(
"do_list_files_write_file"
);
command
->
used_replace
=
1
;
check_command_args
(
command
,
command
->
first_argument
,
list_files_args
,
...
...
@@ -8479,7 +8481,7 @@ int main(int argc, char **argv)
memset
(
&
saved_expected_errors
,
0
,
sizeof
(
saved_expected_errors
));
}
if
(
command_executed
!=
last_command_executed
)
if
(
command_executed
!=
last_command_executed
||
command
->
used_replace
)
{
/*
As soon as any command has been executed,
...
...
mysql-test/collections/default.experimental
View file @
1045f452
...
...
@@ -24,8 +24,6 @@ main.sp @solaris # Bug#47791 2010-01-20 alik Several tes
main.type_float @freebsd # Bug#38965 2010-05-04 alik test cases gis-rtree, type_float, type_newdecimal fail in embedded server
main.wait_timeout @solaris # Bug#51244 2010-04-26 alik wait_timeout fails on OpenSolaris
parts.partition_alter4_innodb # Bug#45299 2010-06-28 alik Test "partition_alter4_innodb" is taking too long, timeout
rpl.rpl_heartbeat_basic # BUG#54820 2010-06-26 alik rpl.rpl_heartbeat_basic fails sporadically again
rpl.rpl_heartbeat_2slaves # BUG#43828 2009-10-22 luis fails sporadically
rpl.rpl_innodb_bug28430* # Bug#46029
...
...
mysql-test/collections/default.weekly
View file @
1045f452
perl mysql-test-run.pl --timer --force --comment=1st --experimental=collections/default.experimental 1st
perl mysql-test-run.pl --timer --force --comment=1st --experimental=collections/default.experimental 1st
perl mysql-test-run.pl --timer --force --comment=big-tests --experimental=collections/default.experimental --vardir=var-big-tests --big-test --testcase-timeout=60 --suite-timeout=600 parts.part_supported_sql_func_innodb parts.partition_alter1_1_2_innodb parts.partition_alter1_1_2_ndb parts.partition_alter1_1_ndb parts.partition_alter1_2_innodb parts.partition_alter1_2_ndb parts.partition_alter2_1_1_innodb parts.partition_alter2_1_2_innodb parts.partition_alter2_2_2_innodb parts.partition_alter4_innodb main.variables-big rpl_ndb.rpl_truncate_7ndb_2
mysql-test/suite/parts/inc/partition_check_drop.inc
View file @
1045f452
...
...
@@ -26,10 +26,12 @@ if ($do_file_tests)
{
let
$ls_file
=
$MYSQLD_DATADIR
/
test
/
tmp2
;
# List the files belonging to the table t1
--
replace_result
$MYSQLTEST_VARDIR
\
$MYSQLTEST_VARDIR
#p# #P# #sp# #SP#
--
list_files_write_file
$ls_file
$MYSQLD_DATADIR
/
test
t1
*
--
chmod
0644
$ls_file
if
(
$with_directories
)
{
--
replace_result
$MYSQLTEST_VARDIR
\
$MYSQLTEST_VARDIR
#p# #P# #sp# #SP#
--
list_files_append_file
$ls_file
$MYSQLTEST_VARDIR
/
tmp
t1
*
}
eval
SET
@
aux
=
load_file
(
'$ls_file'
);
...
...
@@ -60,16 +62,15 @@ if ($found_garbage)
--
echo
# <alter partitioning> worked incomplete.
--
echo
# We found:
# Print the list of files into the protocol
eval
SELECT
REPLACE
(
file_list
,
'$MYSQLTEST_VARDIR'
,
'\$MYSQLTEST_VARDIR'
)
AS
"unified filelist"
eval
SELECT
file_list
AS
"unified filelist"
FROM
t0_definition
WHERE
state
=
'old'
;
}
# Do a manual cleanup, because the following tests should not suffer from
# remaining files
--
exec
rm
-
f
$MYSQLD_DATADIR
/
test
/
t1
*
||
true
--
remove_files_wildcard
$MYSQLD_DATADIR
/
test
t1
*
if
(
$with_directories
)
{
--
exec
rm
-
f
$MYSQLTEST_VARDIR
/
tmp
/
t1
*
||
true
--
remove_files_wildcard
$MYSQLTEST_VARDIR
/
tmp
t1
*
}
}
--
enable_query_log
mysql-test/suite/parts/inc/partition_crash.inc
View file @
1045f452
...
...
@@ -3,7 +3,7 @@
--
eval
$create_statement
--
eval
$insert_statement
--
echo
# State before crash
--
replace_result
#p# #P#
--
replace_result
#p# #P#
#sp# #SP#
--
list_files
$DATADIR
/
test
SHOW
CREATE
TABLE
t1
;
--
sorted_result
...
...
@@ -14,13 +14,13 @@ SELECT * FROM t1;
--
error
2013
--
eval
$crash_statement
--
echo
# State after crash (before recovery)
--
replace_regex
/
sqlx
.*
\
./
sqlx
-
nnnn_nnnn
./
/
#p#/#P#/
--
replace_regex
/
sqlx
.*
\
./
sqlx
-
nnnn_nnnn
./
/
#p#/#P#/
/#sp#/#SP#/ /#tmp#/#TMP#/
--
list_files
$DATADIR
/
test
--
exec
echo
"restart"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqld
.
1.
expect
--
enable_reconnect
--
source
include
/
wait_until_connected_again
.
inc
--
echo
# State after crash recovery
--
replace_result
#p# #P#
--
replace_result
#p# #P#
#sp# #SP#
--
list_files
$DATADIR
/
test
SHOW
CREATE
TABLE
t1
;
--
sorted_result
...
...
mysql-test/suite/parts/inc/partition_fail.inc
View file @
1045f452
...
...
@@ -3,6 +3,7 @@
--
eval
$create_statement
--
eval
$insert_statement
--
echo
# State before failure
--
replace_result
#p# #P# #sp# #SP#
--
list_files
$DATADIR
/
test
SHOW
CREATE
TABLE
t1
;
--
sorted_result
...
...
@@ -11,6 +12,7 @@ SELECT * FROM t1;
--
eval
$fail_statement
--
enable_abort_on_error
--
echo
# State after failure
--
replace_result
#p# #P# #sp# #SP#
--
list_files
$DATADIR
/
test
SHOW
CREATE
TABLE
t1
;
--
sorted_result
...
...
mysql-test/suite/parts/inc/partition_layout.inc
View file @
1045f452
...
...
@@ -10,6 +10,6 @@ eval SHOW CREATE TABLE t1;
if
(
$ls
)
{
let
$MYSQLD_DATADIR
=
`select @@datadir`
;
--
replace_result
$MYSQLD_DATADIR
MYSQLD_DATADIR
--
replace_result
$MYSQLD_DATADIR
MYSQLD_DATADIR
#p# #P# #sp# #SP#
--
list_files
$MYSQLD_DATADIR
/
test
t1
*
}
mysql-test/suite/parts/inc/partition_layout_check1.inc
View file @
1045f452
...
...
@@ -69,7 +69,7 @@ if ($do_file_tests)
if
(
$ls
)
{
# Print the list of files into the protocol
replace_result
$MYSQLD_DATADIR
MYSQLD_DATADIR
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
;
replace_result
$MYSQLD_DATADIR
MYSQLD_DATADIR
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
#p# #P# #sp# #SP# part_n part_N
;
SELECT
file_list
AS
"unified filelist"
FROM
t0_definition
WHERE
state
=
'old'
;
}
...
...
mysql-test/suite/parts/inc/partition_layout_check2.inc
View file @
1045f452
...
...
@@ -65,7 +65,7 @@ let $run= `SELECT @aux`;
if
(
$run
)
{
--
vertical_results
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
#p# #P# #sp# #SP#
SELECT
state
,
REPLACE
(
create_command
,
'\n'
,
' '
)
AS
"Table definition"
,
REPLACE
(
file_list
,
'\n'
,
' '
)
AS
"File list"
...
...
mysql-test/suite/parts/r/partition_recover_myisam.result
View file @
1045f452
call mtr.add_suppression("
./test/
t1_will_crash");
call mtr.add_suppression("t1_will_crash");
call mtr.add_suppression("Got an error from unknown thread");
CREATE TABLE t1_will_crash (a INT, KEY (a)) ENGINE=MyISAM;
INSERT INTO t1_will_crash VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11);
...
...
mysql-test/suite/parts/r/partition_special_myisam.result
View file @
1045f452
...
...
@@ -214,7 +214,7 @@ SET lock_wait_timeout = 2;
ALTER TABLE t1 COALESCE PARTITION 2;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
# Connection 3 tries to load into the table:
LOAD DATA
LOCAL INFILE '/tmp/
load.in' INTO TABLE t1 (f);
LOAD DATA
INFILE '
load.in' INTO TABLE t1 (f);
# Connection 1 commits the transaction
COMMIT;
# Connection 3...
...
...
mysql-test/suite/parts/t/part_supported_sql_func_innodb.test
View file @
1045f452
...
...
@@ -28,6 +28,9 @@ let $do_long_tests= 1;
# The server must support partitioning.
--
source
include
/
have_partition
.
inc
# This test takes long time, so only run it with the --big mtr-flag.
--
source
include
/
big_test
.
inc
#------------------------------------------------------------------------------#
# Engine specific settings and requirements
...
...
mysql-test/suite/parts/t/partition_alter1_1_2_innodb.test
View file @
1045f452
...
...
@@ -46,6 +46,9 @@ let $more_pk_ui_tests= 0;
# The server must support partitioning.
--
source
include
/
have_partition
.
inc
# This test takes long time, so only run it with the --big mtr-flag.
--
source
include
/
big_test
.
inc
#------------------------------------------------------------------------------#
# Engine specific settings and requirements
...
...
mysql-test/suite/parts/t/partition_alter1_2_innodb.test
View file @
1045f452
...
...
@@ -46,6 +46,9 @@ let $more_pk_ui_tests= 0;
# The server must support partitioning.
--
source
include
/
have_partition
.
inc
# This test takes long time, so only run it with the --big mtr-flag.
--
source
include
/
big_test
.
inc
#------------------------------------------------------------------------------#
# Engine specific settings and requirements
...
...
mysql-test/suite/parts/t/partition_alter2_1_1_innodb.test
View file @
1045f452
...
...
@@ -45,6 +45,9 @@ let $only_part_1= 1;
# The server must support partitioning.
--
source
include
/
have_partition
.
inc
# This test takes long time, so only run it with the --big mtr-flag.
--
source
include
/
big_test
.
inc
#------------------------------------------------------------------------------#
# Engine specific settings and requirements
...
...
mysql-test/suite/parts/t/partition_alter2_1_2_innodb.test
View file @
1045f452
...
...
@@ -45,6 +45,9 @@ let $only_part_2= 1;
# The server must support partitioning.
--
source
include
/
have_partition
.
inc
# This test takes long time, so only run it with the --big mtr-flag.
--
source
include
/
big_test
.
inc
#------------------------------------------------------------------------------#
# Engine specific settings and requirements
...
...
mysql-test/suite/parts/t/partition_alter2_2_2_innodb.test
View file @
1045f452
...
...
@@ -45,6 +45,9 @@ let $only_part_2= 1;
# The server must support partitioning.
--
source
include
/
have_partition
.
inc
# This test takes long time, so only run it with the --big mtr-flag.
--
source
include
/
big_test
.
inc
#------------------------------------------------------------------------------#
# Engine specific settings and requirements
...
...
mysql-test/suite/parts/t/partition_alter4_innodb.test
View file @
1045f452
...
...
@@ -43,6 +43,9 @@ let $more_pk_ui_tests= 0;
# The server must support partitioning.
--
source
include
/
have_partition
.
inc
# This test takes long time, so only run it with the --big mtr-flag.
--
source
include
/
big_test
.
inc
#------------------------------------------------------------------------------#
# Engine specific settings and requirements
...
...
mysql-test/suite/parts/t/partition_debug_sync_innodb.test
View file @
1045f452
...
...
@@ -56,6 +56,7 @@ partition by range (a)
insert
into
t1
values
(
1
),
(
11
),
(
21
),
(
33
);
SELECT
*
FROM
t1
;
SHOW
CREATE
TABLE
t1
;
--
replace_result
#p# #P# #sp# #SP#
--
list_files
$MYSQLD_DATADIR
/
test
SET
DEBUG_SYNC
=
'before_open_in_get_all_tables SIGNAL parked WAIT_FOR open'
;
...
...
@@ -78,6 +79,7 @@ ALTER TABLE t1 REORGANIZE PARTITION p0 INTO
disconnect
con1
;
connection
default
;
--
reap
--
replace_result
#p# #P# #sp# #SP#
--
list_files
$MYSQLD_DATADIR
/
test
SHOW
CREATE
TABLE
t1
;
SELECT
*
FROM
t1
;
...
...
mysql-test/suite/parts/t/partition_recover_myisam.test
View file @
1045f452
# test the auto-recover (--myisam-recover) of partitioned myisam tables
call
mtr
.
add_suppression
(
"
./test/
t1_will_crash"
);
call
mtr
.
add_suppression
(
"t1_will_crash"
);
call
mtr
.
add_suppression
(
"Got an error from unknown thread"
);
--
source
include
/
have_partition
.
inc
...
...
mysql-test/suite/parts/t/partition_special_myisam.test
View file @
1045f452
...
...
@@ -62,13 +62,14 @@ ALTER TABLE t1 COALESCE PARTITION 2;
--
connect
(
con3
,
localhost
,
root
,,)
perl
;
open
(
LD
,
">"
.
"/tmp/load.in"
)
||
die
"Could not open file for writing "
.
$ENV
{
'MYSQLTEST_DATADIR'
}
.
"/test/load.in"
;
print
LD
"1
\n
2
\n
3
\n
"
;
close
(
LD
);
--
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
--
write_file
$MYSQLD_DATADIR
/
test
/
load
.
in
1
2
3
EOF
--
echo
# Connection 3 tries to load into the table:
send
LOAD
DATA
LOCAL
INFILE
'/tmp/
load.in'
INTO
TABLE
t1
(
f
);
send
LOAD
DATA
INFILE
'
load.in'
INTO
TABLE
t1
(
f
);
--
connection
default
--
real_sleep
1
...
...
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