File: drivers.t

package info (click to toggle)
sysbench 1.0.20%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,840 kB
  • sloc: ansic: 11,830; sh: 1,752; xml: 736; makefile: 195
file content (21 lines) | stat: -rw-r--r-- 806 bytes parent folder | download | duplicates (4)
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]