Files
sysbench/tests/include/drv_common.sh
Alexey Kopytov 7f56e219f7 Rename --num-threads to --threads.
Accept the old name with a warning for compatibility.
2017-02-01 17:42:39 +03:00

22 lines
476 B
Bash

#!/usr/bin/env bash
#
#########################################################################
# Common code for DB driver tests
# Variables:
# DB_DRIVER_ARGS -- extra driver-specific arguments to pass to sysbench
#########################################################################
set -eu
cat >test.lua <<EOF
function event()
db_query("SELECT 1")
end
EOF
sysbench test.lua \
--events=10 \
--threads=2 \
$DB_DRIVER_ARGS \
run