From 5024d7257219e8b1a35211691a4eba72f36539b3 Mon Sep 17 00:00:00 2001 From: amayank Date: Thu, 21 Feb 2013 17:10:33 -0800 Subject: [PATCH] Adding a rule in the Makefile to run valgrind on the rocksdb tests Summary: Added automated valgrind testing for rocksdb by adding valgrind_check in the Makefile Test Plan: make clean; make all check Reviewers: dhruba, sheki, MarkCallaghan, zshao Reviewed By: sheki CC: leveldb Differential Revision: https://reviews.facebook.net/D8787 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 3ef5025fa..f37881750 100644 --- a/Makefile +++ b/Makefile @@ -113,6 +113,9 @@ check: all $(PROGRAMS) $(TESTS) $(TOOLS) ldb_tests ldb_tests: all $(PROGRAMS) $(TOOLS) python tools/ldb_test.py +valgrind_check: all $(PROGRAMS) $(TESTS) + for t in $(TESTS); do valgrind ./$$t || exit 1; done + clean: -rm -f $(PROGRAMS) $(BENCHMARKS) $(LIBRARY) $(SHARED) $(MEMENVLIBRARY) $(THRIFTSERVER) */*.o */*/*.o ios-x86/*/*.o ios-arm/*/*.o build_config.mk -rm -rf ios-x86/* ios-arm/*