diff options
Diffstat (limited to 'meta-openembedded/meta-oe/recipes-dbs/lmdb/files/run-ptest')
-rw-r--r-- | meta-openembedded/meta-oe/recipes-dbs/lmdb/files/run-ptest | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-openembedded/meta-oe/recipes-dbs/lmdb/files/run-ptest b/meta-openembedded/meta-oe/recipes-dbs/lmdb/files/run-ptest new file mode 100644 index 0000000000..a6a7549b9e --- /dev/null +++ b/meta-openembedded/meta-oe/recipes-dbs/lmdb/files/run-ptest @@ -0,0 +1,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
\ No newline at end of file |