lmdb: run all test with mdb_chk by 'make test'.

Change-Id: If1b742505f23de807b99a5068b5c38421f7ed197
This commit is contained in:
Leo Yuriev 2015-05-08 23:58:13 +03:00
parent bd05dd24ab
commit 7919a0f124

View File

@ -43,11 +43,16 @@ install: $(ILIBS) $(IPROGS) $(IHDRS)
for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done
clean: clean:
rm -rf $(PROGS) *.[ao] *.[ls]o *~ testdb rm -rf $(PROGS) *.[ao] *.[ls]o *~ testdb/*
test: all test: all
rm -rf testdb && mkdir testdb \ [ -d testdb ] || mkdir testdb && rm -f testdb/* \
&& ./mtest && ./mdb_stat testdb && echo "*** LMDB-TEST-1" && ./mtest && ./mdb_chk testdb \
&& echo "*** LMDB-TEST-2" && ./mtest2 && ./mdb_chk testdb \
&& echo "*** LMDB-TEST-3" && ./mtest3 && ./mdb_chk testdb \
&& echo "*** LMDB-TEST-4" && ./mtest4 && ./mdb_chk testdb \
&& echo "*** LMDB-TEST-5" && ./mtest5 && ./mdb_chk testdb \
&& echo "*** LMDB-TESTs - all done"
liblmdb.a: mdb.o midl.o liblmdb.a: mdb.o midl.o
$(AR) rs $@ mdb.o midl.o $(AR) rs $@ mdb.o midl.o