mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
merge
This commit is contained in:
commit
9aa7484cfe
21 changed files with 52 additions and 24 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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*
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
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);
|
||||
|
|
|
@ -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...
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# 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
|
||||
|
|
|
@ -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\n2\n3\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
|
||||
|
|
Loading…
Reference in a new issue