8 echo "** onak binary doesn't exist, cannot run test suite" >&2
16 for t in libkeydb_*.so; do
17 backend=${t##libkeydb_}
18 backend=${backend%%.so}
19 if [ "`echo t/$backend-*`" != "t/$backend-*" ]; then
20 echo "* testing $backend backend [conf]"
21 (sed -e "s;DIR;`pwd`;" t/test-in.conf ; \
22 echo db_backend $backend) > t/test.conf
23 for t in t/$backend-*.t t/all-*.t; do
24 total=`expr $total + 1`
26 if ! $t test.conf $backend; then
27 echo "test $t failed" >&2
35 if [ "`echo t/$backend-*`" != "t/$backend-*" ]; then
36 echo "* testing $backend backend [ini]"
37 sed -e "s;DIR;`pwd`;" -e "s;DB;${backend};" t/test-in.ini \
39 for t in t/$backend-*.t t/all-*.t; do
40 total=`expr $total + 1`
42 if ! $t test.ini $backend; then
43 echo "test $t failed" >&2
52 if [ "$fail" -gt 0 ]; then
53 echo "** failed $fail/$total tests" >&2
56 echo "** all tests succeeded"