Commit e6c3f8eb authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

refs #6184 run handlerton unit tests with valgrind

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@54494 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1e81e340
......@@ -4,7 +4,9 @@ CHECKS = $(patsubst %,%.check,$(TARGETS))
CPPFLAGS = -I..
CXXFLAGS = -g -fno-implicit-templates
FRACTALTREE_DIR = ../../../../tokudb/release
FRACTALTREE_BASE_DIR = ../../../../tokudb
FRACTALTREE_DIR = $(FRACTALTREE_BASE_DIR)/release
VALGRIND = valgrind -q --leak-check=full --show-reachable=yes --suppressions=$(FRACTALTREE_BASE_DIR)/build.debug/valgrind.suppressions
ifeq ($(GCOV),1)
CXXFLAGS += -fprofile-arcs -ftest-coverage
......@@ -18,11 +20,14 @@ clean:
check: $(CHECKS)
true
%.check: %
valgrind -q ./$<
%.check: %
LD_LIBRARY_PATH=$(FRACTALTREE_DIR)/lib $(VALGRIND) ./$<
max_test.check: max_test
valgrind -q ./$< 1 2
$(VALGRIND) ./$< 1 2
db_libtest: db_libtest.cc
$(CXX) -g -o $@ $< -I.. -I$(FRACTALTREE_DIR)/include -L$(FRACTALTREE_DIR)/lib -ltokudb -ltokuportability
card_test: card_test.cc
$(CXX) -g -o $@ $< -I.. -I$(FRACTALTREE_DIR)/include -L$(FRACTALTREE_DIR)/lib -ltokudb -ltokuportability
......
#include <stdio.h>
#include <db.h>
int main(int argc, char *argv[]) {
return 0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment