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.

2068 lines
44 KiB

  1. '\" t
  2. .\" Title: \fBmysql-test-run.pl\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 "\FBMYSQL\-TEST\-RUN\" "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. .\" mysql-test-run.pl
  22. .SH "NAME"
  23. mysql-test-run.pl \- run MySQL test suite
  24. .SH "SYNOPSIS"
  25. .HP \w'\fBmysql\-test\-run\&.pl\ [\fR\fB\fIoptions\fR\fR\fB]\fR\ 'u
  26. \fBmysql\-test\-run\&.pl [\fR\fB\fIoptions\fR\fR\fB]\fR
  27. .SH "DESCRIPTION"
  28. .PP
  29. The
  30. \fBmysql\-test\-run\&.pl\fR
  31. Perl script is the main application used to run the MySQL test suite\&. It invokes
  32. \fBmysqltest\fR
  33. to run individual test cases\&.
  34. .PP
  35. Invoke
  36. \fBmysql\-test\-run\&.pl\fR
  37. in the
  38. mysql\-test
  39. directory like this:
  40. .sp
  41. .if n \{\
  42. .RS 4
  43. .\}
  44. .nf
  45. shell> \fBmysql\-test\-run\&.pl [\fR\fB\fIoptions\fR\fR\fB] [\fR\fB\fItest_name\fR\fR\fB] \&.\&.\&.\fR
  46. .fi
  47. .if n \{\
  48. .RE
  49. .\}
  50. .PP
  51. Each
  52. \fItest_name\fR
  53. argument names a test case\&. The test case file that corresponds to the test name is
  54. t/\fItest_name\fR\&.test\&.
  55. .PP
  56. For each
  57. \fItest_name\fR
  58. argument,
  59. \fBmysql\-test\-run\&.pl\fR
  60. runs the named test case\&. With no
  61. \fItest_name\fR
  62. arguments,
  63. \fBmysql\-test\-run\&.pl\fR
  64. runs all
  65. \&.test
  66. files in the
  67. t
  68. subdirectory\&.
  69. .PP
  70. If no suffix is given for the test name, a suffix of
  71. \&.test
  72. is assumed\&. Any leading path name is ignored\&. These commands are equivalent:
  73. .sp
  74. .if n \{\
  75. .RS 4
  76. .\}
  77. .nf
  78. shell> \fBmysql\-test\-run\&.pl mytest\fR
  79. shell> \fBmysql\-test\-run\&.pl mytest\&.test\fR
  80. shell> \fBmysql\-test\-run\&.pl t/mytest\&.test\fR
  81. .fi
  82. .if n \{\
  83. .RE
  84. .\}
  85. .PP
  86. A suite name can be given as part of the test name\&. That is, the syntax for naming a test is:
  87. .sp
  88. .if n \{\
  89. .RS 4
  90. .\}
  91. .nf
  92. [\fIsuite_name\fR\&.]\fItest_name\fR[\&.\fIsuffix\fR]
  93. .fi
  94. .if n \{\
  95. .RE
  96. .\}
  97. .PP
  98. If a suite name is given,
  99. \fBmysql\-test\-run\&.pl\fR
  100. looks in that suite for the test\&. The test file corresponding to a test named
  101. \fIsuite_name\&.test_name\fR
  102. is found in
  103. suite/\fIsuite_name\fR/t/\fItest_name\fR\&.test\&. There is also an implicit suite name
  104. main
  105. for the tests in the top
  106. t
  107. directory\&. With no suite name,
  108. \fBmysql\-test\-run\&.pl\fR
  109. looks in the default list of suites for a match and runs the test in any suites where it finds the test\&. Suppose that the default suite list is
  110. main,
  111. binlog,
  112. rpl, and that a test
  113. mytest\&.test
  114. exists in the
  115. main
  116. and
  117. rpl
  118. suites\&. With an argument of
  119. mytest
  120. or
  121. mytest\&.test,
  122. \fBmysql\-test\-run\&.pl\fR
  123. will run
  124. mytest\&.test
  125. from the
  126. main
  127. and
  128. rpl
  129. suites\&.
  130. .PP
  131. To run a family of test cases for which the names share a common prefix, use the
  132. \fB\-\-do\-test=\fR\fB\fIprefix\fR\fR
  133. option\&. For example,
  134. \fB\-\-do\-test=rpl\fR
  135. runs the replication tests (test cases that have names beginning with
  136. rpl)\&.
  137. \fB\-\-skip\-test\fR
  138. has the opposite effect of skipping test cases for which the names share a common prefix\&.
  139. .PP
  140. The argument for the
  141. \fB\-\-do\-test\fR
  142. and
  143. \fB\-\-skip\-test\fR
  144. options also allows more flexible specification of which tests to perform or skip\&. If the argument contains a pattern metacharacter other than a lone period, it is interpreted as a Perl regular expression and applies to test names that match the pattern\&. If the argument contains a lone period or does not contain any pattern metacharacters, it is interpreted the same way as previously and matches test names that begin with the argument value\&. For example,
  145. \fB\-\-do\-test=testa\fR
  146. matches tests that begin with
  147. testa,
  148. \fB\-\-do\-test=main\&.testa\fR
  149. matches tests in the
  150. main
  151. test suite that begin with
  152. testa, and
  153. \fB\-\-do\-test=main\&.*testa\fR
  154. matches test names that contain
  155. main
  156. followed by
  157. testa
  158. with anything in between\&. In the latter case, the pattern match is not anchored to the beginning of the test name, so it also matches names such as
  159. xmainytesta\&.
  160. .PP
  161. To perform setup prior to running tests,
  162. \fBmysql\-test\-run\&.pl\fR
  163. needs to invoke
  164. \fBmysqld\fR
  165. with the
  166. \fB\-\-bootstrap\fR
  167. and
  168. \fB\-\-skip\-grant\-tables\fR
  169. options\&. If MySQL was configured with the
  170. \fB\-\-disable\-grant\-options\fR
  171. option,
  172. \fB\-\-bootstrap\fR,
  173. \fB\-\-skip\-grant\-tables\fR, and
  174. \fB\-\-init\-file\fR
  175. will be disabled\&. To handle this, set the
  176. MYSQLD_BOOTSTRAP
  177. environment variable to the full path name of a server that has all options enabled\&.
  178. \fBmysql\-test\-run\&.pl\fR
  179. will use that server to perform setup; it is not used to run the tests\&.
  180. .PP
  181. The
  182. init_file
  183. test will fail if
  184. \fB\-\-init\-file\fR
  185. is disabled\&. This is an expected failure that can be handled as follows:
  186. .sp
  187. .if n \{\
  188. .RS 4
  189. .\}
  190. .nf
  191. shell> \fBexport MYSQLD_BOOTSTRAP\fR
  192. shell> \fBMYSQLD_BOOTSTRAP=/full/path/to/mysqld\fR
  193. shell> \fBmake test force="\-\-skip\-test=init_file"\fR
  194. .fi
  195. .if n \{\
  196. .RE
  197. .\}
  198. .PP
  199. To run
  200. \fBmysql\-test\-run\&.pl\fR
  201. on Windows, you\'ll need either Cygwin or ActiveState Perl to run it\&. You may also need to install the modules required by the script\&. To run the test script, change location into the
  202. mysql\-test
  203. directory, set the
  204. MTR_VS_CONFIG
  205. environment variable to the configuration you selected earlier (or use the
  206. \fB\-\-vs\-config\fR
  207. option), and invoke
  208. \fBmysql\-test\-run\&.pl\fR\&. For example (using Cygwin and the
  209. \fBbash\fR
  210. shell):
  211. .sp
  212. .if n \{\
  213. .RS 4
  214. .\}
  215. .nf
  216. shell> \fBcd mysql\-test\fR
  217. shell> \fBexport MTR_VS_CONFIG=debug\fR
  218. shell> \fB\&./mysqltest\-run\&.pl \-\-force \-\-timer\fR
  219. shell> \fB\&./mysqltest\-run\&.pl \-\-force \-\-timer \-\-ps\-protocol\fR
  220. .fi
  221. .if n \{\
  222. .RE
  223. .\}
  224. .PP
  225. \fBmysql\-test\-run\&.pl\fR
  226. uses several environment variables\&. Some of them are listed in the following table\&. Some of these are set from the outside and used by
  227. \fBmysql\-test\-run\&.pl\fR, others are set by
  228. \fBmysql\-test\-run\&.pl\fR
  229. instead, and may be referred to in tests\&.
  230. .TS
  231. allbox tab(:);
  232. l l
  233. l l
  234. l l
  235. l l
  236. l l
  237. l l
  238. l l
  239. l l
  240. l l
  241. l l
  242. l l
  243. l l.
  244. T{
  245. \fBVariable\fR
  246. T}:T{
  247. \fBMeaning\fR
  248. T}
  249. T{
  250. MTR_VERSION
  251. T}:T{
  252. If set to 1, will run the older version 1 of
  253. \fBmysql\-test\-run\&.pl\fR\&. This will affect
  254. what functionailty is available and what command line
  255. options are supported\&.
  256. T}
  257. T{
  258. MTR_MEM
  259. T}:T{
  260. If set to anything, will run tests with files in "memory" using tmpfs or
  261. ramdisk\&. Not available on Windows\&. Same as
  262. \fB\-\-mem\fR option
  263. T}
  264. T{
  265. MTR_PARALLEL
  266. T}:T{
  267. If set, defines number of parallel threads executing tests\&. Same as
  268. \fB\-\-parallel\fR option
  269. T}
  270. T{
  271. MTR_BUILD_THREAD
  272. T}:T{
  273. If set, defines which port number range is used for the server
  274. T}
  275. T{
  276. MTR_PORT_BASE
  277. T}:T{
  278. If set, defines which port number range is used for the server
  279. T}
  280. T{
  281. MTR_\fINAME\fR_TIMEOUT
  282. T}:T{
  283. Setting of a timeout in minutes or seconds, corresponding to command
  284. line option
  285. \fB\-\-\fR\fB\fIname\fR\fR\fB\-timeout\fR\&.
  286. Avaliable timeout names are TESTCASE,
  287. SUITE (both in minutes) and
  288. START, SHUTDOWN
  289. (both in seconds)\&. These variables are supported from
  290. MySQL 5\&.1\&.44\&.
  291. T}
  292. T{
  293. MYSQL_TEST
  294. T}:T{
  295. Path name to \fBmysqltest\fR binary
  296. T}
  297. T{
  298. MYSQLD_BOOTSTRAP
  299. T}:T{
  300. Full path name to \fBmysqld\fR that has all options enabled
  301. T}
  302. T{
  303. MYSQLTEST_VARDIR
  304. T}:T{
  305. Path name to the var directory that is used for
  306. logs, temporary files, and so forth
  307. T}
  308. T{
  309. MYSQL_TEST_DIR
  310. T}:T{
  311. Full path to the mysql\-test directory where tests
  312. are being run from
  313. T}
  314. T{
  315. MYSQL_TMP_DIR
  316. T}:T{
  317. Path to temp directory used for temporary files during tests
  318. T}
  319. .TE
  320. .sp 1
  321. .PP
  322. The variable
  323. MTR_PORT_BASE
  324. was added in MySQL 5\&.1\&.45 as a more logical replacement for
  325. MTR_BUILD_THREAD\&. It gives the actual port number directly (will be rounded down to a multiple of 10)\&. If you use
  326. MTR_BUILD_THREAD, the port number is found by multiplying this by 10 and adding 10000\&.
  327. .PP
  328. Tests sometimes rely on certain environment variables being defined\&. For example, certain tests assume that
  329. MYSQL_TEST
  330. is defined so that
  331. \fBmysqltest\fR
  332. can invoke itself with
  333. exec $MYSQL_TEST\&.
  334. .PP
  335. Other tests may refer to the last three variables listed in the preceeding table, to locate files to read or write\&. For example, tests that need to create files will typically put them in
  336. $MYSQL_TMP_DIR/\fIfile_name\fR\&.
  337. .PP
  338. If you are running
  339. \fBmysql\-test\-run\&.pl\fR
  340. version 1 by setting
  341. MTR_VERSION, note that this only affects the test driver, not the test client (and its language) or the tests themselves\&.
  342. .PP
  343. A few tests might not run with version 1 because they depend on some feature of version 2\&. You may have those tests skipped by adding the test name to the file
  344. lib/v1/incompatible\&.tests\&. This feature is available from MySQL 5\&.1\&.40\&.
  345. .PP
  346. \fBmysql\-test\-run\&.pl\fR
  347. supports the options in the following list\&. An argument of
  348. \fB\-\-\fR
  349. tells
  350. \fBmysql\-test\-run\&.pl\fR
  351. not to process any following arguments as options\&.
  352. .sp
  353. .RS 4
  354. .ie n \{\
  355. \h'-04'\(bu\h'+03'\c
  356. .\}
  357. .el \{\
  358. .sp -1
  359. .IP \(bu 2.3
  360. .\}
  361. .\" mysql-test-run.pl: help option
  362. .\" help option: mysql-test-run.pl
  363. \fB\-\-help\fR,
  364. \fB\-h\fR
  365. .sp
  366. Display a help message and exit\&.
  367. .RE
  368. .sp
  369. .RS 4
  370. .ie n \{\
  371. \h'-04'\(bu\h'+03'\c
  372. .\}
  373. .el \{\
  374. .sp -1
  375. .IP \(bu 2.3
  376. .\}
  377. .\" mysql-test-run.pl: big-test option
  378. .\" big-test option: mysql-test-run.pl
  379. \fB\-\-big\-test\fR
  380. .sp
  381. Allow tests marked as "big" to run\&. Tests can be thus marked by including the line
  382. \fB\-\-source include/big_test\&.inc\fR, and they will only be run if this option is given, or if the environment variable
  383. BIG_TEST
  384. is set to 1\&.
  385. .sp
  386. This is typically done for tests that take very long to run, or that use very much resources, so that they are not suitable for running as part of a normal test suite run\&.
  387. .RE
  388. .sp
  389. .RS 4
  390. .ie n \{\
  391. \h'-04'\(bu\h'+03'\c
  392. .\}
  393. .el \{\
  394. .sp -1
  395. .IP \(bu 2.3
  396. .\}
  397. .\" mysql-test-run.pl: build-thread option
  398. .\" build-thread option: mysql-test-run.pl
  399. \fB\-\-build\-thread=\fR\fB\fInumber\fR\fR
  400. .sp
  401. Specify a number to calculate port numbers from\&. The formula is 10 *
  402. \fIbuild_thread\fR
  403. + 10000\&. Instead of a number, it can be set to
  404. auto, which is also the default value, in which case
  405. \fBmysql\-test\-run\&.pl\fR
  406. will allocate a number unique to this host\&.
  407. .sp
  408. The value (number or
  409. auto) can also be set with the
  410. MTR_BUILD_THREAD
  411. environment variable\&.
  412. .sp
  413. From MySQL 5\&.1\&.45, the more logical
  414. \fB\-\-port\-base\fR
  415. is supported as an alternative\&.
  416. .RE
  417. .sp
  418. .RS 4
  419. .ie n \{\
  420. \h'-04'\(bu\h'+03'\c
  421. .\}
  422. .el \{\
  423. .sp -1
  424. .IP \(bu 2.3
  425. .\}
  426. .\" mysql-test-run.pl: callgrind option
  427. .\" callgrind option: mysql-test-run.pl
  428. \fB\-\-callgrind\fR
  429. .sp
  430. Instructs
  431. \fBvalgrind\fR
  432. to use
  433. \fBcallgrind\fR\&.
  434. .RE
  435. .sp
  436. .RS 4
  437. .ie n \{\
  438. \h'-04'\(bu\h'+03'\c
  439. .\}
  440. .el \{\
  441. .sp -1
  442. .IP \(bu 2.3
  443. .\}
  444. .\" mysql-test-run.pl: check-testcases option
  445. .\" check-testcases option: mysql-test-run.pl
  446. \fB\-\-check\-testcases\fR
  447. .sp
  448. Check test cases for side effects\&. This is done by checking system state before and after each test case; if there is any difference, a warning to that effect will be written, but the test case will not be marked as failed because of it\&. This check is enabled by default\&.
  449. .RE
  450. .sp
  451. .RS 4
  452. .ie n \{\
  453. \h'-04'\(bu\h'+03'\c
  454. .\}
  455. .el \{\
  456. .sp -1
  457. .IP \(bu 2.3
  458. .\}
  459. .\" mysql-test-run.pl: client-bindir option
  460. .\" client-bindir option: mysql-test-run.pl
  461. \fB\-\-client\-bindir=\fR\fB\fIpath\fR\fR
  462. .sp
  463. The path to the directory where client binaries are located\&.
  464. .RE
  465. .sp
  466. .RS 4
  467. .ie n \{\
  468. \h'-04'\(bu\h'+03'\c
  469. .\}
  470. .el \{\
  471. .sp -1
  472. .IP \(bu 2.3
  473. .\}
  474. .\" mysql-test-run.pl: client-ddd option
  475. .\" client-ddd option: mysql-test-run.pl
  476. \fB\-\-client\-ddd\fR
  477. .sp
  478. Start
  479. \fBmysqltest\fR
  480. in the
  481. \fBddd\fR
  482. debugger\&.
  483. .RE
  484. .sp
  485. .RS 4
  486. .ie n \{\
  487. \h'-04'\(bu\h'+03'\c
  488. .\}
  489. .el \{\
  490. .sp -1
  491. .IP \(bu 2.3
  492. .\}
  493. .\" mysql-test-run.pl: client-debugger option
  494. .\" client-debugger option: mysql-test-run.pl
  495. \fB\-\-client\-debugger=\fR\fB\fIdebugger\fR\fR
  496. .sp
  497. Start
  498. \fBmysqltest\fR
  499. in the named debugger\&.
  500. .RE
  501. .sp
  502. .RS 4
  503. .ie n \{\
  504. \h'-04'\(bu\h'+03'\c
  505. .\}
  506. .el \{\
  507. .sp -1
  508. .IP \(bu 2.3
  509. .\}
  510. .\" mysql-test-run.pl: client-gdb option
  511. .\" client-gdb option: mysql-test-run.pl
  512. \fB\-\-client\-gdb\fR
  513. .sp
  514. Start
  515. \fBmysqltest\fR
  516. in the
  517. \fBgdb\fR
  518. debugger\&.
  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. .\" mysql-test-run.pl: client-libdir option
  530. .\" client-libdir option: mysql-test-run.pl
  531. \fB\-\-client\-libdir=\fR\fB\fIpath\fR\fR
  532. .sp
  533. The path to the directory where client libraries are located\&.
  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. .\" mysql-test-run.pl: combination option
  545. .\" combination option: mysql-test-run.pl
  546. \fB\-\-combination=\fR\fB\fIvalue\fR\fR
  547. .sp
  548. Extra options to pass to
  549. \fBmysqld\fR\&. The value should consist of one or more comma\-separated
  550. \fBmysqld\fR
  551. options\&. This option is similar to
  552. \fB\-\-mysqld\fR
  553. but should be given two or more times\&.
  554. \fBmysql\-test\-run\&.pl\fR
  555. executes multiple test runs, using the options for each instance of
  556. \fB\-\-combination\fR
  557. in successive runs\&. If
  558. \fB\-\-combination\fR
  559. is given only once, it has no effect\&. For test runs specific to a given test suite, an alternative to the use of
  560. \fB\-\-combination\fR
  561. is to create a
  562. combinations
  563. file in the suite directory\&. The file should contain a section of options for each test run\&. See
  564. Section\ \&4.9, \(lqPassing Options from mysql-test-run.pl to mysqld or mysqltest\(rq\&.
  565. .RE
  566. .sp
  567. .RS 4
  568. .ie n \{\
  569. \h'-04'\(bu\h'+03'\c
  570. .\}
  571. .el \{\
  572. .sp -1
  573. .IP \(bu 2.3
  574. .\}
  575. .\" mysql-test-run.pl: comment option
  576. .\" comment option: mysql-test-run.pl
  577. \fB\-\-comment=\fR\fB\fIstr\fR\fR
  578. .sp
  579. Write
  580. \fIstr\fR
  581. to the output within lines filled with
  582. #, as a form of banner\&.
  583. .RE
  584. .sp
  585. .RS 4
  586. .ie n \{\
  587. \h'-04'\(bu\h'+03'\c
  588. .\}
  589. .el \{\
  590. .sp -1
  591. .IP \(bu 2.3
  592. .\}
  593. .\" mysql-test-run.pl: compress option
  594. .\" compress option: mysql-test-run.pl
  595. \fB\-\-compress\fR
  596. .sp
  597. Compress all information sent between the client and the server if both support compression\&.
  598. .RE
  599. .sp
  600. .RS 4
  601. .ie n \{\
  602. \h'-04'\(bu\h'+03'\c
  603. .\}
  604. .el \{\
  605. .sp -1
  606. .IP \(bu 2.3
  607. .\}
  608. .\" mysql-test-run.pl: cursor-protocol option
  609. .\" cursor-protocol option: mysql-test-run.pl
  610. \fB\-\-cursor\-protocol\fR
  611. .sp
  612. Pass the
  613. \fB\-\-cursor\-protocol\fR
  614. option to
  615. \fBmysqltest\fR
  616. (implies
  617. \fB\-\-ps\-protocol\fR)\&.
  618. .RE
  619. .sp
  620. .RS 4
  621. .ie n \{\
  622. \h'-04'\(bu\h'+03'\c
  623. .\}
  624. .el \{\
  625. .sp -1
  626. .IP \(bu 2.3
  627. .\}
  628. .\" mysql-test-run.pl: ddd option
  629. .\" ddd option: mysql-test-run.pl
  630. \fB\-\-ddd\fR
  631. .sp
  632. Start
  633. \fBmysqld\fR
  634. in the
  635. \fBddd\fR
  636. debugger\&.
  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. .\" mysql-test-run.pl: debug option
  648. .\" debug option: mysql-test-run.pl
  649. \fB\-\-debug\fR
  650. .sp
  651. Dump trace output for all clients and servers\&.
  652. .RE
  653. .sp
  654. .RS 4
  655. .ie n \{\
  656. \h'-04'\(bu\h'+03'\c
  657. .\}
  658. .el \{\
  659. .sp -1
  660. .IP \(bu 2.3
  661. .\}
  662. .\" mysql-test-run.pl: debugger option
  663. .\" debugger option: mysql-test-run.pl
  664. \fB\-\-debugger=\fR\fB\fIdebugger\fR\fR
  665. .sp
  666. Start
  667. \fBmysqld\fR
  668. using the named debugger\&.
  669. .RE
  670. .sp
  671. .RS 4
  672. .ie n \{\
  673. \h'-04'\(bu\h'+03'\c
  674. .\}
  675. .el \{\
  676. .sp -1
  677. .IP \(bu 2.3
  678. .\}
  679. .\" mysql-test-run.pl: debug-sync-timeout option
  680. .\" debug-sync-timeout option: mysql-test-run.pl
  681. \fB\-\-debug\-sync\-timeout=\fR\fB\fIN\fR\fR
  682. .sp
  683. Controls whether the Debug Sync facility for testing and debugging is enabled\&. The option value is a timeout in seconds\&. The default value is 300\&. A value of 0 disables Debug Sync\&. The value of this option also becomes the default timeout for individual synchronization points\&.
  684. .sp
  685. \fBmysql\-test\-run\&.pl\fR
  686. passes
  687. \fB\-\-loose\-debug\-sync\-timeout=\fR\fB\fIN\fR\fR
  688. to
  689. \fBmysqld\fR\&. The
  690. \fB\-\-loose\fR
  691. prefix is used so that
  692. \fBmysqld\fR
  693. does not fail if Debug Sync is not compiled in\&.
  694. .sp
  695. For information about using the Debug Sync facility for testing, see
  696. Section\ \&4.14, \(lqThread Synchronization in Test Cases\(rq\&.
  697. .sp
  698. This option was added in MySQL 5\&.1\&.41/5\&.5\&.0/6\&.0\&.6\&.
  699. .RE
  700. .sp
  701. .RS 4
  702. .ie n \{\
  703. \h'-04'\(bu\h'+03'\c
  704. .\}
  705. .el \{\
  706. .sp -1
  707. .IP \(bu 2.3
  708. .\}
  709. .\" mysql-test-run.pl: defaults-file option
  710. .\" default-file option: mysql-test-run.pl
  711. \fB\-\-defaults\-file=\fR\fB\fIfile_name\fR\fR
  712. .sp
  713. Use the named file as fixed config file template for all tests\&.
  714. .RE
  715. .sp
  716. .RS 4
  717. .ie n \{\
  718. \h'-04'\(bu\h'+03'\c
  719. .\}
  720. .el \{\
  721. .sp -1
  722. .IP \(bu 2.3
  723. .\}
  724. .\" mysql-test-run.pl: defaults_extra_file option
  725. .\" default_extra_file option: mysql-test-run.pl
  726. \fB\-\-defaults_extra_file=\fR\fB\fIfile_name\fR\fR
  727. .sp
  728. Add setting from the named file to all generated configs\&.
  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. .\" mysql-test-run.pl: do-test option
  740. .\" do-test option: mysql-test-run.pl
  741. \fB\-\-do\-test=\fR\fB\fIprefix\fR\fR
  742. .sp
  743. Run all test cases having a name that begins with the given
  744. \fIprefix\fR
  745. value\&. This option provides a convenient way to run a family of similarly named tests\&.
  746. .sp
  747. The argument for the
  748. \fB\-\-do\-test\fR
  749. option also allows more flexible specification of which tests to perform\&. If the argument contains a pattern metacharacter other than a lone period, it is interpreted as a Perl regular expression and applies to test names that match the pattern\&. If the argument contains a lone period or does not contain any pattern metacharacters, it is interpreted the same way as previously and matches test names that begin with the argument value\&. For example,
  750. \fB\-\-do\-test=testa\fR
  751. matches tests that begin with
  752. testa,
  753. \fB\-\-do\-test=main\&.testa\fR
  754. matches tests in the
  755. main
  756. test suite that begin with
  757. testa, and
  758. \fB\-\-do\-test=main\&.*testa\fR
  759. matches test names that contain
  760. main
  761. followed by
  762. testa
  763. with anything in between\&. In the latter case, the pattern match is not anchored to the beginning of the test name, so it also matches names such as
  764. xmainytestz\&.
  765. .RE
  766. .sp
  767. .RS 4
  768. .ie n \{\
  769. \h'-04'\(bu\h'+03'\c
  770. .\}
  771. .el \{\
  772. .sp -1
  773. .IP \(bu 2.3
  774. .\}
  775. .\" mysql-test-run.pl: embedded-server option
  776. .\" embedded-server option: mysql-test-run.pl
  777. \fB\-\-embedded\-server\fR
  778. .sp
  779. Use a version of
  780. \fBmysqltest\fR
  781. built with the embedded server\&.
  782. .RE
  783. .sp
  784. .RS 4
  785. .ie n \{\
  786. \h'-04'\(bu\h'+03'\c
  787. .\}
  788. .el \{\
  789. .sp -1
  790. .IP \(bu 2.3
  791. .\}
  792. .\" mysql-test-run.pl: enable-disabled option
  793. .\" enable-disabled option: mysql-test-run.pl
  794. \fB\-\-enable\-disabled\fR
  795. .sp
  796. Ignore any
  797. disabled\&.def
  798. file, and run also tests marked as disbaled\&. Success or failure of those tests will be reported the same way as other tests\&.
  799. .RE
  800. .sp
  801. .RS 4
  802. .ie n \{\
  803. \h'-04'\(bu\h'+03'\c
  804. .\}
  805. .el \{\
  806. .sp -1
  807. .IP \(bu 2.3
  808. .\}
  809. .\" mysql-test-run.pl: experimental option
  810. .\" experimental option: mysql-test-run.pl
  811. \fB\-\-experimental=\fR\fB\fIfile_name\fR\fR
  812. .sp
  813. Specify a file that contains a list of test cases that should be displayed with the
  814. [ exp\-fail ]
  815. code rather than
  816. [ fail ]
  817. if they fail\&. This option was added in MySQL 5\&.1\&.33\&.
  818. .sp
  819. For an example of a file that might be specified via this option, see
  820. mysql\-test/collections/default\&.experimental\&.
  821. .RE
  822. .sp
  823. .RS 4
  824. .ie n \{\
  825. \h'-04'\(bu\h'+03'\c
  826. .\}
  827. .el \{\
  828. .sp -1
  829. .IP \(bu 2.3
  830. .\}
  831. .\" mysql-test-run.pl: extern option
  832. .\" extern option: mysql-test-run.pl
  833. \fB\-\-extern\fR
  834. \fIoption\fR=\fIvalue\fR
  835. .sp
  836. Use an already running server\&. The option/value pair is what is needed by the
  837. \fBmysql\fR
  838. client to connect to the server\&. Each
  839. \fB\-\-extern\fR
  840. can only take one option/value pair as argument, so it you need more you need to repeat
  841. \fB\-\-extern\fR
  842. for each of them\&. Example:
  843. .sp
  844. .if n \{\
  845. .RS 4
  846. .\}
  847. .nf
  848. \&./mysql\-test\-run\&.pl \-\-extern socket=var/tmp/mysqld\&.1\&.sock alias
  849. .fi
  850. .if n \{\
  851. .RE
  852. .\}
  853. .sp
  854. Note: If a test case has an
  855. \&.opt
  856. file that requires the server to be restarted with specific options, the file will not be used\&. The test case likely will fail as a result\&.
  857. .RE
  858. .sp
  859. .RS 4
  860. .ie n \{\
  861. \h'-04'\(bu\h'+03'\c
  862. .\}
  863. .el \{\
  864. .sp -1
  865. .IP \(bu 2.3
  866. .\}
  867. .\" mysql-test-run.pl: fast option
  868. .\" fast option: mysql-test-run.pl
  869. \fB\-\-fast\fR
  870. .sp
  871. Do not perform controlled shutdown when servers need to be restarted or at the end of the test run\&. This is equivalent to using
  872. \-\-shutdown\-timeout=0\&.
  873. .RE
  874. .sp
  875. .RS 4
  876. .ie n \{\
  877. \h'-04'\(bu\h'+03'\c
  878. .\}
  879. .el \{\
  880. .sp -1
  881. .IP \(bu 2.3
  882. .\}
  883. .\" mysql-test-run.pl: force option
  884. .\" force option: mysql-test-run.pl
  885. \fB\-\-force\fR
  886. .sp
  887. Normally,
  888. \fBmysql\-test\-run\&.pl\fR
  889. exits if a test case fails\&.
  890. \fB\-\-force\fR
  891. causes execution to continue regardless of test case failure\&.
  892. .RE
  893. .sp
  894. .RS 4
  895. .ie n \{\
  896. \h'-04'\(bu\h'+03'\c
  897. .\}
  898. .el \{\
  899. .sp -1
  900. .IP \(bu 2.3
  901. .\}
  902. .\" mysql-test-run.pl: gcov option
  903. .\" gcov option: mysql-test-run.pl
  904. \fB\-\-gcov\fR
  905. .sp
  906. Run tests with the
  907. \fBgcov\fR
  908. test coverage tool\&.
  909. .RE
  910. .sp
  911. .RS 4
  912. .ie n \{\
  913. \h'-04'\(bu\h'+03'\c
  914. .\}
  915. .el \{\
  916. .sp -1
  917. .IP \(bu 2.3
  918. .\}
  919. .\" mysql-test-run.pl: gdb option
  920. .\" gdb option: mysql-test-run.pl
  921. \fB\-\-gdb\fR
  922. .sp
  923. Start
  924. \fBmysqld\fR
  925. in the
  926. \fBgdb\fR
  927. debugger\&.
  928. .RE
  929. .sp
  930. .RS 4
  931. .ie n \{\
  932. \h'-04'\(bu\h'+03'\c
  933. .\}
  934. .el \{\
  935. .sp -1
  936. .IP \(bu 2.3
  937. .\}
  938. .\" mysql-test-run.pl: gprof option
  939. .\" gprof option: mysql-test-run.pl
  940. \fB\-\-gprof\fR
  941. .sp
  942. Run tests with the
  943. \fBgprof\fR
  944. profiling tool\&.
  945. \fB\-\-gprof\fR
  946. was added in 5\&.1\&.45\&.
  947. .RE
  948. .sp
  949. .RS 4
  950. .ie n \{\
  951. \h'-04'\(bu\h'+03'\c
  952. .\}
  953. .el \{\
  954. .sp -1
  955. .IP \(bu 2.3
  956. .\}
  957. .\" mysql-test-run.pl: manual-ddd option
  958. .\" manual-ddd option: mysql-test-run.pl
  959. \fB\-\-manual\-ddd\fR
  960. .sp
  961. Use a server that has already been started by the user in the
  962. \fBddd\fR
  963. debugger\&.
  964. .RE
  965. .sp
  966. .RS 4
  967. .ie n \{\
  968. \h'-04'\(bu\h'+03'\c
  969. .\}
  970. .el \{\
  971. .sp -1
  972. .IP \(bu 2.3
  973. .\}
  974. .\" mysql-test-run.pl: manual-debug option
  975. .\" manual-debug option: mysql-test-run.pl
  976. \fB\-\-manual\-debug\fR
  977. .sp
  978. Use a server that has already been started by the user in a debugger\&.
  979. .RE
  980. .sp
  981. .RS 4
  982. .ie n \{\
  983. \h'-04'\(bu\h'+03'\c
  984. .\}
  985. .el \{\
  986. .sp -1
  987. .IP \(bu 2.3
  988. .\}
  989. .\" mysql-test-run.pl: manual-gdb option
  990. .\" manual-gdb option: mysql-test-run.pl
  991. \fB\-\-manual\-gdb\fR
  992. .sp
  993. Use a server that has already been started by the user in the
  994. \fBgdb\fR
  995. debugger\&.
  996. .RE
  997. .sp
  998. .RS 4
  999. .ie n \{\
  1000. \h'-04'\(bu\h'+03'\c
  1001. .\}
  1002. .el \{\
  1003. .sp -1
  1004. .IP \(bu 2.3
  1005. .\}
  1006. .\" mysql-test-run.pl: mark-progress option
  1007. .\" mark-progress option: mysql-test-run.pl
  1008. \fB\-\-mark\-progress\fR
  1009. .sp
  1010. Marks progress with timing (in milliseconds) and line number in
  1011. var/log/\fItestname\fR\&.progress\&.
  1012. .RE
  1013. .sp
  1014. .RS 4
  1015. .ie n \{\
  1016. \h'-04'\(bu\h'+03'\c
  1017. .\}
  1018. .el \{\
  1019. .sp -1
  1020. .IP \(bu 2.3
  1021. .\}
  1022. .\" mysql-test-run.pl: max-connections option
  1023. .\" max-connections option: mysql-test-run.pl
  1024. \fB\-\-max\-connections=\fR\fB\fInum\fR\fR
  1025. .sp
  1026. The maximum number of simultaneous server connections that may be used per test\&. If not set, the maximum is 128\&. Minimum allowed limit is 8, maximum is 5120\&. Corresponds to the same option for
  1027. \fBmysqltest\fR\&.
  1028. .sp
  1029. This option is available from MySQL 5\&.1\&.45\&.
  1030. .RE
  1031. .sp
  1032. .RS 4
  1033. .ie n \{\
  1034. \h'-04'\(bu\h'+03'\c
  1035. .\}
  1036. .el \{\
  1037. .sp -1
  1038. .IP \(bu 2.3
  1039. .\}
  1040. .\" mysql-test-run.pl: max-save-core option
  1041. .\" max-save-core option: mysql-test-run.pl
  1042. \fB\-\-max\-save\-core=\fR\fB\fIN\fR\fR
  1043. .sp
  1044. Limit the number of core files saved, to avoid filling up disks in case of a frequently crashing server\&. Defaults to 5, set to 0 for no limit\&. May also be set with the environment variable
  1045. MTR_MAX_SAVE_CORE
  1046. .RE
  1047. .sp
  1048. .RS 4
  1049. .ie n \{\
  1050. \h'-04'\(bu\h'+03'\c
  1051. .\}
  1052. .el \{\
  1053. .sp -1
  1054. .IP \(bu 2.3
  1055. .\}
  1056. .\" mysql-test-run.pl: max-save-datadir option
  1057. .\" max-save-datadir option: mysql-test-run.pl
  1058. \fB\-\-max\-save\-datadir=\fR\fB\fIN\fR\fR
  1059. .sp
  1060. Limit the number of data directories saved after failed tests, to avoid filling up disks in case of frequent failures\&. Defaults to 20, set to 0 for no limit\&. May also be set with the environment variable
  1061. MTR_MAX_SAVE_DATADIR
  1062. .RE
  1063. .sp
  1064. .RS 4
  1065. .ie n \{\
  1066. \h'-04'\(bu\h'+03'\c
  1067. .\}
  1068. .el \{\
  1069. .sp -1
  1070. .IP \(bu 2.3
  1071. .\}
  1072. .\" mysql-test-run.pl: max-test-fail option
  1073. .\" max-test-fail option: mysql-test-run.pl
  1074. \fB\-\-max\-test\-fail=\fR\fB\fIN\fR\fR
  1075. .sp
  1076. Stop execution after the specified number of tests have failed, to avoid using up resources (and time) in case of massive failures\&. retries are noe counted, nor are failures of tests marked experimental\&. Defaults to 10, set to 0 for no limit\&. May also be set with the environment variable
  1077. MTR_MAX_TEST_FAIL
  1078. .RE
  1079. .sp
  1080. .RS 4
  1081. .ie n \{\
  1082. \h'-04'\(bu\h'+03'\c
  1083. .\}
  1084. .el \{\
  1085. .sp -1
  1086. .IP \(bu 2.3
  1087. .\}
  1088. .\" mysql-test-run.pl: mem option
  1089. .\" mem option: mysql-test-run.pl
  1090. \fB\-\-mem\fR
  1091. .sp
  1092. This option is not supported on Windows\&.
  1093. .sp
  1094. Run the test suite in memory, using tmpfs or ramdisk\&. This can decrease test times significantly, in particular if you would otherwise be running over a remote file system\&.
  1095. \fBmysql\-test\-run\&.pl\fR
  1096. attempts to find a suitable location using a built\-in list of standard locations for tmpfs and puts the
  1097. var
  1098. directory there\&. This option also affects placement of temporary files, which are created in
  1099. var/tmp\&.
  1100. .sp
  1101. The default list includes
  1102. /dev/shm\&. You can also enable this option by setting the environment variable
  1103. MTR_MEM[=\fIdir_name\fR]\&. If
  1104. \fIdir_name\fR
  1105. is given, it is added to the beginning of the list of locations to search, so it takes precedence over any built\-in locations\&.
  1106. .sp
  1107. Once you have run tests with
  1108. \fB\-\-mem\fR
  1109. within a
  1110. mysql\-testdirectory, a soflink
  1111. var
  1112. will have been set up to the temporary directory, and this will be re\-used the next time, until the soflink is deleted\&. Thus, you do not have to repeat the
  1113. \fB\-\-mem\fR
  1114. option next time\&.
  1115. .RE
  1116. .sp
  1117. .RS 4
  1118. .ie n \{\
  1119. \h'-04'\(bu\h'+03'\c
  1120. .\}
  1121. .el \{\
  1122. .sp -1
  1123. .IP \(bu 2.3
  1124. .\}
  1125. .\" mysql-test-run.pl: mysqld option
  1126. .\" mysqld option: mysql-test-run.pl
  1127. \fB\-\-mysqld=\fR\fB\fIvalue\fR\fR
  1128. .sp
  1129. Extra options to pass to
  1130. \fBmysqld\fR\&. The value should consist of one or more comma\-separated
  1131. \fBmysqld\fR
  1132. options\&. See
  1133. Section\ \&4.9, \(lqPassing Options from mysql-test-run.pl to mysqld or mysqltest\(rq\&.
  1134. .RE
  1135. .sp
  1136. .RS 4
  1137. .ie n \{\
  1138. \h'-04'\(bu\h'+03'\c
  1139. .\}
  1140. .el \{\
  1141. .sp -1
  1142. .IP \(bu 2.3
  1143. .\}
  1144. .\" mysql-test-run.pl: ndb-connectstring option
  1145. .\" ndb-connectstring option: mysql-test-run.pl
  1146. \fB\-\-ndb\-connectstring=\fR\fB\fIstr\fR\fR
  1147. .sp
  1148. Pass
  1149. \fB\-\-ndb\-connectstring=\fR\fB\fIstr\fR\fR
  1150. to the master MySQL server\&. This option also prevents
  1151. \fBmysql\-test\-run\&.pl\fR
  1152. from starting a cluster\&. It is assumed that there is already a cluster running to which the server can connect with the given connectstring\&.
  1153. .RE
  1154. .sp
  1155. .RS 4
  1156. .ie n \{\
  1157. \h'-04'\(bu\h'+03'\c
  1158. .\}
  1159. .el \{\
  1160. .sp -1
  1161. .IP \(bu 2.3
  1162. .\}
  1163. .\" mysql-test-run.pl: nocheck-testcases option
  1164. .\" nocheck-testcases option: mysql-test-run.pl
  1165. \fB\-\-nocheck\-testcases\fR
  1166. .sp
  1167. Disable the check for test case side effects; see
  1168. \fB\-\-check\-testcases\fR
  1169. for a description\&.
  1170. .RE
  1171. .sp
  1172. .RS 4
  1173. .ie n \{\
  1174. \h'-04'\(bu\h'+03'\c
  1175. .\}
  1176. .el \{\
  1177. .sp -1
  1178. .IP \(bu 2.3
  1179. .\}
  1180. .\" mysql-test-run.pl: noreorder option
  1181. .\" noreorder option: mysql-test-run.pl
  1182. \fB\-\-noreorder\fR
  1183. .sp
  1184. Do not reorder tests to reduce number of restarts, but run them in exactly the order given\&. If a whole suite is to be run, the tests are run in alphabetical order, though similiar combinations will be grouped together\&. If more than one suite is listed, the tests are run one suite at a time, in the order listed\&.
  1185. .RE
  1186. .sp
  1187. .RS 4
  1188. .ie n \{\
  1189. \h'-04'\(bu\h'+03'\c
  1190. .\}
  1191. .el \{\
  1192. .sp -1
  1193. .IP \(bu 2.3
  1194. .\}
  1195. .\" mysql-test-run.pl: notimer option
  1196. .\" notimer option: mysql-test-run.pl
  1197. \fB\-\-notimer\fR
  1198. .sp
  1199. Cause
  1200. \fBmysqltest\fR
  1201. not to generate a timing file\&. The effect of this is that the report from each test case does not include the timing in milliseconds as it normally does\&.
  1202. .RE
  1203. .sp
  1204. .RS 4
  1205. .ie n \{\
  1206. \h'-04'\(bu\h'+03'\c
  1207. .\}
  1208. .el \{\
  1209. .sp -1
  1210. .IP \(bu 2.3
  1211. .\}
  1212. .\" mysql-test-run.pl: nowarnings option
  1213. .\" nowarnings option: mysql-test-run.pl
  1214. \fB\-\-nowarnings\fR
  1215. .sp
  1216. Do not look for and report errors and warning in the server logs\&.
  1217. .RE
  1218. .sp
  1219. .RS 4
  1220. .ie n \{\
  1221. \h'-04'\(bu\h'+03'\c
  1222. .\}
  1223. .el \{\
  1224. .sp -1
  1225. .IP \(bu 2.3
  1226. .\}
  1227. .\" mysql-test-run.pl: parallel option
  1228. .\" parallel option: mysql-test-run.pl
  1229. \fB\-\-parallel={\fR\fB\fIN\fR\fR\fB|auto}\fR
  1230. .sp
  1231. Run tests using
  1232. \fIN\fR
  1233. parallel threads\&. By default, 1 thread is used\&. Use
  1234. \fB\-\-parallel=auto\fR
  1235. for auto\-setting of
  1236. \fIN\fR\&. The auto value was added in MySQL 5\&.1\&.36\&.
  1237. .RE
  1238. .sp
  1239. .RS 4
  1240. .ie n \{\
  1241. \h'-04'\(bu\h'+03'\c
  1242. .\}
  1243. .el \{\
  1244. .sp -1
  1245. .IP \(bu 2.3
  1246. .\}
  1247. .\" mysql-test-run.pl: port-base option
  1248. .\" port-base option: mysql-test-run.pl
  1249. \fB\-\-port\-base=\fR\fB\fIP\fR\fR
  1250. .sp
  1251. Specify base of port numbers to be used; a block of 10 will be allocated\&.
  1252. \fIP\fR
  1253. should be divisible by 10; if it is not, it will be rounded down\&. If running with more than one parallel test thread, thread 2 will use the next block of 10 and so on\&.
  1254. .sp
  1255. If the port number is given as
  1256. auto, which is also the default,
  1257. \fBmysql\-test\-run\&.pl\fRwill allocate a number unique to this host\&. The value may also be given with the environment variable
  1258. MTR_PORT_BASE\&.
  1259. .sp
  1260. \fB\-\-port\-base\fR
  1261. was added in MySQL 5\&.1\&.45 as a more logical alternative to
  1262. \fB\-\-build\-thread\fR\&. If both are used,
  1263. \fB\-\-port\-base\fR
  1264. takes presedence\&.
  1265. .RE
  1266. .sp
  1267. .RS 4
  1268. .ie n \{\
  1269. \h'-04'\(bu\h'+03'\c
  1270. .\}
  1271. .el \{\
  1272. .sp -1
  1273. .IP \(bu 2.3
  1274. .\}
  1275. .\" mysql-test-run.pl: print-testcases option
  1276. .\" print-testcases option: mysql-test-run.pl
  1277. \fB\-\-print\-testcases\fR
  1278. .sp
  1279. Do not run any tests, but print details about all tests, in the order they would have been run\&.
  1280. .RE
  1281. .sp
  1282. .RS 4
  1283. .ie n \{\
  1284. \h'-04'\(bu\h'+03'\c
  1285. .\}
  1286. .el \{\
  1287. .sp -1
  1288. .IP \(bu 2.3
  1289. .\}
  1290. .\" mysql-test-run.pl: ps-protocol option
  1291. .\" ps-protocol option: mysql-test-run.pl
  1292. \fB\-\-ps\-protocol\fR
  1293. .sp
  1294. Pass the
  1295. \fB\-\-ps\-protocol\fR
  1296. option to
  1297. \fBmysqltest\fR\&.
  1298. .RE
  1299. .sp
  1300. .RS 4
  1301. .ie n \{\
  1302. \h'-04'\(bu\h'+03'\c
  1303. .\}
  1304. .el \{\
  1305. .sp -1
  1306. .IP \(bu 2.3
  1307. .\}
  1308. .\" mysql-test-run.pl: record option
  1309. .\" record option: mysql-test-run.pl
  1310. \fB\-\-record\fR
  1311. .sp
  1312. Pass the
  1313. \fB\-\-record\fR
  1314. option to
  1315. \fBmysqltest\fR\&. This option requires a specific test case to be named on the command line\&.
  1316. .RE
  1317. .sp
  1318. .RS 4
  1319. .ie n \{\
  1320. \h'-04'\(bu\h'+03'\c
  1321. .\}
  1322. .el \{\
  1323. .sp -1
  1324. .IP \(bu 2.3
  1325. .\}
  1326. .\" mysql-test-run.pl: reorder option
  1327. .\" reorder option: mysql-test-run.pl
  1328. \fB\-\-reorder\fR
  1329. .sp
  1330. Reorder tests to minimize the number of server restarts needed\&. This is the default behavior\&. There is no guarantee that a particular set of tests will always end up in the same order\&.
  1331. .RE
  1332. .sp
  1333. .RS 4
  1334. .ie n \{\
  1335. \h'-04'\(bu\h'+03'\c
  1336. .\}
  1337. .el \{\
  1338. .sp -1
  1339. .IP \(bu 2.3
  1340. .\}
  1341. .\" mysql-test-run.pl: repeat option
  1342. .\" repeat option: mysql-test-run.pl
  1343. \fB\-\-repeat=\fR\fB\fIN\fR\fR
  1344. .sp
  1345. Run each test
  1346. \fIN\fR
  1347. number of times\&.
  1348. .RE
  1349. .sp
  1350. .RS 4
  1351. .ie n \{\
  1352. \h'-04'\(bu\h'+03'\c
  1353. .\}
  1354. .el \{\
  1355. .sp -1
  1356. .IP \(bu 2.3
  1357. .\}
  1358. .\" mysql-test-run.pl: report-features option
  1359. .\" report-features option: mysql-test-run.pl
  1360. \fB\-\-report\-features\fR
  1361. .sp
  1362. Display the output of
  1363. SHOW ENGINES
  1364. and
  1365. SHOW VARIABLES\&. This can be used to verify that binaries are built with all required features\&.
  1366. .RE
  1367. .sp
  1368. .RS 4
  1369. .ie n \{\
  1370. \h'-04'\(bu\h'+03'\c
  1371. .\}
  1372. .el \{\
  1373. .sp -1
  1374. .IP \(bu 2.3
  1375. .\}
  1376. .\" mysql-test-run.pl: retry option
  1377. .\" retry option: mysql-test-run.pl
  1378. \fB\-\-retry=\fR\fB\fIN\fR\fR
  1379. .sp
  1380. If a test fails, it is retried up to a maximum of
  1381. \fIN\fR
  1382. runs, but will terminate after 2 failures\&. Default is 3, set to 1 or 0 for no retries\&. This option has no effect unless
  1383. \fB\-\-force\fR
  1384. is also used; without it, test execution will terminate after the first failure\&.
  1385. .sp
  1386. The
  1387. \fB\-\-retry\fR
  1388. and
  1389. \fB\-\-retry\-failure\fR
  1390. options do not affect how many times a test repeated with
  1391. \fB\-\-repeat\fR
  1392. may fail in total, as each repetition is considered a new test case, which may in turn be retried if it fails\&.
  1393. .RE
  1394. .sp
  1395. .RS 4
  1396. .ie n \{\
  1397. \h'-04'\(bu\h'+03'\c
  1398. .\}
  1399. .el \{\
  1400. .sp -1
  1401. .IP \(bu 2.3
  1402. .\}
  1403. .\" mysql-test-run.pl: retry-failure option
  1404. .\" retry-failure option: mysql-test-run.pl
  1405. \fB\-\-retry\-failure=\fR\fB\fIN\fR\fR
  1406. .sp
  1407. Allow a failed and retried test to fail more than the default 2 times before giving it up\&. Setting it to 0 or 1 effectively turns off retries
  1408. .RE
  1409. .sp
  1410. .RS 4
  1411. .ie n \{\
  1412. \h'-04'\(bu\h'+03'\c
  1413. .\}
  1414. .el \{\
  1415. .sp -1
  1416. .IP \(bu 2.3
  1417. .\}
  1418. .\" mysql-test-run.pl: shutdown-timeout option
  1419. .\" shutdown-timeout option: mysql-test-run.pl
  1420. \fB\-\-shutdown\-timeout=\fR\fB\fISECONDS\fR\fR
  1421. .sp
  1422. Max number of seconds to wait for servers to do controlled shutdown before killing them\&. Default is 10\&.
  1423. .RE
  1424. .sp
  1425. .RS 4
  1426. .ie n \{\
  1427. \h'-04'\(bu\h'+03'\c
  1428. .\}
  1429. .el \{\
  1430. .sp -1
  1431. .IP \(bu 2.3
  1432. .\}
  1433. .\" mysql-test-run.pl: skip-combinations option
  1434. .\" skip-combinations option: mysql-test-run.pl
  1435. \fB\-\-skip\-combinations\fR
  1436. .sp
  1437. Do not apply combinations; ignore combinations file or option\&.
  1438. .RE
  1439. .sp
  1440. .RS 4
  1441. .ie n \{\
  1442. \h'-04'\(bu\h'+03'\c
  1443. .\}
  1444. .el \{\
  1445. .sp -1
  1446. .IP \(bu 2.3
  1447. .\}
  1448. .\" mysql-test-run.pl: skip-ndbcluster option
  1449. .\" skip-ndbcluster option: mysql-test-run.pl
  1450. \fB\-\-skip\-ndbcluster\fR,
  1451. .\" mysql-test-run.pl: skip-ndb option
  1452. .\" skip-ndb option: mysql-test-run.pl
  1453. \fB\-\-skip\-ndb\fR
  1454. .sp
  1455. Do not start NDB Cluster; skip Cluster test cases\&.
  1456. .RE
  1457. .sp
  1458. .RS 4
  1459. .ie n \{\
  1460. \h'-04'\(bu\h'+03'\c
  1461. .\}
  1462. .el \{\
  1463. .sp -1
  1464. .IP \(bu 2.3
  1465. .\}
  1466. .\" mysql-test-run.pl: skip-ndbcluster-slave option
  1467. .\" skip-ndbcluster-slave option: mysql-test-run.pl
  1468. \fB\-\-skip\-ndbcluster\-slave\fR,
  1469. .\" mysql-test-run.pl: skip-ndb-slave option
  1470. .\" skip-ndb-slave option: mysql-test-run.pl
  1471. \fB\-\-skip\-ndb\-slave\fR
  1472. .sp
  1473. Do not start an NDB Cluster slave\&.
  1474. .RE
  1475. .sp
  1476. .RS 4
  1477. .ie n \{\
  1478. \h'-04'\(bu\h'+03'\c
  1479. .\}
  1480. .el \{\
  1481. .sp -1
  1482. .IP \(bu 2.3
  1483. .\}
  1484. .\" mysql-test-run.pl: skip-rpl option
  1485. .\" skip-rpl option: mysql-test-run.pl
  1486. \fB\-\-skip\-rpl\fR
  1487. .sp
  1488. Skip replication test cases\&.
  1489. .RE
  1490. .sp
  1491. .RS 4
  1492. .ie n \{\
  1493. \h'-04'\(bu\h'+03'\c
  1494. .\}
  1495. .el \{\
  1496. .sp -1
  1497. .IP \(bu 2.3
  1498. .\}
  1499. .\" mysql-test-run.pl: skip-ssl option
  1500. .\" skip-ssl option: mysql-test-run.pl
  1501. \fB\-\-skip\-ssl\fR
  1502. .sp
  1503. Do not start
  1504. \fBmysqld\fR
  1505. with support for SSL connections\&.
  1506. .RE
  1507. .sp
  1508. .RS 4
  1509. .ie n \{\
  1510. \h'-04'\(bu\h'+03'\c
  1511. .\}
  1512. .el \{\
  1513. .sp -1
  1514. .IP \(bu 2.3
  1515. .\}
  1516. .\" mysql-test-run.pl: skip-test option
  1517. .\" skip-test option: mysql-test-run.pl
  1518. \fB\-\-skip\-test=\fR\fB\fIregex\fR\fR
  1519. .sp
  1520. Specify a regular expression to be applied to test case names\&. Cases with names that match the expression are skipped\&. tests to skip\&.
  1521. .sp
  1522. The argument for the
  1523. \fB\-\-skip\-test\fR
  1524. option allows more flexible specification of which tests to skip\&. If the argument contains a pattern metacharacter other than a lone period, it is interpreted as a Perl regular expression and applies to test names that match the pattern\&. See the description of the
  1525. \fB\-\-do\-test\fR
  1526. option for details\&.
  1527. .RE
  1528. .sp
  1529. .RS 4
  1530. .ie n \{\
  1531. \h'-04'\(bu\h'+03'\c
  1532. .\}
  1533. .el \{\
  1534. .sp -1
  1535. .IP \(bu 2.3
  1536. .\}
  1537. \fB\-\-skip\-*\fR
  1538. .sp
  1539. \fB\-\-skip\-*\fR
  1540. options not otherwise recognized by
  1541. \fBmysql\-test\-run\&.pl\fR
  1542. are passed to the master server\&.
  1543. .RE
  1544. .sp
  1545. .RS 4
  1546. .ie n \{\
  1547. \h'-04'\(bu\h'+03'\c
  1548. .\}
  1549. .el \{\
  1550. .sp -1
  1551. .IP \(bu 2.3
  1552. .\}
  1553. .\" mysql-test-run.pl: sleep option
  1554. .\" sleep option: mysql-test-run.pl
  1555. \fB\-\-sleep=\fR\fB\fIN\fR\fR
  1556. .sp
  1557. Pass
  1558. \fB\-\-sleep=\fR\fB\fIN\fR\fR
  1559. to
  1560. \fBmysqltest\fR\&.
  1561. .RE
  1562. .sp
  1563. .RS 4
  1564. .ie n \{\
  1565. \h'-04'\(bu\h'+03'\c
  1566. .\}
  1567. .el \{\
  1568. .sp -1
  1569. .IP \(bu 2.3
  1570. .\}
  1571. .\" mysql-test-run.pl: sp-protocol option
  1572. .\" sp-protocol option: mysql-test-run.pl
  1573. \fB\-\-sp\-protocol\fR
  1574. .sp
  1575. Pass the
  1576. \fB\-\-sp\-protocol\fR
  1577. option to
  1578. \fBmysqltest\fR\&.
  1579. .RE
  1580. .sp
  1581. .RS 4
  1582. .ie n \{\
  1583. \h'-04'\(bu\h'+03'\c
  1584. .\}
  1585. .el \{\
  1586. .sp -1
  1587. .IP \(bu 2.3
  1588. .\}
  1589. .\" mysql-test-run.pl: ssl option
  1590. .\" ssl option: mysql-test-run.pl
  1591. \fB\-\-ssl\fR
  1592. .sp
  1593. If
  1594. \fBmysql\-test\-run\&.pl\fR
  1595. is started with the
  1596. \fB\-\-ssl\fR
  1597. option, it sets up a secure conection for all test cases\&. In this case, if
  1598. \fBmysqld\fR
  1599. does not support SSL,
  1600. \fBmysql\-test\-run\&.pl\fR
  1601. exits with an error message:
  1602. Couldn\'t find support for SSL
  1603. .RE
  1604. .sp
  1605. .RS 4
  1606. .ie n \{\
  1607. \h'-04'\(bu\h'+03'\c
  1608. .\}
  1609. .el \{\
  1610. .sp -1
  1611. .IP \(bu 2.3
  1612. .\}
  1613. .\" mysql-test-run.pl: start-and-exit option
  1614. .\" start-and-exit option: mysql-test-run.pl
  1615. \fB\-\-start\fR
  1616. .sp
  1617. Initialize and start servers with the startup settings for the specified test case\&. You can use this option to start a server to which you can connect later\&. For example, after building a source distribution you can start a server and connect to it with the
  1618. \fBmysql\fR
  1619. client like this:
  1620. .sp
  1621. .if n \{\
  1622. .RS 4
  1623. .\}
  1624. .nf
  1625. shell> \fBcd mysql\-test\fR
  1626. shell> \fB\&./mysql\-test\-run\&.pl \-\-start alias &\fR
  1627. shell> \fB\&.\&./mysql \-S \&./var/tmp/master\&.sock \-h localhost \-u root\fR
  1628. .fi
  1629. .if n \{\
  1630. .RE
  1631. .\}
  1632. .sp
  1633. If no tests are named on the command line, the server(s) will be started with settings for the first test that would have been run without the
  1634. \fB\-\-start\fR
  1635. option\&.
  1636. .sp
  1637. \fBmysql\-test\-run\&.pl\fR
  1638. will stop once the server has been started, but will terminate if the server dies\&. If killed, it will also shut down the server\&.
  1639. .RE
  1640. .sp
  1641. .RS 4
  1642. .ie n \{\
  1643. \h'-04'\(bu\h'+03'\c
  1644. .\}
  1645. .el \{\
  1646. .sp -1
  1647. .IP \(bu 2.3
  1648. .\}
  1649. .\" mysql-test-run.pl: start-dirty option
  1650. .\" start-dirty option: mysql-test-run.pl
  1651. \fB\-\-start\-dirty\fR
  1652. .sp
  1653. This is similar to
  1654. \fB\-\-start\fR, but will skip the database initialization phase and assume that database files are already available\&. Usually this means you must have run another test first\&.
  1655. .RE
  1656. .sp
  1657. .RS 4
  1658. .ie n \{\
  1659. \h'-04'\(bu\h'+03'\c
  1660. .\}
  1661. .el \{\
  1662. .sp -1
  1663. .IP \(bu 2.3
  1664. .\}
  1665. .\" mysql-test-run.pl: start-from option
  1666. .\" start-from option: mysql-test-run.pl
  1667. \fB\-\-start\-from=\fR\fB\fItest_name\fR\fR
  1668. .sp
  1669. \fBmysql\-test\-run\&.pl\fR
  1670. sorts the list of names of the test cases to be run, and then begins with
  1671. \fItest_name\fR\&.
  1672. .RE
  1673. .sp
  1674. .RS 4
  1675. .ie n \{\
  1676. \h'-04'\(bu\h'+03'\c
  1677. .\}
  1678. .el \{\
  1679. .sp -1
  1680. .IP \(bu 2.3
  1681. .\}
  1682. .\" mysql-test-run.pl: strace-client option
  1683. .\" strace-client option: mysql-test-run.pl
  1684. \fB\-\-strace\-client\fR
  1685. .sp
  1686. Create
  1687. \fBstrace\fR
  1688. output for
  1689. \fBmysqltest\fR\&.
  1690. .RE
  1691. .sp
  1692. .RS 4
  1693. .ie n \{\
  1694. \h'-04'\(bu\h'+03'\c
  1695. .\}
  1696. .el \{\
  1697. .sp -1
  1698. .IP \(bu 2.3
  1699. .\}
  1700. .\" mysql-test-run.pl: suite option
  1701. .\" suite option: mysql-test-run.pl
  1702. \fB\-\-suite=\fR\fB\fIsuite_name\fR\fR
  1703. .sp
  1704. Run the named test suite\&. The default name is
  1705. main
  1706. (the regular test suite located in the
  1707. mysql\-test
  1708. directory)\&.
  1709. .RE
  1710. .sp
  1711. .RS 4
  1712. .ie n \{\
  1713. \h'-04'\(bu\h'+03'\c
  1714. .\}
  1715. .el \{\
  1716. .sp -1
  1717. .IP \(bu 2.3
  1718. .\}
  1719. .\" mysql-test-run.pl: suite-timeout option
  1720. .\" suite-timeout option: mysql-test-run.pl
  1721. \fB\-\-suite\-timeout=\fR\fB\fIminutes\fR\fR
  1722. .sp
  1723. Specify the maximum test suite runtime\&.
  1724. .RE
  1725. .sp
  1726. .RS 4
  1727. .ie n \{\
  1728. \h'-04'\(bu\h'+03'\c
  1729. .\}
  1730. .el \{\
  1731. .sp -1
  1732. .IP \(bu 2.3
  1733. .\}
  1734. .\" mysql-test-run.pl: testcase-timeout option
  1735. .\" testcase-timeout option: mysql-test-run.pl
  1736. \fB\-\-testcase\-timeout\fR
  1737. .sp
  1738. Specify the maximum test case runtime\&.
  1739. .RE
  1740. .sp
  1741. .RS 4
  1742. .ie n \{\
  1743. \h'-04'\(bu\h'+03'\c
  1744. .\}
  1745. .el \{\
  1746. .sp -1
  1747. .IP \(bu 2.3
  1748. .\}
  1749. .\" mysql-test-run.pl: timediff option
  1750. .\" timediff option: mysql-test-run.pl
  1751. \fB\-\-timediff\fR
  1752. .sp
  1753. Adds to each test report for a test case, the total time in sconds and milliseconds passed since the preceding test ended\&. This option can only be used together with
  1754. \fB\-\-timestamp\fR, and has no effect without it\&.
  1755. .RE
  1756. .sp
  1757. .RS 4
  1758. .ie n \{\
  1759. \h'-04'\(bu\h'+03'\c
  1760. .\}
  1761. .el \{\
  1762. .sp -1
  1763. .IP \(bu 2.3
  1764. .\}
  1765. .\" mysql-test-run.pl: timer option
  1766. .\" timer option: mysql-test-run.pl
  1767. \fB\-\-timer\fR
  1768. .sp
  1769. Cause
  1770. \fBmysqltest\fR
  1771. to generate a timing file\&. The default file is named
  1772. \&./var/log/timer\&.
  1773. .RE
  1774. .sp
  1775. .RS 4
  1776. .ie n \{\
  1777. \h'-04'\(bu\h'+03'\c
  1778. .\}
  1779. .el \{\
  1780. .sp -1
  1781. .IP \(bu 2.3
  1782. .\}
  1783. .\" mysql-test-run.pl: timestamp option
  1784. .\" timestamp option: mysql-test-run.pl
  1785. \fB\-\-timestamp\fR
  1786. .sp
  1787. Prints a timestamp before the test case name in each test report line, showing when the test ended\&.
  1788. .RE
  1789. .sp
  1790. .RS 4
  1791. .ie n \{\
  1792. \h'-04'\(bu\h'+03'\c
  1793. .\}
  1794. .el \{\
  1795. .sp -1
  1796. .IP \(bu 2.3
  1797. .\}
  1798. .\" mysql-test-run.pl: tmpdir option
  1799. .\" tmpdir option: mysql-test-run.pl
  1800. \fB\-\-tmpdir=\fR\fB\fIpath\fR\fR
  1801. .sp
  1802. The directory where temporary file are stored\&. The default location is
  1803. \&./var/tmp\&. The environment variable
  1804. MYSQL_TMP_DIR
  1805. will be set to the path for this directory, whether it has the default value or has been set explicitly\&. This may be referred to in tests\&.
  1806. .RE
  1807. .sp
  1808. .RS 4
  1809. .ie n \{\
  1810. \h'-04'\(bu\h'+03'\c
  1811. .\}
  1812. .el \{\
  1813. .sp -1
  1814. .IP \(bu 2.3
  1815. .\}
  1816. .\" mysql-test-run.pl: user option
  1817. .\" user option: mysql-test-run.pl
  1818. \fB\-\-user=\fR\fB\fIuser_name\fR\fR
  1819. .sp
  1820. The MySQL user name to use when connecting to the server\&.
  1821. .RE
  1822. .sp
  1823. .RS 4
  1824. .ie n \{\
  1825. \h'-04'\(bu\h'+03'\c
  1826. .\}
  1827. .el \{\
  1828. .sp -1
  1829. .IP \(bu 2.3
  1830. .\}
  1831. .\" mysql-test-run.pl: valgrind option
  1832. .\" valgrind option: mysql-test-run.pl
  1833. \fB\-\-valgrind\fR
  1834. .sp
  1835. Run
  1836. \fBmysqltest\fR
  1837. and
  1838. \fBmysqld\fR
  1839. with
  1840. \fBvalgrind\fR\&. Thiks and the following
  1841. \fB\-\-valgrind\fR
  1842. options require that the executables have been build with
  1843. \fBvalgrind\fR
  1844. support\&.
  1845. .RE
  1846. .sp
  1847. .RS 4
  1848. .ie n \{\
  1849. \h'-04'\(bu\h'+03'\c
  1850. .\}
  1851. .el \{\
  1852. .sp -1
  1853. .IP \(bu 2.3
  1854. .\}
  1855. .\" mysql-test-run.pl: valgrind-mysqld option
  1856. .\" valgrind-mysqld option: mysql-test-run.pl
  1857. \fB\-\-valgrind\-mysqld\fR
  1858. .sp
  1859. Run the
  1860. \fBmysqld\fR
  1861. server with
  1862. \fBvalgrind\fR\&.
  1863. .RE
  1864. .sp
  1865. .RS 4
  1866. .ie n \{\
  1867. \h'-04'\(bu\h'+03'\c
  1868. .\}
  1869. .el \{\
  1870. .sp -1
  1871. .IP \(bu 2.3
  1872. .\}
  1873. .\" mysql-test-run.pl: valgrind-mysqltest option
  1874. .\" valgrind-mysqltest option: mysql-test-run.pl
  1875. \fB\-\-valgrind\-mysqltest\fR
  1876. .sp
  1877. Run
  1878. \fBmysqltest\fR
  1879. with
  1880. \fBvalgrind\fR\&.
  1881. .RE
  1882. .sp
  1883. .RS 4
  1884. .ie n \{\
  1885. \h'-04'\(bu\h'+03'\c
  1886. .\}
  1887. .el \{\
  1888. .sp -1
  1889. .IP \(bu 2.3
  1890. .\}
  1891. .\" mysql-test-run.pl: valgrind-options option
  1892. .\" valgrind-options option: mysql-test-run.pl
  1893. \fB\-\-valgrind\-option=\fR\fB\fIstr\fR\fR
  1894. .sp
  1895. Extra options to pass to
  1896. \fBvalgrind\fR\&.
  1897. .RE
  1898. .sp
  1899. .RS 4
  1900. .ie n \{\
  1901. \h'-04'\(bu\h'+03'\c
  1902. .\}
  1903. .el \{\
  1904. .sp -1
  1905. .IP \(bu 2.3
  1906. .\}
  1907. .\" mysql-test-run.pl: valgrind-path option
  1908. .\" valgrind-path option: mysql-test-run.pl
  1909. \fB\-\-valgrind\-path=\fR\fB\fIpath\fR\fR
  1910. .sp
  1911. Specify the path name to the
  1912. \fBvalgrind\fR
  1913. executable\&.
  1914. .RE
  1915. .sp
  1916. .RS 4
  1917. .ie n \{\
  1918. \h'-04'\(bu\h'+03'\c
  1919. .\}
  1920. .el \{\
  1921. .sp -1
  1922. .IP \(bu 2.3
  1923. .\}
  1924. .\" mysql-test-run.pl: vardir option
  1925. .\" vardir option: mysql-test-run.pl
  1926. \fB\-\-vardir=\fR\fB\fIpath\fR\fR
  1927. .sp
  1928. Specify the path where files generated during the test run are stored\&. The default location is
  1929. \&./var\&. The environment variable
  1930. MYSQLTEST_VARDIR
  1931. will be set to the path for this directory, whether it has the default value or has been set explicitly\&. This may be referred to in tests\&.
  1932. .RE
  1933. .sp
  1934. .RS 4
  1935. .ie n \{\
  1936. \h'-04'\(bu\h'+03'\c
  1937. .\}
  1938. .el \{\
  1939. .sp -1
  1940. .IP \(bu 2.3
  1941. .\}
  1942. .\" mysql-test-run.pl: verbose option
  1943. .\" verbose option: mysql-test-run.pl
  1944. \fB\-\-verbose\fR
  1945. .sp
  1946. Give more verbose output regarding test execution\&. Use the option twice to get even more output\&. Note that the output generated within each test case is not affected\&.
  1947. .RE
  1948. .sp
  1949. .RS 4
  1950. .ie n \{\
  1951. \h'-04'\(bu\h'+03'\c
  1952. .\}
  1953. .el \{\
  1954. .sp -1
  1955. .IP \(bu 2.3
  1956. .\}
  1957. .\" mysql-test-run.pl: verbose-restart option
  1958. .\" verbose-restart option: mysql-test-run.pl
  1959. \fB\-\-verbose\-restart\fR
  1960. .sp
  1961. Write when and why servers are restarted between test cases\&.
  1962. .RE
  1963. .sp
  1964. .RS 4
  1965. .ie n \{\
  1966. \h'-04'\(bu\h'+03'\c
  1967. .\}
  1968. .el \{\
  1969. .sp -1
  1970. .IP \(bu 2.3
  1971. .\}
  1972. .\" mysql-test-run.pl: view-protocol option
  1973. .\" view-protocol option: mysql-test-run.pl
  1974. \fB\-\-view\-protocol\fR
  1975. .sp
  1976. Pass the
  1977. \fB\-\-view\-protocol\fR
  1978. option to
  1979. \fBmysqltest\fR\&.
  1980. .RE
  1981. .sp
  1982. .RS 4
  1983. .ie n \{\
  1984. \h'-04'\(bu\h'+03'\c
  1985. .\}
  1986. .el \{\
  1987. .sp -1
  1988. .IP \(bu 2.3
  1989. .\}
  1990. .\" mysql-test-run.pl: vs-config option
  1991. .\" vs-config option: mysql-test-run.pl
  1992. \fB\-\-vs\-config=\fR\fB\fIconfig_val\fR\fR
  1993. .sp
  1994. Specify the configuration used to build MySQL (for example,
  1995. \fB\-\-vs\-config=debug\fR
  1996. \fB\-\-vs\-config=release\fR)\&. This option is for Windows only\&.
  1997. .RE
  1998. .sp
  1999. .RS 4
  2000. .ie n \{\
  2001. \h'-04'\(bu\h'+03'\c
  2002. .\}
  2003. .el \{\
  2004. .sp -1
  2005. .IP \(bu 2.3
  2006. .\}
  2007. .\" mysql-test-run.pl: wait-all option
  2008. .\" wait-all option: mysql-test-run.pl
  2009. \fB\-\-wait\-all\fR
  2010. .sp
  2011. If
  2012. \fB\-\-start\fR
  2013. or
  2014. \fB\-\-start\-dirty\fR
  2015. is used, wait for all servers to exit before termination\&. Otherise, it will terminate if one (of several) servers is restarted\&.
  2016. .sp
  2017. This option was added in MySQL 5\&.1\&.36\&.
  2018. .RE
  2019. .sp
  2020. .RS 4
  2021. .ie n \{\
  2022. \h'-04'\(bu\h'+03'\c
  2023. .\}
  2024. .el \{\
  2025. .sp -1
  2026. .IP \(bu 2.3
  2027. .\}
  2028. .\" mysql-test-run.pl: warnings option
  2029. .\" warnings option: mysql-test-run.pl
  2030. \fB\-\-warnings\fR
  2031. .sp
  2032. Search the server log for errors or warning after each test and report any suspicious ones; if any are found, the test will be marked as failed\&. This is the default behavior, it may be turned off with
  2033. \fB\-\-nowarnings\fR\&.
  2034. .RE
  2035. .sp
  2036. .RS 4
  2037. .ie n \{\
  2038. \h'-04'\(bu\h'+03'\c
  2039. .\}
  2040. .el \{\
  2041. .sp -1
  2042. .IP \(bu 2.3
  2043. .\}
  2044. .\" mysql-test-run.pl: with-ndbcluster-only option
  2045. .\" with-ndbcluster-only option: mysql-test-run.pl
  2046. \fB\-\-with\-ndbcluster\-only\fR
  2047. .sp
  2048. Run only test cases that have
  2049. ndb
  2050. in their name\&.
  2051. .RE
  2052. .SH "COPYRIGHT"
  2053. .br
  2054. .PP
  2055. Copyright \(co 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  2056. .PP
  2057. 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.
  2058. .PP
  2059. 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.
  2060. .PP
  2061. 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/.
  2062. .sp
  2063. .SH "SEE ALSO"
  2064. For more information, please refer to the MySQL Reference Manual,
  2065. which may already be installed locally and which is also available
  2066. online at http://dev.mysql.com/doc/.
  2067. .SH AUTHOR
  2068. Sun Microsystems, Inc. (http://www.mysql.com/).