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
|