Files
sysbench/tests/t/drivers.t
Alexey Kopytov 2cda228c7e Command line options refactoring:
- add support for 'validator' functions
- add support to define command line options after test
initialization. It is a prerequisite for option definitions in Lua
scripts
- various code cleanups
2017-01-25 19:09:44 +03:00

22 lines
806 B
Perl

########################################################################
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]