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
#!/bin/sh cd tests retval=0 for t in mtest* do mkdir testdb ./$t > /dev/null && ./mdb_stat testdb > /dev/null if [ $? -ne 0 ]; then echo "FAIL: $t" retval=$(( ${retval} + 1)) else echo "PASS: $t" fi rm -rf testdb done if [ $retval -eq 0 ] ; then echo "PASS: lmdb" else echo "FAIL: lmdb" fi exit $retval