File: dropintest

package info (click to toggle)
sqlrelay 1%3A0.37.1-3.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 13,084 kB
  • ctags: 6,691
  • sloc: cpp: 48,136; python: 10,118; ansic: 9,673; java: 9,195; php: 8,839; perl: 8,827; sh: 8,554; ruby: 8,516; tcl: 5,039; makefile: 3,665
file content (28 lines) | stat: -rwxr-xr-x 616 bytes parent folder | download | duplicates (3)
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
28
#!/bin/sh

if ( test -z "$1" )
then
	echo "usage: dropintest [mysql|postgresql]"
	exit
fi

if ( test "$1" = "mysql" )
then
	./mysql localhost 0 "/var/lib/mysql/mysql.sock" testuser testpassword
	echo
	echo
	echo
	export LD_PRELOAD=/usr/local/firstworks/lib/libmysql3sqlrelay-0.35.so.1.0.0
	./mysql localhost 8006 "" mysqltest mysqltest
fi


if ( test "$1" = "postgresql" )
then
	./postgresql localhost "" testuser testpassword testdb
	echo
	echo
	echo
	export LD_PRELOAD=/usr/local/firstworks/lib/libpqsqlrelay-0.35.so.1.0.0
	./postgresql localhost /tmp/postgresqltest.socket postgresqltest postgresqltest testdb
fi