Commit f3b347a9 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1531 make check in windows/tests and windows/ now works

git-svn-id: file:///svn/toku/tokudb@10350 c7de825b-a66e-492c-adef-691d508d4ae1
parent 97a6c4d3
......@@ -19,6 +19,9 @@ $(LIBPORTABILITY): $(TARGET)
$(TARGET): $(OBJS)
check: $(TARGET)
cd tests && $(MAKE) check
clean:
rm -rf $(TARGET) $(LIBPORTABILITY)
cd tests && $(MAKE) clean
......@@ -13,5 +13,27 @@ BINS_RAW = $(patsubst %.c,%,$(SRCS))
$(BINS): $(LIBPORTABILITY)
$(BINS): CFLAGS+=-DTESTDIR=\"dir.$<.dir\"
RUNTARGETS = $(patsubst %$(BINSUF),%.tdbrun,$(BINS))
VGRIND =
all: $(BINS)
.PHONY: check
check: $(BINS) $(RUNTARGETS);
%.tdbrun: %$(BINSUF)
mkdir -p dir.$*
ifeq ($(VGRIND),)
cd dir.$* && ../$< $(SUMMARIZE_CMD)
else
cd dir.$* && .$(VGRIND) --log-file=$<.valgrind ../$<; \
if [ $$? = 0 ] ; then \
grep "LEAK SUMMARY" dir.$*/$<.valgrind >/dev/null 2>&1; \
if [ $$? = 0 ] ; then cat dir.$*/$<.valgrind; test 0 = 1; fi \
fi \
$(SUMMARIZE_CMD)
endif
clean:
rm -rf $(TARGETS) *.valgrind dir.*
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