1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Make it possible to specify test specifi config file as <testname>.cnf

This commit is contained in:
msvensson@pilot.mysql.com
2008-04-25 14:07:17 +02:00
parent 452c661487
commit 4a490373a2
5 changed files with 17 additions and 5 deletions

View File

@ -754,6 +754,15 @@ sub collect_one_test_case {
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
process_opts_file($tinfo, "$testdir/$tname-slave.opt", 'slave_opt'); process_opts_file($tinfo, "$testdir/$tname-slave.opt", 'slave_opt');
# ----------------------------------------------------------------------
# Check for test specific config file
# ----------------------------------------------------------------------
my $test_cnf_file= "$testdir/$tname.cnf";
if ( -f $test_cnf_file ) {
# Specifies the configuration file to use for this test
$tinfo->{'template_path'}= $test_cnf_file;
}
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# master sh # master sh
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------

View File

@ -1,2 +0,0 @@
--config-file-template=../rpl_1slave_base.cnf

View File

@ -0,0 +1,2 @@
!include ../rpl_1slave_base.cnf

View File

@ -1,3 +0,0 @@
-O max_binlog_size=4096
--config-file-template=../rpl_1slave_base.cnf

View File

@ -0,0 +1,6 @@
!include ../rpl_1slave_base.cnf
[mysqld.1]
max_binlog_size=4096