mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
cleanup: tests
* combine two test files with seemingly the same name * comments
This commit is contained in:
@ -63,3 +63,61 @@ UNLOCK TABLES;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo # End of 10.0 tests
|
||||
--echo #
|
||||
--echo # MDEV-8475 stale .TMM file causes Aria engine to stop serving the table
|
||||
--echo #
|
||||
create table t1 (pk int primary key, i int) engine=MyISAM;
|
||||
insert into t1 values (1,1),(2,2);
|
||||
--let $datadir=`SELECT @@datadir`
|
||||
|
||||
--write_file $datadir/test/t1.TMM
|
||||
EOF
|
||||
|
||||
--connect (con1,localhost,root,,)
|
||||
SHOW CREATE TABLE t1;
|
||||
OPTIMIZE TABLE t1;
|
||||
--disconnect con1
|
||||
|
||||
--connect (con1,localhost,root,,)
|
||||
SHOW CREATE TABLE t1;
|
||||
OPTIMIZE TABLE t1;
|
||||
--disconnect con1
|
||||
|
||||
--connect (con1,localhost,root,,)
|
||||
SHOW CREATE TABLE t1;
|
||||
OPTIMIZE TABLE t1;
|
||||
--disconnect con1
|
||||
|
||||
# Cleanup
|
||||
--connection default
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Test also Aria
|
||||
#
|
||||
|
||||
create table t1 (pk int primary key, i int) engine=aria;
|
||||
insert into t1 values (1,1),(2,2);
|
||||
--let $datadir=`SELECT @@datadir`
|
||||
|
||||
--write_file $datadir/test/t1.TMM
|
||||
EOF
|
||||
|
||||
--connect (con1,localhost,root,,)
|
||||
SHOW CREATE TABLE t1;
|
||||
OPTIMIZE TABLE t1;
|
||||
--disconnect con1
|
||||
|
||||
--connect (con1,localhost,root,,)
|
||||
SHOW CREATE TABLE t1;
|
||||
OPTIMIZE TABLE t1;
|
||||
--disconnect con1
|
||||
|
||||
--connect (con1,localhost,root,,)
|
||||
SHOW CREATE TABLE t1;
|
||||
OPTIMIZE TABLE t1;
|
||||
--disconnect con1
|
||||
|
||||
# Cleanup
|
||||
--connection default
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user