| 1 |
# |
| 2 |
# This is a wrapper "pseudo" test for mtr --stress execution. |
| 3 |
# It should not be run directly (will be skipped) |
| 4 |
# Do not create a result file! |
| 5 |
# |
| 6 |
|
| 7 |
if (!$MST_OPTIONS) { |
| 8 |
skip Only to be run with mtr --stress; |
| 9 |
} |
| 10 |
|
| 11 |
# echo Running MST with options $MST_OPTIONS; |
| 12 |
|
| 13 |
perl; |
| 14 |
my ($mtest)= split " ", $ENV{MYSQL_TEST}; |
| 15 |
open(FILE, ">", "$ENV{MYSQL_TMP_DIR}/mtest.inc") or die; |
| 16 |
print FILE "let \$MYSQLTEST_BIN= $mtest;\n"; |
| 17 |
close FILE; |
| 18 |
EOF |
| 19 |
|
| 20 |
--source $MYSQL_TMP_DIR/mtest.inc |
| 21 |
--remove_file $MYSQL_TMP_DIR/mtest.inc |
| 22 |
|
| 23 |
exec perl mariadb-stress-test.pl --mysqltest=$MYSQLTEST_BIN |
| 24 |
--server-port=$MASTER_MYPORT --server-socket=$MASTER_MYSOCK |
| 25 |
--server-user=root --cleanup |
| 26 |
--server-logs-dir=$MYSQLTEST_VARDIR/log |
| 27 |
--stress-basedir=$MYSQLTEST_VARDIR |
| 28 |
$MST_OPTIONS |
| 29 |
; |