3 for prog in dbd testall; do \
4 if test "$prog" = 'dbd'; then \
5 for driver in none pgsql mysql sqlite3; do \
6 if test "$driver" != 'none'; then \
7 LD_LIBRARY_PATH="`echo "../crypto/.libs:../dbm/.libs:../dbd/.libs:../ldap/.libs:$LD_LIBRARY_PATH" | sed -e 's/::*$//'`" \
10 if test $status != 0; then \
12 progfailed="$progfailed '$prog $driver'"; \
17 LD_LIBRARY_PATH="`echo "../crypto/.libs:../dbm/.libs:../dbd/.libs:../ldap/.libs:$LD_LIBRARY_PATH" | sed -e 's/::*$//'`" \
20 if test $status != 0; then \
22 progfailed="$progfailed $prog"; \
26 if test $teststatus != 0; then \
27 echo "Programs failed:$progfailed"; \
30 Loaded pgsql driver OK.
31 Failed to open pgsql[]
32 Failed to load driver file apr_dbd_mysql.so
33 Loaded sqlite3 driver OK.
35 ======== create table ========
36 create table test successful
38 ======== insert rows ========
39 insert rows test successful
41 ======== invalid op ========
42 invalid op returned 1 (should be nonzero). Error msg follows
43 'no such table: apr_dbd_test1'
44 valid op returned 0 (should be zero; error shouldn't affect subsequent ops)
45 invalid op test successful
47 ======== select random ========
48 ROW 5: wibble nothing 5
50 select random test successful
52 ======== select sequential ========
55 ROW 3: foo (null) (null)
57 ROW 5: wibble nothing 5
59 select sequential test successful
61 ======== transactions ========
64 Valid insert returned 1. Should be nonzero (fail) because transaction is bad
65 Transaction ended (should be rollback) - viewing table
66 A column of "failed" indicates transaction failed (no rollback)
69 ROW 3: foo (null) (null)
71 ROW 5: wibble nothing 5
75 Valid insert returned 0. Should be zero (OK)
76 Transaction ended (should be commit) - viewing table
78 ROW 2: asdfgh success 1
79 ROW 3: bar success (null)
80 ROW 4: foo success (null)
81 ROW 5: qwerty success 0
82 ROW 6: wibble success 5
83 ROW 7: wibble success 5
84 transactions test successful
86 ======== prepared select ========
87 Selecting rows where col3 <= 3 and bar row where it's unset.
88 Should show four rows.
89 ROW 1: qwerty success 0
90 ROW 2: asdfgh success 1
91 ROW 3: bar success (null)
93 prepared select test successful
95 ======== prepared query ========
96 Showing table (should now contain row "prepared insert 2")
98 ROW 2: asdfgh success 1
99 ROW 3: bar success (null)
100 ROW 4: foo success (null)
101 ROW 5: prepared insert 2
102 ROW 6: qwerty success 0
103 ROW 7: wibble success 5
104 ROW 8: wibble success 5
105 prepared query test successful
107 ======== drop table ========
108 drop table test successful
110 teststrmatch : SUCCESS
113 testbuckets : SUCCESS
121 testmemcache : SUCCESS
128 testreslist : SUCCESS
129 testsiphash : SUCCESS
131 make[2]: Leaving directory '$(@D)/test'