File: run_tests_cygwin.sh

package info (click to toggle)
cppdb 0.3.1+dfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 668 kB
  • sloc: cpp: 7,373; sh: 133; ansic: 72; makefile: 7
file content (44 lines) | stat: -rwxr-xr-x 1,004 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash


# This is not supported by freetds driver
#	'odbc:DSN=MSSQL;UID=root;PWD=rootroot;@engine=mssql' \
#	'odbc:DSN=MSSQL;UID=root;PWD=rootroot;@engine=mssql;@utf=wide' \

rm Fail.txt

for CS in \
	'sqlite3:db=test.db' \

do
	for OP in '' ';@use_prepared=off' ';@pool_size=8' ';@use_prepared=off;@pool_size=8'
	do
		echo $CS$OP
		if ! ./test_backend "$CS$OP" &> rep.txt
		then
			echo " ------------------ FAIL test_backend ------"
			cat rep.txt >> Fail.txt
			echo " -------------------------------------------"
		else
			echo " test_backend - OK"
		fi
		if ! ./test_basic "$CS$OP" &> rep.txt
		then
			echo " ------------------ FAIL test_basic   ------"
			cat rep.txt >> Fail.txt
			echo " -------------------------------------------"
		else
			echo " test_basic - OK"
		fi
	done
done

if ! ./test_caching &> rep.txt
then
	echo " ------------------ FAIL test_caching   ------"
	cat rep.txt >> Fail.txt
	echo " -------------------------------------------"
else
	echo " test_caching - OK"
fi