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
478bb9e2
Commit
478bb9e2
authored
Feb 19, 2007
by
msvensson@pilot.blaudden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update for running with cmd.exe directly
parent
ee38195c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
24 deletions
+35
-24
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+0
-2
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+35
-22
No files found.
mysql-test/r/mysqltest.result
View file @
478bb9e2
...
@@ -516,8 +516,6 @@ drop table t1;
...
@@ -516,8 +516,6 @@ drop table t1;
mysqltest: At line 1: Missing required argument 'filename' to command 'remove_file'
mysqltest: At line 1: Missing required argument 'filename' to command 'remove_file'
mysqltest: At line 1: Missing required argument 'filename' to command 'write_file'
mysqltest: At line 1: Missing required argument 'filename' to command 'write_file'
mysqltest: At line 1: End of file encountered before 'EOF' delimiter was found
mysqltest: At line 1: End of file encountered before 'EOF' delimiter was found
mysqltest: At line 1: End of line junk detected: "write_file filename ";
"
mysqltest: At line 1: Missing required argument 'filename' to command 'file_exists'
mysqltest: At line 1: Missing required argument 'filename' to command 'file_exists'
mysqltest: At line 1: Missing required argument 'from_file' to command 'copy_file'
mysqltest: At line 1: Missing required argument 'from_file' to command 'copy_file'
mysqltest: At line 1: Missing required argument 'to_file' to command 'copy_file'
mysqltest: At line 1: Missing required argument 'to_file' to command 'copy_file'
...
...
mysql-test/t/mysqltest.test
View file @
478bb9e2
...
@@ -902,9 +902,9 @@ echo $d;
...
@@ -902,9 +902,9 @@ echo $d;
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Test system
# Test system
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
system
ls
>
/
dev
/
null
;
#
system ls > /dev/null;
system
echo
"hej"
>
/
dev
/
null
;
system
echo
"hej"
>
/
dev
/
null
;
--
system
ls
>
/
dev
/
null
#
--system ls > /dev/null
--
system
echo
"hej"
>
/
dev
/
null
;
--
system
echo
"hej"
>
/
dev
/
null
;
--
error
1
--
error
1
...
@@ -1134,18 +1134,24 @@ EOF
...
@@ -1134,18 +1134,24 @@ EOF
--
error
1
--
error
1
--
exec
echo
"{;"
|
$MYSQL_TEST
2
>&
1
--
exec
echo
"{;"
|
$MYSQL_TEST
2
>&
1
--
system
echo
"while (0)"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
system
echo
"echo hej;"
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
while
(
0
)
echo
hej
;
EOF
--
error
1
--
error
1
--
exec
$MYSQL_TEST
<
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
2
>&
1
--
exec
$MYSQL_TEST
<
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
2
>&
1
--
system
echo
"while (0)"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
system
echo
"{echo hej;"
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
while
(
0
)
{
echo
hej
;
EOF
--
error
1
--
error
1
--
exec
$MYSQL_TEST
<
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
2
>&
1
--
exec
$MYSQL_TEST
<
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
2
>&
1
--
system
echo
"while (0){"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
system
echo
"echo hej;"
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
while
(
0
){
echo
hej
;
EOF
--
error
1
--
error
1
--
exec
$MYSQL_TEST
<
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
2
>&
1
--
exec
$MYSQL_TEST
<
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
2
>&
1
...
@@ -1244,28 +1250,34 @@ EOF
...
@@ -1244,28 +1250,34 @@ EOF
--
exec
echo
"source
$MYSQLTEST_VARDIR
/tmp/mysqltest.sql; echo OK;"
|
$MYSQL_TEST
2
>&
1
--
exec
echo
"source
$MYSQLTEST_VARDIR
/tmp/mysqltest.sql; echo OK;"
|
$MYSQL_TEST
2
>&
1
# Repeat connect/disconnect, exceed max number of connections
# Repeat connect/disconnect, exceed max number of connections
--
system
echo
"let
\$
i=200;"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
system
echo
"while (
\$
i)"
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
let
$i
=
200
;
--
system
echo
"{"
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
while
(
$i
)
--
system
echo
" connect (test_con1,localhost,root,,); "
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
{
--
system
echo
" disconnect test_con1; "
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
connect
(
test_con1
,
localhost
,
root
,,);
--
system
echo
" dec
\$
i; "
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
disconnect
test_con1
;
--
system
echo
"}"
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
dec
$i
;
}
EOF
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
error
1
--
error
1
--
exec
echo
"source
$MYSQLTEST_VARDIR
/tmp/mysqltest.sql;"
|
$MYSQL_TEST
2
>&
1
--
exec
echo
"source
$MYSQLTEST_VARDIR
/tmp/mysqltest.sql;"
|
$MYSQL_TEST
2
>&
1
# Select disconnected connection
# Select disconnected connection
--
system
echo
"connect (test_con1,localhost,root,,);"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
system
echo
"disconnect test_con1; "
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
connect
(
test_con1
,
localhost
,
root
,,);
--
system
echo
"connection test_con1;"
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
disconnect
test_con1
;
connection
test_con1
;
EOF
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
error
1
--
error
1
--
exec
echo
"source
$MYSQLTEST_VARDIR
/tmp/mysqltest.sql;"
|
$MYSQL_TEST
2
>&
1
--
exec
echo
"source
$MYSQLTEST_VARDIR
/tmp/mysqltest.sql;"
|
$MYSQL_TEST
2
>&
1
# Connection name already used
# Connection name already used
--
system
echo
"connect (test_con1,localhost,root,,);"
>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
write_file
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
--
system
echo
"connect (test_con1,localhost,root,,);"
>>
$MYSQLTEST_VARDIR
/
tmp
/
mysqltest
.
sql
connect
(
test_con1
,
localhost
,
root
,,);
connect
(
test_con1
,
localhost
,
root
,,);
EOF
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
replace_result
$MYSQLTEST_VARDIR
MYSQLTEST_VARDIR
--
error
1
--
error
1
--
exec
echo
"source
$MYSQLTEST_VARDIR
/tmp/mysqltest.sql;"
|
$MYSQL_TEST
2
>&
1
--
exec
echo
"source
$MYSQLTEST_VARDIR
/tmp/mysqltest.sql;"
|
$MYSQL_TEST
2
>&
1
...
@@ -1502,8 +1514,9 @@ remove_file non_existing_file;
...
@@ -1502,8 +1514,9 @@ remove_file non_existing_file;
--
error
1
--
error
1
--
exec
echo
"write_file filename ;"
|
$MYSQL_TEST
2
>&
1
--
exec
echo
"write_file filename ;"
|
$MYSQL_TEST
2
>&
1
--
error
1
# Comment out this test as it confuses cmd.exe with unmatched "
--
exec
echo
"write_file filename
\"
;"
|
$MYSQL_TEST
2
>&
1
#--error 1
#--exec echo "write_file filename \";" | $MYSQL_TEST 2>&1
write_file
$MYSQLTEST_VARDIR
/
tmp
/
test_file1
.
tmp
;
write_file
$MYSQLTEST_VARDIR
/
tmp
/
test_file1
.
tmp
;
Content
for
test_file1
Content
for
test_file1
...
...
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