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
97380c69
Commit
97380c69
authored
Aug 31, 2007
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb autotest
add --tag remove prepended mysql- add conf-test.cnf add embryo upgrade-boot.sh
parent
44ff2d8b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
275 additions
and
8 deletions
+275
-8
storage/ndb/test/run-test/Makefile.am
storage/ndb/test/run-test/Makefile.am
+1
-1
storage/ndb/test/run-test/autotest-boot.sh
storage/ndb/test/run-test/autotest-boot.sh
+29
-6
storage/ndb/test/run-test/autotest-run.sh
storage/ndb/test/run-test/autotest-run.sh
+1
-1
storage/ndb/test/run-test/conf-test.cnf
storage/ndb/test/run-test/conf-test.cnf
+26
-0
storage/ndb/test/run-test/upgrade-boot.sh
storage/ndb/test/run-test/upgrade-boot.sh
+218
-0
No files found.
storage/ndb/test/run-test/Makefile.am
View file @
97380c69
...
@@ -23,7 +23,7 @@ include $(top_srcdir)/storage/ndb/config/type_ndbapitools.mk.am
...
@@ -23,7 +23,7 @@ include $(top_srcdir)/storage/ndb/config/type_ndbapitools.mk.am
test_PROGRAMS
=
atrt
test_PROGRAMS
=
atrt
test_DATA
=
daily-basic-tests.txt daily-devel-tests.txt 16node-tests.txt
\
test_DATA
=
daily-basic-tests.txt daily-devel-tests.txt 16node-tests.txt
\
conf-ndbmaster.cnf
\
conf-ndbmaster.cnf
\
conf-dl145a.cnf test-tests.txt
conf-dl145a.cnf test-tests.txt
conf-test.cnf
test_SCRIPTS
=
atrt-analyze-result.sh atrt-gather-result.sh atrt-setup.sh
\
test_SCRIPTS
=
atrt-analyze-result.sh atrt-gather-result.sh atrt-setup.sh
\
atrt-clear-result.sh autotest-run.sh
atrt-clear-result.sh autotest-run.sh
...
...
storage/ndb/test/run-test/autotest-boot.sh
View file @
97380c69
...
@@ -24,7 +24,10 @@ verbose=0
...
@@ -24,7 +24,10 @@ verbose=0
do_clone
=
yes
do_clone
=
yes
build
=
yes
build
=
yes
tag
=
conf
=
conf
=
extra_args
=
extra_clone
=
LOCK
=
$HOME
/.autotest-lock
LOCK
=
$HOME
/.autotest-lock
############################
############################
...
@@ -40,6 +43,8 @@ do
...
@@ -40,6 +43,8 @@ do
--clone
=
*
)
clone
=
`
echo
$1
|
sed
s/--clone
=
//
`
;;
--clone
=
*
)
clone
=
`
echo
$1
|
sed
s/--clone
=
//
`
;;
--version
)
echo
$VERSION
;
exit
;;
--version
)
echo
$VERSION
;
exit
;;
--conf
=
*
)
conf
=
`
echo
$1
|
sed
s/--conf
=
//
`
;;
--conf
=
*
)
conf
=
`
echo
$1
|
sed
s/--conf
=
//
`
;;
--tag
=
*
)
tag
=
`
echo
$1
|
sed
s/--tag
=
//
`
;;
--
*
)
echo
"Unknown arg:
$1
"
;;
*
)
RUN
=
$*
;;
*
)
RUN
=
$*
;;
esac
esac
shift
shift
...
@@ -52,14 +57,20 @@ done
...
@@ -52,14 +57,20 @@ done
#################################
#################################
if
[
-z
"
$conf
"
]
if
[
-z
"
$conf
"
]
then
then
conf
=
`
pwd
`
/autotest.conf
if
[
-f
"
`
pwd
`
/autotest.conf"
]
then
conf
=
"
`
pwd
`
/autotest.conf"
elif
[
-f
"
$HOME
/autotest.conf"
]
then
conf
=
"
$HOME
/autotest.conf"
fi
fi
fi
if
[
-f
$conf
]
if
[
-f
$conf
]
then
then
.
$conf
.
$conf
else
else
echo
"Can't find config file:
$conf
"
echo
"Can't find config file:
>
$conf
<
"
exit
exit
fi
fi
...
@@ -92,7 +103,7 @@ fi
...
@@ -92,7 +103,7 @@ fi
# Setup the clone source location #
# Setup the clone source location #
####################################
####################################
src_clone
=
$
src_clone_base
-
$clone
src_clone
=
$
{
src_clone_base
}${
clone
}
#######################################
#######################################
# Check to see if the lock file exists#
# Check to see if the lock file exists#
...
@@ -125,7 +136,14 @@ fi
...
@@ -125,7 +136,14 @@ fi
# You can add more to this path#
# You can add more to this path#
################################
################################
dst_place
=
${
build_dir
}
/clone-mysql-
$clone
-
$DATE
.
$$
if
[
-z
"
$tag
"
]
then
dst_place
=
${
build_dir
}
/clone-
$clone
-
$DATE
.
$$
else
dst_place
=
${
build_dir
}
/clone-
$tag
-
$DATE
.
$$
extra_args
=
"
$extra_args
--clone=
$tag
"
extra_clone
=
"-r
$tag
"
fi
#########################################
#########################################
# Delete source and pull down the latest#
# Delete source and pull down the latest#
...
@@ -134,7 +152,12 @@ dst_place=${build_dir}/clone-mysql-$clone-$DATE.$$
...
@@ -134,7 +152,12 @@ dst_place=${build_dir}/clone-mysql-$clone-$DATE.$$
if
[
"
$do_clone
"
]
if
[
"
$do_clone
"
]
then
then
rm
-rf
$dst_place
rm
-rf
$dst_place
bk clone
$src_clone
$dst_place
if
[
`
echo
$src_clone
|
grep
-c
'file:\/\/'
`
=
1
]
then
bk clone
-l
$extra_clone
$src_clone
$dst_place
else
bk clone
$extra_clone
$src_clone
$dst_place
fi
fi
fi
##########################################
##########################################
...
@@ -156,7 +179,7 @@ fi
...
@@ -156,7 +179,7 @@ fi
################################
################################
script
=
$install_dir
/mysql-test/ndb/autotest-run.sh
script
=
$install_dir
/mysql-test/ndb/autotest-run.sh
$script
$save_args
--conf
=
$conf
--install-dir
=
$install_dir
--suite
=
$RUN
--nolock
sh
-x
$script
$save_args
--conf
=
$conf
--install-dir
=
$install_dir
--suite
=
$RUN
--nolock
$extra_args
if
[
"
$build
"
]
if
[
"
$build
"
]
then
then
...
...
storage/ndb/test/run-test/autotest-run.sh
View file @
97380c69
...
@@ -246,7 +246,7 @@ cd $res_dir
...
@@ -246,7 +246,7 @@ cd $res_dir
echo
"date=
$DATE
"
>
info.txt
echo
"date=
$DATE
"
>
info.txt
echo
"suite=
$RUN
"
>>
info.txt
echo
"suite=
$RUN
"
>>
info.txt
echo
"clone=
mysql-
$clone
"
>>
info.txt
echo
"clone=
$clone
"
>>
info.txt
echo
"arch=
$target
"
>>
info.txt
echo
"arch=
$target
"
>>
info.txt
find
.
| xargs
chmod
ugo+r
find
.
| xargs
chmod
ugo+r
...
...
storage/ndb/test/run-test/conf-test.cnf
0 → 100644
View file @
97380c69
[atrt]
basedir = CHOOSE_dir
baseport = 14000
clusters = .2node
[ndb_mgmd]
[mysqld]
skip-innodb
skip-bdb
[cluster_config.2node]
ndb_mgmd = CHOOSE_host1
ndbd = CHOOSE_host2,CHOOSE_host3
ndbapi= CHOOSE_host1,CHOOSE_host1,CHOOSE_host1
NoOfReplicas = 2
IndexMemory = 25M
DataMemory = 100M
BackupMemory = 64M
MaxNoOfConcurrentScans = 100
MaxNoOfSavedMessages= 1000
SendBufferMemory = 2M
NoOfFragmentLogFiles = 4
FragmentLogFileSize = 64M
storage/ndb/test/run-test/upgrade-boot.sh
0 → 100644
View file @
97380c69
#!/bin/sh
#############################################################
# This script created by Jonas does the following #
# Cleans up clones and pevious builds, pulls new clones, #
# builds, deploys, configures the tests and launches ATRT #
#############################################################
###############
#Script setup #
##############
save_args
=
$*
VERSION
=
"upgrade-boot.sh version 1.00"
DATE
=
`
date
'+%Y-%m-%d'
`
HOST
=
`
hostname
-s
`
export
DATE HOST
set
-e
echo
"
`
date
`
starting:
$*
"
verbose
=
0
do_clone
=
yes
build
=
yes
tag0
=
tag1
=
conf
=
extra_args
=
extra_clone
=
LOCK
=
$HOME
/.autotest-lock
############################
# Read command line entries#
############################
while
[
"
$1
"
]
do
case
"
$1
"
in
--no-clone
)
do_clone
=
""
;;
--no-build
)
build
=
""
;;
--verbose
)
verbose
=
`
expr
$verbose
+ 1
`
;;
--clone
=
*
)
clone0
=
`
echo
$1
|
sed
s/--clone
=
//
`
;;
--clone0
=
*
)
clone0
=
`
echo
$1
|
sed
s/--clone0
=
//
`
;;
--clone1
=
*
)
clone1
=
`
echo
$1
|
sed
s/--clone1
=
//
`
;;
--version
)
echo
$VERSION
;
exit
;;
--conf
=
*
)
conf
=
`
echo
$1
|
sed
s/--conf
=
//
`
;;
--tag
=
*
)
tag0
=
`
echo
$1
|
sed
s/--tag
=
//
`
;;
--tag0
=
*
)
tag0
=
`
echo
$1
|
sed
s/--tag0
=
//
`
;;
--tag1
=
*
)
tag1
=
`
echo
$1
|
sed
s/--tag1
=
//
`
;;
--
*
)
echo
"Unknown arg:
$1
"
;;
*
)
RUN
=
$*
;;
esac
shift
done
if
[
-z
"
$clone1
"
]
then
clone1
=
$clone0
fi
if
[
-z
"
$tag0
"
]
then
echo
"No tag0 specified"
exit
fi
if
[
-z
"
$tag1
"
]
then
echo
"No tag1 specified"
exit
fi
#################################
#Make sure the configfile exists#
#if it does not exit. if it does#
# (.) load it #
#################################
if
[
-z
"
$conf
"
]
then
if
[
-f
"
`
pwd
`
/autotest.conf"
]
then
conf
=
"
`
pwd
`
/autotest.conf"
elif
[
-f
"
$HOME
/autotest.conf"
]
then
conf
=
"
$HOME
/autotest.conf"
fi
fi
if
[
-f
$conf
]
then
.
$conf
else
echo
"Can't find config file: >
$conf
<"
exit
fi
###############################
# Validate that all interesting
# variables where set in conf
###############################
vars
=
"src_clone_base install_dir build_dir"
for
i
in
$vars
do
t
=
`
echo echo
\\
$$
i
`
if
[
-z
"
`
eval
$t
`
"
]
then
echo
"Invalid config:
$conf
, variable
$i
is not set"
exit
fi
done
###############################
#Print out the enviroment vars#
###############################
if
[
$verbose
-gt
0
]
then
env
fi
####################################
# Setup the lock file name and path#
# Setup the clone source location #
####################################
src_clone0
=
${
src_clone_base
}${
clone0
}
src_clone1
=
${
src_clone_base
}${
clone1
}
#######################################
# Check to see if the lock file exists#
# If it does exit. #
#######################################
if
[
-f
$LOCK
]
then
echo
"Lock file exists:
$LOCK
"
exit
1
fi
#######################################
# If the lock file does not exist then#
# create it with date and run info #
#######################################
echo
"
$DATE
$RUN
"
>
$LOCK
#############################
#If any errors here down, we#
# trap them, and remove the #
# Lock file before exit #
#############################
if
[
`
uname
-s
`
!=
"SunOS"
]
then
trap
"rm -f
$LOCK
"
ERR
fi
# You can add more to this path#
################################
dst_place0
=
${
build_dir
}
/clone-
$tag0
-
$DATE
.
$$
dst_place1
=
${
build_dir
}
/clone-
$tag1
-
$DATE
.
$$
#########################################
# Delete source and pull down the latest#
#########################################
if
[
"
$do_clone
"
]
then
rm
-rf
$dst_place0
$dst_place1
if
[
`
echo
$src_clone0
|
grep
-c
'file:\/\/'
`
=
1
]
then
bk clone
-l
-r
$tag0
$src_clone0
$dst_place0
else
bk clone
-r
$tag0
$src_clone0
$dst_place0
fi
if
[
`
echo
$src_clone1
|
grep
-c
'file:\/\/'
`
=
1
]
then
bk clone
-l
-r
$tag1
$src_clone1
$dst_place1
else
bk clone
-r
$tag1
$src_clone1
$dst_place1
fi
fi
##########################################
# Build the source, make installs, and #
# create the database to be rsynced #
##########################################
install_dir0
=
$install_dir
/
$tag0
install_dir1
=
$install_dir
/
$tag1
if
[
"
$build
"
]
then
cd
$dst_place0
rm
-rf
$install_dir0
BUILD/compile-ndb-autotest
--prefix
=
$install_dir0
make
install
cd
$dst_place1
rm
-rf
$install_dir1
BUILD/compile-ndb-autotest
--prefix
=
$install_dir1
make
install
fi
################################
# Start run script #
################################
script
=
$install_dir1
/mysql-test/ndb/upgrade-run.sh
$script
$save_args
--conf
=
$conf
--install-dir
=
$install_dir
--suite
=
$RUN
--nolock
$extra_args
if
[
"
$build
"
]
then
rm
-rf
$dst_place0
$dst_place1
fi
rm
-f
$LOCK
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