Commit 0880486a authored by unknown's avatar unknown

ndb - autotest

  fixes


ndb/test/run-test/conf-daily-basic-dl145a.txt:
  dl145 uses /home for running
ndb/test/run-test/make-config.sh:
  output d.txt aswell
ndb/test/run-test/ndb-autotest.sh:
  more scripts updates
parent 3e64797c
baseport: 16000 baseport: 16000
basedir: /space/autotest basedir: /home/ndbdev/autotest/run
mgm: CHOOSE_host1 mgm: CHOOSE_host1
ndb: CHOOSE_host2 CHOOSE_host3 ndb: CHOOSE_host2 CHOOSE_host3
api: CHOOSE_host1 CHOOSE_host1 CHOOSE_host1 api: CHOOSE_host1 CHOOSE_host1 CHOOSE_host1
...@@ -11,7 +11,7 @@ DataMemory: 300M ...@@ -11,7 +11,7 @@ DataMemory: 300M
BackupMemory: 64M BackupMemory: 64M
MaxNoOfConcurrentScans: 100 MaxNoOfConcurrentScans: 100
DataDir: . DataDir: .
FileSystemPath: /space/autotest/run FileSystemPath: /home/ndbdev/autotest/run
[MGM DEFAULT] [MGM DEFAULT]
PortNumber: 14000 PortNumber: 14000
......
...@@ -5,6 +5,7 @@ basedir="" ...@@ -5,6 +5,7 @@ basedir=""
proc_no=1 proc_no=1
node_id=1 node_id=1
d_file=/tmp/d.$$
dir_file=/tmp/dirs.$$ dir_file=/tmp/dirs.$$
config_file=/tmp/config.$$ config_file=/tmp/config.$$
cluster_file=/tmp/cluster.$$ cluster_file=/tmp/cluster.$$
...@@ -74,9 +75,13 @@ do ...@@ -74,9 +75,13 @@ do
else else
cnf=/dev/null cnf=/dev/null
fi fi
;; line="";;
*) echo $line >> $cnf *) echo $line >> $cnf; line="";;
esac esac
if [ "$line" ]
then
echo $line >> $d_file
fi
done done
cat $dir_file | xargs mkdir -p cat $dir_file | xargs mkdir -p
...@@ -92,4 +97,5 @@ for i in `find . -type d -name '*.ndb_mgmd'` ...@@ -92,4 +97,5 @@ for i in `find . -type d -name '*.ndb_mgmd'`
cp $config_file $i/config.ini cp $config_file $i/config.ini
done done
mv $d_file d.txt
rm -f $config_file $dir_file $cluster_file rm -f $config_file $dir_file $cluster_file
#!/bin/sh #!/bin/sh
save_args=$* save_args=$*
VERSION="ndb-autotest.sh version 1.02" VERSION="ndb-autotest.sh version 1.03"
DATE=`date '+%Y-%m-%d'` DATE=`date '+%Y-%m-%d'`
export DATE export DATE
...@@ -136,7 +136,7 @@ if [ "$deploy" ] ...@@ -136,7 +136,7 @@ if [ "$deploy" ]
then then
for i in $hosts for i in $hosts
do do
rsync -v -a --delete --force --ignore-errors $run_dir/ $i:$run_dir rsync -a --delete --force --ignore-errors $run_dir/ $i:$run_dir
ok=$? ok=$?
if [ $ok -ne 0 ] if [ $ok -ne 0 ]
then then
...@@ -177,7 +177,7 @@ choose(){ ...@@ -177,7 +177,7 @@ choose(){
} }
choose_conf(){ choose_conf(){
host=`uname -n` host=`hostname -s`
if [ -f $test_dir/conf-$1-$host.txt ] if [ -f $test_dir/conf-$1-$host.txt ]
then then
echo "$test_dir/conf-$1-$host.txt" echo "$test_dir/conf-$1-$host.txt"
...@@ -203,14 +203,14 @@ start(){ ...@@ -203,14 +203,14 @@ start(){
p2=`pwd` p2=`pwd`
cd .. cd ..
tar cfz /tmp/res.$$.tgz `basename $p2`/$DATE tar cfz /tmp/res.$$.tgz `basename $p2`/$DATE
scp /tmp/res.$$.tgz $result_host:$result_path/tmp/res.$DATE.`uname -n`.$$.tgz scp /tmp/res.$$.tgz $result_host:$result_path/res.$DATE.`hostname -s`.$$.tgz
rm -f /tmp/res.$$.tgz rm -f /tmp/res.$$.tgz
} }
count_hosts(){ count_hosts(){
grep "CHOOSE_host" $1 | grep "CHOOSE_host" $1 |
awk '{for(i=1; i<=NF;i++) if(match($i, "CHOOSE_host") > 0) print $i;}' | awk '{for(i=1; i<=NF;i++) if(match($i, "CHOOSE_host") > 0) print $i;}' |
wc -l | sort | uniq | wc -l
} }
p=`pwd` p=`pwd`
...@@ -235,13 +235,12 @@ do ...@@ -235,13 +235,12 @@ do
break; break;
fi fi
run_hosts=`echo $avail_hosts| awk '{for(i=1;i<='$count';i++)print $i;}'` run_hosts=`echo $avail_hosts|awk '{for(i=1;i<='$count';i++)print $i;}'`
choose $conf $run_hosts > $run_dir/d.txt
(cd $run_dir; $mkconfig d.txt )
echo $run_hosts >> /tmp/filter_hosts.$$ echo $run_hosts >> /tmp/filter_hosts.$$
cd $run_dir cd $run_dir
choose $conf $run_hosts > d.tmp
$mkconfig d.tmp
start $dir-mysql-$clone-$target $dir $res_dir & start $dir-mysql-$clone-$target $dir $res_dir &
done done
cd $p cd $p
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment