config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/innodb/t/tablespace_portability.test

--echo #
--echo # Non-Windows version of Tablespace Portability test.
--echo #
--echo # This testcase is related to WL#5980 & WL#6205.
--echo # It tests whether datafiles can be copied from one location
--echo # to another, and still be opened. In order to make this testcase run
--echo # on any OS, we create the tablespaces here.
--echo #

# On Windows, MTR converts '\' to '/' in file names.
# On other systems, '\' is left unchanged.
# So this output file is different from the Windows version.

--source include/have_innodb_16k.inc
--source include/not_embedded.inc
--source include/not_windows.inc

SET DEFAULT_STORAGE_ENGINE=InnoDB;

--echo #
--echo # Try to create a tablespace in a read-only directory.
--echo #
# This section is does not work on Windows since it uses chmod to prevent
# a file from being created in that directory.  On Windows, the user is often
# an Administrator who can still create files in that directory
--mkdir $MYSQL_TMP_DIR/read_only_dir
--chmod 0444 $MYSQL_TMP_DIR/read_only_dir
--replace_result $MYSQL_TMP_DIR MYSQL_TMP_DIR
--error ER_CREATE_FILEGROUP_FAILED
eval CREATE TABLESPACE s7_def ADD DATAFILE '$MYSQL_TMP_DIR/read_only_dir/s7.ibd';
SHOW WARNINGS;
--rmdir $MYSQL_TMP_DIR/read_only_dir

--disable_query_log
call mtr.add_suppression("\\[ERROR\\] InnoDB: The error means mysqld does not have the access rights to the directory.");
call mtr.add_suppression("\\[ERROR\\] InnoDB: Cannot create file");
call mtr.add_suppression("\\[Warning\\] InnoDB: Converting backslash to forward slash in ADD DATAFILE");
--enable_query_log

--source suite/innodb/include/tablespace_filenames.inc
--source suite/innodb/include/tablespace_portability.inc


Man Man