diff options
author | unknown <joreland@mysql.com> | 2005-05-06 16:14:30 +0200 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2005-05-06 16:14:30 +0200 |
commit | 2e73854c584d0eef93a9a1efc3608018d26b92a3 (patch) | |
tree | 600d6c5b16ed43a296a6c7d91beefe517d2fb30c /ndb | |
parent | 60a0cbd8180ad6a77535085eae8cf9cf708a150b (diff) | |
download | mariadb-git-2e73854c584d0eef93a9a1efc3608018d26b92a3.tar.gz |
ndb - autotest
use newly created script for faster handling of several configurations
ndb/test/run-test/make-config.sh:
put cluster config in same config as distribution config
ndb/test/run-test/ndb-autotest.sh:
1) install mysql_db
2) use make-config script
Diffstat (limited to 'ndb')
-rwxr-xr-x | ndb/test/run-test/make-config.sh | 23 | ||||
-rwxr-xr-x | ndb/test/run-test/ndb-autotest.sh | 7 |
2 files changed, 22 insertions, 8 deletions
diff --git a/ndb/test/run-test/make-config.sh b/ndb/test/run-test/make-config.sh index f76ee320a99..6711eda75bf 100755 --- a/ndb/test/run-test/make-config.sh +++ b/ndb/test/run-test/make-config.sh @@ -7,6 +7,7 @@ node_id=1 dir_file=/tmp/dirs.$$ config_file=/tmp/config.$$ +cluster_file=/tmp/cluster.$$ add_procs(){ type=$1; shift @@ -55,6 +56,7 @@ add_proc (){ } +cnf=/dev/null cat $1 | while read line do case $line in @@ -65,20 +67,29 @@ do ndb:*) add_procs ndb `echo $line | sed 's/ndb[ ]*:[ ]*//g'`;; mysqld:*) add_procs mysqld `echo $line | sed 's/mysqld[ ]*:[ ]*//g'`;; mysql:*) add_procs mysql `echo $line | sed 's/mysql[ ]*:[ ]*//g'`;; + "-- cluster config") + if [ "$cnf" = "/dev/null" ] + then + cnf=$cluster_file + else + cnf=/dev/null + fi + ;; + *) echo $line >> $cnf esac done -cat $dir_file | xargs mkdir +cat $dir_file | xargs mkdir -p -if [ "$2" ] -then - cat $2 $config_file >> /tmp/config2.$$ +if [ -f $cluster_file ] + then + cat $cluster_file $config_file >> /tmp/config2.$$ mv /tmp/config2.$$ $config_file fi for i in `find . -type d -name '*.ndb_mgmd'` -do + do cp $config_file $i/config.ini done -rm -f $config_file $dir_file +rm -f $config_file $dir_file $cluster_file diff --git a/ndb/test/run-test/ndb-autotest.sh b/ndb/test/run-test/ndb-autotest.sh index 397df97d52f..b7d66f4c4c8 100755 --- a/ndb/test/run-test/ndb-autotest.sh +++ b/ndb/test/run-test/ndb-autotest.sh @@ -1,7 +1,7 @@ #!/bin/sh save_args=$* -VERSION="ndb-autotest.sh version 1.0" +VERSION="ndb-autotest.sh version 1.01" DATE=`date '+%Y-%m-%d'` export DATE @@ -76,6 +76,7 @@ then eval $configure --prefix=$run_dir make make install + (cd $run_dir; ./bin/mysql_install_db) fi ### @@ -103,6 +104,8 @@ fi test_dir=$run_dir/mysql-test/ndb atrt=$test_dir/atrt html=$test_dir/make-html-reports.sh +mkconfig=$run_dir/mysql-test/ndb/make-config.sh + PATH=$test_dir:$PATH export PATH @@ -214,7 +217,7 @@ do run_hosts=`echo $avail_hosts| awk '{for(i=1;i<='$count';i++)print $i;}'` choose $run_dir/d.template $run_hosts > $run_dir/d.txt - choose $run_dir/1.ndb_mgmd/initconfig.template $run_hosts > $run_dir/1.ndb_mgmd/config.ini + (cd $run_dir; $mkconfig d.txt ) echo $run_hosts >> /tmp/filter_hosts.$$ cd $run_dir |