Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
df803044
Commit
df803044
authored
May 06, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - autotest
use newly created script for faster handling of several configurations
parent
9d0c5428
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
8 deletions
+22
-8
ndb/test/run-test/make-config.sh
ndb/test/run-test/make-config.sh
+17
-6
ndb/test/run-test/ndb-autotest.sh
ndb/test/run-test/ndb-autotest.sh
+5
-2
No files found.
ndb/test/run-test/make-config.sh
View file @
df803044
...
@@ -7,6 +7,7 @@ node_id=1
...
@@ -7,6 +7,7 @@ node_id=1
dir_file
=
/tmp/dirs.
$$
dir_file
=
/tmp/dirs.
$$
config_file
=
/tmp/config.
$$
config_file
=
/tmp/config.
$$
cluster_file
=
/tmp/cluster.
$$
add_procs
(){
add_procs
(){
type
=
$1
;
shift
type
=
$1
;
shift
...
@@ -55,6 +56,7 @@ add_proc (){
...
@@ -55,6 +56,7 @@ add_proc (){
}
}
cnf
=
/dev/null
cat
$1
|
while
read
line
cat
$1
|
while
read
line
do
do
case
$line
in
case
$line
in
...
@@ -65,20 +67,29 @@ do
...
@@ -65,20 +67,29 @@ do
ndb:
*
)
add_procs ndb
`
echo
$line
|
sed
's/ndb[ ]*:[ ]*//g'
`
;;
ndb:
*
)
add_procs ndb
`
echo
$line
|
sed
's/ndb[ ]*:[ ]*//g'
`
;;
mysqld:
*
)
add_procs mysqld
`
echo
$line
|
sed
's/mysqld[ ]*:[ ]*//g'
`
;;
mysqld:
*
)
add_procs mysqld
`
echo
$line
|
sed
's/mysqld[ ]*:[ ]*//g'
`
;;
mysql:
*
)
add_procs mysql
`
echo
$line
|
sed
's/mysql[ ]*:[ ]*//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
esac
done
done
cat
$dir_file
| xargs
mkdir
cat
$dir_file
| xargs
mkdir
-p
if
[
"
$2
"
]
if
[
-f
$cluster_file
]
then
then
cat
$
2
$config_file
>>
/tmp/config2.
$$
cat
$
cluster_file
$config_file
>>
/tmp/config2.
$$
mv
/tmp/config2.
$$
$config_file
mv
/tmp/config2.
$$
$config_file
fi
fi
for
i
in
`
find
.
-type
d
-name
'*.ndb_mgmd'
`
for
i
in
`
find
.
-type
d
-name
'*.ndb_mgmd'
`
do
do
cp
$config_file
$i
/config.ini
cp
$config_file
$i
/config.ini
done
done
rm
-f
$config_file
$dir_file
rm
-f
$config_file
$dir_file
$cluster_file
ndb/test/run-test/ndb-autotest.sh
View file @
df803044
#!/bin/sh
#!/bin/sh
save_args
=
$*
save_args
=
$*
VERSION
=
"ndb-autotest.sh version 1.0"
VERSION
=
"ndb-autotest.sh version 1.0
1
"
DATE
=
`
date
'+%Y-%m-%d'
`
DATE
=
`
date
'+%Y-%m-%d'
`
export
DATE
export
DATE
...
@@ -76,6 +76,7 @@ then
...
@@ -76,6 +76,7 @@ then
eval
$configure
--prefix
=
$run_dir
eval
$configure
--prefix
=
$run_dir
make
make
make
install
make
install
(
cd
$run_dir
;
./bin/mysql_install_db
)
fi
fi
###
###
...
@@ -103,6 +104,8 @@ fi
...
@@ -103,6 +104,8 @@ fi
test_dir
=
$run_dir
/mysql-test/ndb
test_dir
=
$run_dir
/mysql-test/ndb
atrt
=
$test_dir
/atrt
atrt
=
$test_dir
/atrt
html
=
$test_dir
/make-html-reports.sh
html
=
$test_dir
/make-html-reports.sh
mkconfig
=
$run_dir
/mysql-test/ndb/make-config.sh
PATH
=
$test_dir
:
$PATH
PATH
=
$test_dir
:
$PATH
export
PATH
export
PATH
...
@@ -214,7 +217,7 @@ do
...
@@ -214,7 +217,7 @@ do
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
$run_dir
/d.template
$run_hosts
>
$run_dir
/d.txt
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.
$$
echo
$run_hosts
>>
/tmp/filter_hosts.
$$
cd
$run_dir
cd
$run_dir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment