| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | run_testscip-shell shell cppdb 0.3.1+dfsg-10 run_test().() |
| 4 | { |
| 5 | if $1 "$2" &>report.txt |
| 6 | then |
| 7 | echoscip-shell system . . echo. "Passed: $1 $2" |
| 8 | else |
| 9 | echoscip-shell system . . echo. "Failed: $1 $2" |
| 10 | catscip-shell system . . cat. report.txt >>fail.txt |
| 11 | fi |
| 12 | catscip-shell system . . cat. report.txt >>all.txt |
| 13 | } |
| 14 | |
| 15 | |
| 16 | rmscip-shell system . . rm. -f all.txt fail.txt |
| 17 | |
| 18 | for STR in \ |
| 19 | 'sqlite3:db=test.db' \ |
| 20 | 'odbc:Driver=SQL Server Native Client 10.0;Databse=test;Server=localhost;UID=root;PWD=rootroot;@engine=mssql' \ |
| 21 | 'odbc:Driver=SQL Server Native Client 10.0;Databse=test;Server=localhost;UID=root;PWD=rootroot;@engine=mssql;@utf=wide' \ |
| 22 | |
| 23 | do |
| 24 | for SUFFIX in '' ';@use_prepared=off' ';@pool_size=5' ';@use_prepared=off;@pool_size=5' |
| 25 | do |
| 26 | run_testscip-shell shell cppdb 0.3.1+dfsg-10 run_test(). ./test_backend "$STR$SUFFIX" |
| 27 | run_testscip-shell shell cppdb 0.3.1+dfsg-10 run_test(). ./test_basic "$STR$SUFFIX" |
| 28 | done |
| 29 | done |
| 30 | |
| 31 | run_testscip-shell shell cppdb 0.3.1+dfsg-10 run_test(). ./test_caching |
| 32 | |
| 33 |