You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

845 lines
16 KiB

  1. '\" t
  2. .\" Title: \fBmysqltest\fR
  3. .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
  4. .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
  5. .\" Date: 03/31/2010
  6. .\" Manual: MySQL Database System
  7. .\" Source: MySQL
  8. .\" Language: English
  9. .\"
  10. .TH "\FBMYSQLTEST\FR" "1" "03/31/2010" "MySQL" "MySQL Database System"
  11. .\" -----------------------------------------------------------------
  12. .\" * set default formatting
  13. .\" -----------------------------------------------------------------
  14. .\" disable hyphenation
  15. .nh
  16. .\" disable justification (adjust text to left margin only)
  17. .ad l
  18. .\" -----------------------------------------------------------------
  19. .\" * MAIN CONTENT STARTS HERE *
  20. .\" -----------------------------------------------------------------
  21. .\" mysqltest
  22. .\" mysqltest_embedded
  23. .SH "NAME"
  24. mysqltest \- program to run test cases
  25. .br
  26. mysqltest_embedded \- program to run embedded test cases
  27. .SH "SYNOPSIS"
  28. .HP \w'\fBmysqltest\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fIdb_name\fR\fR\fB]\fR\ 'u
  29. \fBmysqltest [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB]\fR
  30. .HP \w'\fBmysqltest_embedded\ [\fR\fB\fIoptions\fR\fR\fB]\ [\fR\fB\fIdb_name\fR\fR\fB]\fR\ 'u
  31. \fBmysqltest_embedded [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB]\fR
  32. .SH "DESCRIPTION"
  33. .PP
  34. The
  35. \fBmysqltest\fR
  36. program runs a test case against a MySQL server and optionally compares the output with a result file\&. This program reads input written in a special test language\&. Typically, you invoke
  37. \fBmysqltest\fR
  38. via
  39. \fBmysql\-test\-run\&.pl\fR
  40. rather than invoking it directly\&.
  41. .PP
  42. \fBmysqltest_embedded\fR
  43. is similar but is built with support for the
  44. libmysqld
  45. embedded server\&.
  46. .PP
  47. Features of
  48. \fBmysqltest\fR:
  49. .sp
  50. .RS 4
  51. .ie n \{\
  52. \h'-04'\(bu\h'+03'\c
  53. .\}
  54. .el \{\
  55. .sp -1
  56. .IP \(bu 2.3
  57. .\}
  58. Can send SQL statements to MySQL servers for execution
  59. .RE
  60. .sp
  61. .RS 4
  62. .ie n \{\
  63. \h'-04'\(bu\h'+03'\c
  64. .\}
  65. .el \{\
  66. .sp -1
  67. .IP \(bu 2.3
  68. .\}
  69. Can execute external shell commands
  70. .RE
  71. .sp
  72. .RS 4
  73. .ie n \{\
  74. \h'-04'\(bu\h'+03'\c
  75. .\}
  76. .el \{\
  77. .sp -1
  78. .IP \(bu 2.3
  79. .\}
  80. Can test whether the result from an SQL statement or shell command is as expected
  81. .RE
  82. .sp
  83. .RS 4
  84. .ie n \{\
  85. \h'-04'\(bu\h'+03'\c
  86. .\}
  87. .el \{\
  88. .sp -1
  89. .IP \(bu 2.3
  90. .\}
  91. Can connect to one or more standalone
  92. \fBmysqld\fR
  93. servers and switch between connections
  94. .RE
  95. .sp
  96. .RS 4
  97. .ie n \{\
  98. \h'-04'\(bu\h'+03'\c
  99. .\}
  100. .el \{\
  101. .sp -1
  102. .IP \(bu 2.3
  103. .\}
  104. Can connect to an embedded server (libmysqld), if MySQL is compiled with support for
  105. libmysqld\&. (In this case, the executable is named
  106. \fBmysqltest_embedded\fR
  107. rather than
  108. \fBmysqltest\fR\&.)
  109. .RE
  110. .PP
  111. By default,
  112. \fBmysqltest\fR
  113. reads the test case on the standard input\&. To run
  114. \fBmysqltest\fR
  115. this way, you normally invoke it like this:
  116. .sp
  117. .if n \{\
  118. .RS 4
  119. .\}
  120. .nf
  121. shell> \fBmysqltest [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fIdb_name\fR\fR\fB] < \fR\fB\fItest_file\fR\fR
  122. .fi
  123. .if n \{\
  124. .RE
  125. .\}
  126. .PP
  127. You can also name the test case file with a
  128. \fB\-\-test\-file=\fR\fB\fIfile_name\fR\fR
  129. option\&.
  130. .PP
  131. The exit value from
  132. \fBmysqltest\fR
  133. is 0 for success, 1 for failure, and 62 if it skips the test case (for example, if after checking some preconditions it decides not to run the test)\&.
  134. .PP
  135. \fBmysqltest\fR
  136. supports the following options:
  137. .sp
  138. .RS 4
  139. .ie n \{\
  140. \h'-04'\(bu\h'+03'\c
  141. .\}
  142. .el \{\
  143. .sp -1
  144. .IP \(bu 2.3
  145. .\}
  146. .\" mysqltest: help option
  147. .\" help option: mysqltest
  148. \fB\-\-help\fR,
  149. \fB\-?\fR
  150. .sp
  151. Display a help message and exit\&.
  152. .RE
  153. .sp
  154. .RS 4
  155. .ie n \{\
  156. \h'-04'\(bu\h'+03'\c
  157. .\}
  158. .el \{\
  159. .sp -1
  160. .IP \(bu 2.3
  161. .\}
  162. .\" mysqltest: basedir option
  163. .\" basedir option: mysqltest
  164. \fB\-\-basedir=\fR\fB\fIdir_name\fR\fR,
  165. \fB\-b \fR\fB\fIdir_name\fR\fR
  166. .sp
  167. The base directory for tests\&.
  168. .RE
  169. .sp
  170. .RS 4
  171. .ie n \{\
  172. \h'-04'\(bu\h'+03'\c
  173. .\}
  174. .el \{\
  175. .sp -1
  176. .IP \(bu 2.3
  177. .\}
  178. .\" mysqltest: character-sets-dir option
  179. .\" character-sets-dir option: mysqltest
  180. \fB\-\-character\-sets\-dir=\fR\fB\fIpath\fR\fR
  181. .sp
  182. The directory where character sets are installed\&.
  183. .RE
  184. .sp
  185. .RS 4
  186. .ie n \{\
  187. \h'-04'\(bu\h'+03'\c
  188. .\}
  189. .el \{\
  190. .sp -1
  191. .IP \(bu 2.3
  192. .\}
  193. .\" mysqltest: compress option
  194. .\" compress option: mysqltest
  195. \fB\-\-compress\fR,
  196. \fB\-C\fR
  197. .sp
  198. Compress all information sent between the client and the server if both support compression\&.
  199. .RE
  200. .sp
  201. .RS 4
  202. .ie n \{\
  203. \h'-04'\(bu\h'+03'\c
  204. .\}
  205. .el \{\
  206. .sp -1
  207. .IP \(bu 2.3
  208. .\}
  209. .\" mysqltest: currsor-protocol option
  210. .\" cursor-protocol option: mysqltest
  211. \fB\-\-cursor\-protocol\fR
  212. .sp
  213. Use cursors for prepared statements\&.
  214. .RE
  215. .sp
  216. .RS 4
  217. .ie n \{\
  218. \h'-04'\(bu\h'+03'\c
  219. .\}
  220. .el \{\
  221. .sp -1
  222. .IP \(bu 2.3
  223. .\}
  224. .\" mysqltest: database option
  225. .\" database option: mysqltest
  226. \fB\-\-database=\fR\fB\fIdb_name\fR\fR,
  227. \fB\-D \fR\fB\fIdb_name\fR\fR
  228. .sp
  229. The default database to use\&.
  230. .RE
  231. .sp
  232. .RS 4
  233. .ie n \{\
  234. \h'-04'\(bu\h'+03'\c
  235. .\}
  236. .el \{\
  237. .sp -1
  238. .IP \(bu 2.3
  239. .\}
  240. .\" mysqltest: debug option
  241. .\" debug option: mysqltest
  242. \fB\-\-debug[=\fR\fB\fIdebug_options\fR\fR\fB]\fR,
  243. \fB\-#[\fR\fB\fIdebug_options\fR\fR\fB]\fR
  244. .sp
  245. Write a debugging log if MySQL is built with debugging support\&. The default
  246. \fIdebug_options\fR
  247. value is
  248. \'d:t:S:i:O,/tmp/mysqltest\&.trace\'\&.
  249. .RE
  250. .sp
  251. .RS 4
  252. .ie n \{\
  253. \h'-04'\(bu\h'+03'\c
  254. .\}
  255. .el \{\
  256. .sp -1
  257. .IP \(bu 2.3
  258. .\}
  259. .\" mysqltest: debug-check option
  260. .\" debug-check option: mysqltest
  261. \fB\-\-debug\-check\fR
  262. .sp
  263. Print some debugging information when the program exits\&.
  264. .RE
  265. .sp
  266. .RS 4
  267. .ie n \{\
  268. \h'-04'\(bu\h'+03'\c
  269. .\}
  270. .el \{\
  271. .sp -1
  272. .IP \(bu 2.3
  273. .\}
  274. .\" mysqltest: debug-info option
  275. .\" debug-info option: mysqltest
  276. \fB\-\-debug\-info\fR
  277. .sp
  278. Print debugging information and memory and CPU usage statistics when the program exits\&.
  279. .RE
  280. .sp
  281. .RS 4
  282. .ie n \{\
  283. \h'-04'\(bu\h'+03'\c
  284. .\}
  285. .el \{\
  286. .sp -1
  287. .IP \(bu 2.3
  288. .\}
  289. .\" mysqltest: host option
  290. .\" host option: mysqltest
  291. \fB\-\-host=\fR\fB\fIhost_name\fR\fR,
  292. \fB\-h \fR\fB\fIhost_name\fR\fR
  293. .sp
  294. Connect to the MySQL server on the given host\&.
  295. .RE
  296. .sp
  297. .RS 4
  298. .ie n \{\
  299. \h'-04'\(bu\h'+03'\c
  300. .\}
  301. .el \{\
  302. .sp -1
  303. .IP \(bu 2.3
  304. .\}
  305. .\" mysqltest: include option
  306. .\" include option: mysqltest
  307. \fB\-\-include=\fR\fB\fIfile_name\fR\fR,
  308. \fB\-i \fR\fB\fIfile_name\fR\fR
  309. .sp
  310. Include the contents of the given file before processing the contents of the test file\&. The included file should have the same format as other
  311. \fBmysqltest\fR
  312. test files\&. This option has the same effect as putting a
  313. \-\-source \fIfile_name\fR
  314. command as the first line of the test file\&.
  315. .RE
  316. .sp
  317. .RS 4
  318. .ie n \{\
  319. \h'-04'\(bu\h'+03'\c
  320. .\}
  321. .el \{\
  322. .sp -1
  323. .IP \(bu 2.3
  324. .\}
  325. .\" mysqltest: logdir option
  326. .\" logdir option: mysqltest
  327. \fB\-\-logdir=\fR\fB\fIdir_name\fR\fR
  328. .sp
  329. The directory to use for log files\&.
  330. .RE
  331. .sp
  332. .RS 4
  333. .ie n \{\
  334. \h'-04'\(bu\h'+03'\c
  335. .\}
  336. .el \{\
  337. .sp -1
  338. .IP \(bu 2.3
  339. .\}
  340. .\" mysqltest: mark-progress option
  341. .\" mark-progress option: mysqltest
  342. \fB\-\-mark\-progress\fR
  343. .sp
  344. Write the line number and elapsed time to
  345. \fItest_file\fR\&.progress\&.
  346. .RE
  347. .sp
  348. .RS 4
  349. .ie n \{\
  350. \h'-04'\(bu\h'+03'\c
  351. .\}
  352. .el \{\
  353. .sp -1
  354. .IP \(bu 2.3
  355. .\}
  356. .\" mysqltest: max-connect-retries option
  357. .\" max-connect-retries option: mysqltest
  358. \fB\-\-max\-connect\-retries=\fR\fB\fInum\fR\fR
  359. .sp
  360. The maximum number of connection attempts when connecting to server\&.
  361. .RE
  362. .sp
  363. .RS 4
  364. .ie n \{\
  365. \h'-04'\(bu\h'+03'\c
  366. .\}
  367. .el \{\
  368. .sp -1
  369. .IP \(bu 2.3
  370. .\}
  371. .\" mysqltest: max-connections option
  372. .\" max-connections option: mysqltest
  373. \fB\-\-max\-connections=\fR\fB\fInum\fR\fR
  374. .sp
  375. The maximum number of simultaneous server connections per client (that is, per test)\&. If not set, the maximum is 128\&. Minimum allowed limit is 8, maximum is 5120\&.
  376. .sp
  377. This option is available from MySQL 5\&.1\&.45\&.
  378. .RE
  379. .sp
  380. .RS 4
  381. .ie n \{\
  382. \h'-04'\(bu\h'+03'\c
  383. .\}
  384. .el \{\
  385. .sp -1
  386. .IP \(bu 2.3
  387. .\}
  388. .\" mysqltest: no-defaults option
  389. .\" no-defaults option: mysqltest
  390. \fB\-\-no\-defaults\fR
  391. .sp
  392. Do not read default options from any option files\&. If used, this must be the first option\&.
  393. .RE
  394. .sp
  395. .RS 4
  396. .ie n \{\
  397. \h'-04'\(bu\h'+03'\c
  398. .\}
  399. .el \{\
  400. .sp -1
  401. .IP \(bu 2.3
  402. .\}
  403. .\" mysqltest: password option
  404. .\" password option: mysqltest
  405. \fB\-\-password[=\fR\fB\fIpassword\fR\fR\fB]\fR,
  406. \fB\-p[\fR\fB\fIpassword\fR\fR\fB]\fR
  407. .sp
  408. The password to use when connecting to the server\&. If you use the short option form (\fB\-p\fR), you
  409. \fIcannot\fR
  410. have a space between the option and the password\&. If you omit the
  411. \fIpassword\fR
  412. value following the
  413. \fB\-\-password\fR
  414. or
  415. \fB\-p\fR
  416. option on the command line, you are prompted for one\&.
  417. .RE
  418. .sp
  419. .RS 4
  420. .ie n \{\
  421. \h'-04'\(bu\h'+03'\c
  422. .\}
  423. .el \{\
  424. .sp -1
  425. .IP \(bu 2.3
  426. .\}
  427. .\" mysqltest: port option
  428. .\" port option: mysqltest
  429. \fB\-\-port=\fR\fB\fIport_num\fR\fR,
  430. \fB\-P \fR\fB\fIport_num\fR\fR
  431. .sp
  432. The TCP/IP port number to use for the connection\&.
  433. .RE
  434. .sp
  435. .RS 4
  436. .ie n \{\
  437. \h'-04'\(bu\h'+03'\c
  438. .\}
  439. .el \{\
  440. .sp -1
  441. .IP \(bu 2.3
  442. .\}
  443. .\" mysqltest: ps-protocol option
  444. .\" ps-protocol option: mysqltest
  445. \fB\-\-ps\-protocol\fR
  446. .sp
  447. Use the prepared\-statement protocol for communication\&.
  448. .RE
  449. .sp
  450. .RS 4
  451. .ie n \{\
  452. \h'-04'\(bu\h'+03'\c
  453. .\}
  454. .el \{\
  455. .sp -1
  456. .IP \(bu 2.3
  457. .\}
  458. .\" mysqltest: quiet option
  459. .\" quiet option: mysqltest
  460. \fB\-\-quiet\fR
  461. .sp
  462. Suppress all normal output\&. This is a synonym for
  463. .\" mysqltest: silent option
  464. .\" silent option: mysqltest
  465. \fB\-\-silent\fR\&.
  466. .RE
  467. .sp
  468. .RS 4
  469. .ie n \{\
  470. \h'-04'\(bu\h'+03'\c
  471. .\}
  472. .el \{\
  473. .sp -1
  474. .IP \(bu 2.3
  475. .\}
  476. .\" mysqltest: record option
  477. .\" record option: mysqltest
  478. \fB\-\-record\fR,
  479. \fB\-r\fR
  480. .sp
  481. Record the output that results from running the test file into the file named by the
  482. \fB\-\-result\-file\fR
  483. option, if that option is given\&. It is an error to use this option without also using
  484. \fB\-\-result\-file\fR\&.
  485. .RE
  486. .sp
  487. .RS 4
  488. .ie n \{\
  489. \h'-04'\(bu\h'+03'\c
  490. .\}
  491. .el \{\
  492. .sp -1
  493. .IP \(bu 2.3
  494. .\}
  495. .\" mysqltest: result-file option
  496. .\" result-file option: mysqltest
  497. \fB\-\-result\-file=\fR\fB\fIfile_name\fR\fR,
  498. \fB\-R \fR\fB\fIfile_name\fR\fR
  499. .sp
  500. This option specifies the file for test case expected results\&.
  501. \fB\-\-result\-file\fR, together with
  502. \fB\-\-record\fR, determines how
  503. \fBmysqltest\fR
  504. treats the test actual and expected results for a test case:
  505. .sp
  506. .RS 4
  507. .ie n \{\
  508. \h'-04'\(bu\h'+03'\c
  509. .\}
  510. .el \{\
  511. .sp -1
  512. .IP \(bu 2.3
  513. .\}
  514. If the test produces no results,
  515. \fBmysqltest\fR
  516. exits with an error message to that effect, unless
  517. \fB\-\-result\-file\fR
  518. is given and the named file is an empty file\&.
  519. .RE
  520. .sp
  521. .RS 4
  522. .ie n \{\
  523. \h'-04'\(bu\h'+03'\c
  524. .\}
  525. .el \{\
  526. .sp -1
  527. .IP \(bu 2.3
  528. .\}
  529. Otherwise, if
  530. \fB\-\-result\-file\fR
  531. is not given,
  532. \fBmysqltest\fR
  533. sends test results to the standard output\&.
  534. .RE
  535. .sp
  536. .RS 4
  537. .ie n \{\
  538. \h'-04'\(bu\h'+03'\c
  539. .\}
  540. .el \{\
  541. .sp -1
  542. .IP \(bu 2.3
  543. .\}
  544. With
  545. \fB\-\-result\-file\fR
  546. but not
  547. \fB\-\-record\fR,
  548. \fBmysqltest\fR
  549. reads the expected results from the given file and compares them with the actual results\&. If the results do not match,
  550. \fBmysqltest\fR
  551. writes a
  552. \&.reject
  553. file in the same directory as the result file, outputs a diff of the two files, and exits with an error\&.
  554. .RE
  555. .sp
  556. .RS 4
  557. .ie n \{\
  558. \h'-04'\(bu\h'+03'\c
  559. .\}
  560. .el \{\
  561. .sp -1
  562. .IP \(bu 2.3
  563. .\}
  564. With both
  565. \fB\-\-result\-file\fR
  566. and
  567. \fB\-\-record\fR,
  568. \fBmysqltest\fR
  569. updates the given file by writing the actual test results to it\&.
  570. .RE
  571. .RE
  572. .sp
  573. .RS 4
  574. .ie n \{\
  575. \h'-04'\(bu\h'+03'\c
  576. .\}
  577. .el \{\
  578. .sp -1
  579. .IP \(bu 2.3
  580. .\}
  581. .\" mysqltest: server-arg option
  582. .\" server-arg option: mysqltest
  583. \fB\-\-server\-arg=\fR\fB\fIvalue\fR\fR,
  584. \fB\-A \fR\fB\fIvalue\fR\fR
  585. .sp
  586. Pass the argument as an argument to the embedded server\&. For example,
  587. \fB\-\-server\-arg=\-\-tmpdir=/tmp\fR
  588. or
  589. \fB\-\-server\-arg=\-\-core\fR\&. Up to 64 arguments can be given\&.
  590. .RE
  591. .sp
  592. .RS 4
  593. .ie n \{\
  594. \h'-04'\(bu\h'+03'\c
  595. .\}
  596. .el \{\
  597. .sp -1
  598. .IP \(bu 2.3
  599. .\}
  600. .\" mysqltest: server-file option
  601. .\" server-file option: mysqltest
  602. \fB\-\-server\-file=\fR\fB\fIfile_name\fR\fR,
  603. \fB\-F \fR\fB\fIfile_name\fR\fR
  604. .sp
  605. Read arguments for the embedded server from the given file\&. The file should contain one argument per line\&.
  606. .RE
  607. .sp
  608. .RS 4
  609. .ie n \{\
  610. \h'-04'\(bu\h'+03'\c
  611. .\}
  612. .el \{\
  613. .sp -1
  614. .IP \(bu 2.3
  615. .\}
  616. .\" mysqltest: silent option
  617. .\" silent option: mysqltest
  618. \fB\-\-silent\fR,
  619. \fB\-s\fR
  620. .sp
  621. Suppress all normal output\&.
  622. .RE
  623. .sp
  624. .RS 4
  625. .ie n \{\
  626. \h'-04'\(bu\h'+03'\c
  627. .\}
  628. .el \{\
  629. .sp -1
  630. .IP \(bu 2.3
  631. .\}
  632. .\" mysqltest: skip-safemalloc option
  633. .\" skip-safemalloc option: mysqltest
  634. \fB\-\-skip\-safemalloc\fR
  635. .sp
  636. Do not use memory allocation checking\&.
  637. .RE
  638. .sp
  639. .RS 4
  640. .ie n \{\
  641. \h'-04'\(bu\h'+03'\c
  642. .\}
  643. .el \{\
  644. .sp -1
  645. .IP \(bu 2.3
  646. .\}
  647. .\" mysqltest: sleep option
  648. .\" sleep option: mysqltest
  649. \fB\-\-sleep=\fR\fB\fInum\fR\fR,
  650. \fB\-T \fR\fB\fInum\fR\fR
  651. .sp
  652. Cause all
  653. sleep
  654. commands in the test case file to sleep
  655. \fInum\fR
  656. seconds\&. This option does not affect
  657. real_sleep
  658. commands\&.
  659. .sp
  660. As of MySQL 5\&.0\&.23, an option value of 0 can be used, which effectively disables
  661. sleep
  662. commands in the test case\&.
  663. .RE
  664. .sp
  665. .RS 4
  666. .ie n \{\
  667. \h'-04'\(bu\h'+03'\c
  668. .\}
  669. .el \{\
  670. .sp -1
  671. .IP \(bu 2.3
  672. .\}
  673. .\" mysqltest: socket option
  674. .\" socket option: mysqltest
  675. \fB\-\-socket=\fR\fB\fIpath\fR\fR,
  676. \fB\-S \fR\fB\fIpath\fR\fR
  677. .sp
  678. The socket file to use when connecting to
  679. localhost
  680. (which is the default host)\&.
  681. .RE
  682. .sp
  683. .RS 4
  684. .ie n \{\
  685. \h'-04'\(bu\h'+03'\c
  686. .\}
  687. .el \{\
  688. .sp -1
  689. .IP \(bu 2.3
  690. .\}
  691. .\" mysqltest: sp-protocol option
  692. .\" sp-protocol option: mysqltest
  693. \fB\-\-sp\-protocol\fR
  694. .sp
  695. Execute DML statements within a stored procedure\&. For every DML statement,
  696. \fBmysqltest\fR
  697. creates and invokes a stored procedure that executes the statement rather than executing the statement directly\&.
  698. .RE
  699. .sp
  700. .RS 4
  701. .ie n \{\
  702. \h'-04'\(bu\h'+03'\c
  703. .\}
  704. .el \{\
  705. .sp -1
  706. .IP \(bu 2.3
  707. .\}
  708. .\" mysqltest: tail-lines option
  709. .\" tail-lines option: mysqltest
  710. \fB\-\-tail\-lines=\fR\fB\fInn\fR\fR
  711. .sp
  712. Specify how many lines of the result to include in the output if the test fails because an SQL statement fails\&. The default is 0, meaning no lines of result printed\&.
  713. .RE
  714. .sp
  715. .RS 4
  716. .ie n \{\
  717. \h'-04'\(bu\h'+03'\c
  718. .\}
  719. .el \{\
  720. .sp -1
  721. .IP \(bu 2.3
  722. .\}
  723. .\" mysqltest: test-file option
  724. .\" test-file option: mysqltest
  725. \fB\-\-test\-file=\fR\fB\fIfile_name\fR\fR,
  726. \fB\-x \fR\fB\fIfile_name\fR\fR
  727. .sp
  728. Read test input from this file\&. The default is to read from the standard input\&.
  729. .RE
  730. .sp
  731. .RS 4
  732. .ie n \{\
  733. \h'-04'\(bu\h'+03'\c
  734. .\}
  735. .el \{\
  736. .sp -1
  737. .IP \(bu 2.3
  738. .\}
  739. .\" mysqltest: timer-file option
  740. .\" timer-file option: mysqltest
  741. \fB\-\-timer\-file=\fR\fB\fIfile_name\fR\fR,
  742. \fB\-m \fR\fB\fIfile_name\fR\fR
  743. .sp
  744. If given, the number of millisecond spent running the test will be written to this file\&. This is used by
  745. \fBmysql\-test\-run\&.pl\fR
  746. for its reporting\&.
  747. .RE
  748. .sp
  749. .RS 4
  750. .ie n \{\
  751. \h'-04'\(bu\h'+03'\c
  752. .\}
  753. .el \{\
  754. .sp -1
  755. .IP \(bu 2.3
  756. .\}
  757. .\" mysqltest: tmpdir option
  758. .\" tmpdir option: mysqltest
  759. \fB\-\-tmpdir=\fR\fB\fIdir_name\fR\fR,
  760. \fB\-t \fR\fB\fIdir_name\fR\fR
  761. .sp
  762. The temporary directory where socket files are created\&.
  763. .RE
  764. .sp
  765. .RS 4
  766. .ie n \{\
  767. \h'-04'\(bu\h'+03'\c
  768. .\}
  769. .el \{\
  770. .sp -1
  771. .IP \(bu 2.3
  772. .\}
  773. .\" mysqltest: user option
  774. .\" user option: mysqltest
  775. \fB\-\-user=\fR\fB\fIuser_name\fR\fR,
  776. \fB\-u \fR\fB\fIuser_name\fR\fR
  777. .sp
  778. The MySQL user name to use when connecting to the server\&.
  779. .RE
  780. .sp
  781. .RS 4
  782. .ie n \{\
  783. \h'-04'\(bu\h'+03'\c
  784. .\}
  785. .el \{\
  786. .sp -1
  787. .IP \(bu 2.3
  788. .\}
  789. .\" mysqltest: verbose option
  790. .\" verbose option: mysqltest
  791. \fB\-\-verbose\fR,
  792. \fB\-v\fR
  793. .sp
  794. Verbose mode\&. Print out more information about what the program does\&.
  795. .RE
  796. .sp
  797. .RS 4
  798. .ie n \{\
  799. \h'-04'\(bu\h'+03'\c
  800. .\}
  801. .el \{\
  802. .sp -1
  803. .IP \(bu 2.3
  804. .\}
  805. .\" mysqltest: version option
  806. .\" version option: mysqltest
  807. \fB\-\-version\fR,
  808. \fB\-V\fR
  809. .sp
  810. Display version information and exit\&.
  811. .RE
  812. .sp
  813. .RS 4
  814. .ie n \{\
  815. \h'-04'\(bu\h'+03'\c
  816. .\}
  817. .el \{\
  818. .sp -1
  819. .IP \(bu 2.3
  820. .\}
  821. .\" mysqltest: view-protocol option
  822. .\" view-protocol option: mysqltest
  823. \fB\-\-view\-protocol\fR
  824. .sp
  825. Every
  826. SELECT
  827. statement is wrapped inside a view\&. This option was added in MySQL 5\&.0\&.19\&.
  828. .RE
  829. .SH "COPYRIGHT"
  830. .br
  831. .PP
  832. Copyright \(co 2007, 2010, Oracle and/or its affiliates
  833. .PP
  834. This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
  835. .PP
  836. This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  837. .PP
  838. You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
  839. .sp
  840. .SH "SEE ALSO"
  841. For more information, please refer to the MySQL Reference Manual,
  842. which may already be installed locally and which is also available
  843. online at http://dev.mysql.com/doc/.
  844. .SH AUTHOR
  845. Sun Microsystems, Inc. (http://www.mysql.com/).