File: mysql_common.sh

package info (click to toggle)
sysbench 1.0.20%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,828 kB
  • sloc: ansic: 11,830; sh: 1,752; xml: 736; makefile: 192
file content (15 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
########################################################################
# Common code for MySQL-specific tests
########################################################################
set -eu

if [ -z "${SBTEST_MYSQL_ARGS:-}" ]
then
  exit 80
fi

function db_show_table() {
  mysql -uroot sbtest -Nse "SHOW CREATE TABLE $1\G"
}

DB_DRIVER_ARGS="--db-driver=mysql $SBTEST_MYSQL_ARGS"