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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fc736908
Commit
fc736908
authored
Oct 09, 2000
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Plain Diff
merged to sync with Sergei's version
parents
52c67237
a97a6d24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
12 deletions
+30
-12
mysql-test/mybin/mysql-test_install_db
mysql-test/mybin/mysql-test_install_db
+21
-4
mysql-test/mysql-test-run
mysql-test/mysql-test-run
+9
-8
No files found.
mysql-test/mybin/mysql-test_install_db
View file @
fc736908
...
...
@@ -6,6 +6,7 @@
# columns_priv in the mysql database, as well as the func table.
ldata
=
var/lib
logdir
=
var/log
mdata
=
$ldata
/mysql
execdir
=
../sql
bindir
=
../client
...
...
@@ -51,13 +52,29 @@ hostname=`hostname` # Install this too in the user table
resolved
=
127.0.0.1
# Create database directories mysql & test
if
test
!
-d
$ldata
;
then
mkdir
$ldata
;
chmod
700
$ldata
;
fi
if
test
!
-d
$ldata
/mysql
;
then
mkdir
$ldata
/mysql
;
chmod
700
$ldata
/mysql
;
fi
if
test
!
-d
$ldata
/test
;
then
mkdir
$ldata
/test
;
chmod
700
$ldata
/test
;
fi
if
test
!
-d
$ldata
;
then
(
mkdir
-p
$ldata
||
exit
1
)
&&
\
(
chmod
700
$ldata
||
exit
1
)
;
fi
if
test
!
-d
$ldata
/mysql
;
then
mkdir
-p
$ldata
/mysql
||
exit
1
;
chmod
700
$ldata
/mysql
||
exit
1
;
fi
if
test
!
-d
$ldata
/test
;
then
mkdir
-p
$ldata
/test
||
exit
1
;
chmod
700
$ldata
/test
||
exit
1
;
fi
if
test
-w
/
-a
!
-z
"
$user
"
;
then
chown
$user
$ldata
$ldata
/mysql
$ldata
/test
;
chown
$user
$ldata
$ldata
/mysql
$ldata
/test
||
exit
1
;
fi
#for error messages
rm
-rf
share
mkdir
share
ln
-sf
../../sql/share share/mysql
#create the directory for logs
mkdir
-p
$logdir
# Initialize variables
c_d
=
""
i_d
=
""
c_h
=
""
i_h
=
""
...
...
mysql-test/mysql-test-run
View file @
fc736908
...
...
@@ -129,7 +129,7 @@ total_inc () {
}
report_stats
()
{
if
[
$TOT_FAIL
=
=
0
]
;
then
if
[
$TOT_FAIL
=
0
]
;
then
echo
"All tests successful."
else
echo
-n
"Failed
${
TOT_FAIL
}
/
${
TOT_TEST
}
tests, "
...
...
@@ -146,10 +146,11 @@ report_stats () {
}
mysql_install_db
()
{
if
[
`
$INSTALL_DB
`
]
;
then
`
$INSTALL_DB
`
if
[
$?
!=
0
]
;
then
error
"Could not install tmp DBs"
exit
1
fi
return
0
}
...
...
@@ -201,13 +202,13 @@ mysql_start
res
=
$?
res
=
1
[
$res
!=
1
]
&&
echo_notok
&&
error
"Starting mysqld"
[
$res
=
=
1
]
&&
echo_ok
[
$res
=
1
]
&&
echo_ok
$SETCOLOR_NORMAL
&&
echo
-n
"Loading Standard Test Database"
mysql_loadstd
res
=
$?
[
$res
!=
1
]
&&
echo_notok
&&
error
"Loading STD"
[
$res
=
=
1
]
&&
echo_ok
[
$res
=
1
]
&&
echo_ok
$SETCOLOR_NORMAL
&&
echo
-n
"Starting Tests for MySQL
$TESTVER
Series"
$SETCOLOR_SUCCESS
&&
echo_ok
...
...
@@ -223,9 +224,9 @@ do
tf
=
`
basename
$tf
`
[
$res
=
=
1
]
&&
mytime
=
`
echo
-ne
$mytime
|
cut
-b
39-
`
&&
mytime
=
${
mytime
// /\\t
}
[
$res
=
1
]
&&
mytime
=
`
echo
-ne
$mytime
|
cut
-b
39-
`
&&
mytime
=
${
mytime
// /\\t
}
$SETCOLOR_NORMAL
&&
echo
-ne
"
$tf
\t\t
$mytime
"
[
$res
=
=
1
]
&&
fail_inc
&&
echo_fail
[
$res
=
1
]
&&
fail_inc
&&
echo_fail
[
$res
!=
1
]
&&
pass_inc
&&
echo_pass
total_inc
...
...
@@ -251,7 +252,7 @@ mysql_stop
res
=
$?
res
=
1
[
$res
!=
1
]
&&
echo_notok
&&
error
"Shutdown mysqld"
[
$res
=
=
1
]
&&
echo_ok
[
$res
=
1
]
&&
echo_ok
$SETCOLOR_NORMAL
...
...
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