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