1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
########################################################################
Make sure all available DB drivers are covered
########################################################################
$ drivers=$(sysbench --help | sed -n '/Compiled-in database drivers:/,/^$/p' | tail -n +2 | cut -d ' ' -f 3)
$ for drv in $drivers
> do
> if [ ! -r ${SBTEST_SUITEDIR}/drv_${drv}.t ]
> then
> echo "Cannot find test(s) for the $drv driver!"
> exit 1
> fi
> done
# Try using a non-existing driver
$ sysbench --db-driver=nonexisting ${SBTEST_SCRIPTDIR}/oltp_read_write.lua cleanup
sysbench * (glob)
(FATAL: invalid database driver name: 'nonexisting'|FATAL: No DB drivers available) (re)
FATAL: `cleanup' function failed: * failed to initialize the DB driver (glob)
[1]
|