#!/bin/bash #Need an argument for the test file create_my_cnf() { my_cnf=$1.cnf if [[ "$2" == "simple" ]] then echo "!include include/default_my.cnf" > ${my_cnf} else echo "!include suite/rpl/rpl_1slave_base.cnf" > ${my_cnf} fi cat >> ${my_cnf} < $1.test <> $1.test <> $1.test <> $1-master.opt < $1-slave.opt <> $1.test < var/create.sql < var/query.sql <