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
79999335
Commit
79999335
authored
Dec 28, 2000
by
mwagner@evoq.home.mwagner.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysqltest.c Added --no-defaults to usage().
mysql-test-run.sh Couple more clean-ups.
parent
a7462751
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
client/mysqltest.c
client/mysqltest.c
+7
-3
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+2
-3
No files found.
client/mysqltest.c
View file @
79999335
...
...
@@ -950,6 +950,8 @@ int read_query(struct query** q_ptr)
return
0
;
}
enum
options
{
OPT_NODEFAULTS
}
;
struct
option
long_options
[]
=
{
{
"verbose"
,
no_argument
,
0
,
'v'
},
...
...
@@ -992,10 +994,11 @@ void usage()
-P, --port=... Port number to use for connection.
\n
\
-S, --socket=... Socket file to use for connection.
\n
\
-r, --record Record output of test_file into result file.
\n
\
-R, --result-file=... Read/Store result from/in this file
\n
\
-R, --result-file=... Read/Store result from/in this file
.
\n
\
-v, --verbose Write more.
\n
\
-q, --quiet, --silent Suppress all normal output.
\n
\
-V, --version Output version information and exit.
\n\n
"
);
-V, --version Output version information and exit.
\n
\
--no-defaults Don't read default options from any options file.
\n\n
"
);
}
int
parse_args
(
int
argc
,
char
**
argv
)
...
...
@@ -1004,6 +1007,7 @@ int parse_args(int argc, char **argv)
my_bool
tty_password
=
0
;
load_defaults
(
"my"
,
load_default_groups
,
&
argc
,
&
argv
);
while
((
c
=
getopt_long
(
argc
,
argv
,
"h:p::u:P:D:S:R:?rvVq"
,
long_options
,
&
option_index
))
!=
EOF
)
{
...
...
@@ -1026,7 +1030,7 @@ int parse_args(int argc, char **argv)
{
my_free
(
pass
,
MYF
(
MY_ALLOW_ZERO_PTR
));
pass
=
my_strdup
(
optarg
,
MYF
(
MY_FAE
));
while
(
*
optarg
)
*
optarg
++=
'x'
;
/
* Destroy argument */
while
(
*
optarg
)
*
optarg
++=
'x'
;
/
/ Destroy argument
}
else
tty_password
=
1
;
...
...
mysql-test/mysql-test-run.sh
View file @
79999335
...
...
@@ -175,7 +175,7 @@ error () {
}
error_is
()
{
$ECHO
`
$CAT
$TIMEFILE
`
|
$SED
-e
's/.* At line
.*\: \(.*\)Command .*$/ \>\> Error: \1
<\</'
$ECHO
`
$CAT
$TIMEFILE
`
|
$SED
-e
's/.* At line
\(.*\)\: \(.*\)Command .*$/ \>\> Error at line \1: \2
<\</'
}
prefix_to_8
()
{
...
...
@@ -469,7 +469,7 @@ run_testcase ()
timestr
=
"
$USERT
$SYST
$REALT
"
pname
=
`
$ECHO
"
$tname
"
|
$CUT
-c
1-16
`
$
SETCOLOR_NORMAL
&&
$
ECHO
-n
"
$pname
$timestr
"
$ECHO
-n
"
$pname
$timestr
"
...
...
@@ -492,7 +492,6 @@ run_testcase ()
exit
1
fi
# $ECHO "Restarting mysqld"
mysql_restart
$ECHO
"Resuming Tests"
$ECHO
...
...
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