File: test_libdbi.sh

package info (click to toggle)
libdbi-drivers 0.9.0-13
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,160 kB
  • sloc: ansic: 19,030; sh: 10,963; xml: 2,759; makefile: 584
file content (27 lines) | stat: -rwxr-xr-x 533 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# This script calls test_dbi_dlopen which simulates using drivers from 
# a plugin that is dlopened.

homedir=`dirname $0`

set -e

rm -rf .plugins
mkdir .plugins

olddir=`pwd`
cd ..  
rootdir=`pwd`
for f in `find drivers -name 'libdbd*.so'` ; do
  ln -vs $rootdir/$f $olddir/.plugins
done
cd $olddir

. $homedir/plugin_settings.sh

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${LIBDBI_LIBDIR}

$homedir/test_dbi_dlopen G .plugins
$homedir/test_dbi_dlopen N .plugins || echo Failure is ok.

rm -rf .plugins