Commit c22d0c6c authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul Committed by Yoni Fogel

Linux tests should work under gcov too. refs #1921. [t:1921]

git-svn-id: file:///svn/toku/tokudb@13807 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8727303f
......@@ -13,6 +13,7 @@ OBJS = $(patsubst %.c,%.$(OEXT),$(SRCS))
TARGET = libtokuportability.$(AEXT)
build install: $(LIBPORTABILITY)
cd tests;$(MAKE) build
$(LIBPORTABILITY): $(TARGET)
if ! diff $< $@ 2>/dev/null; then cp $< $@; fi
......
......@@ -2,6 +2,9 @@
CPPFLAGS = -D_GNU_SOURCE
CPPFLAGS += -I../../toku_include -I.. -I.
CFLAGS = -Wall -Werror -g -O0 -std=c99
ifneq ($(GCOV),)
CFLAGS += -fprofile-arcs -ftest-coverage -DGCOV
endif
LDFLAGS = ../libtokuportability.a -lpthread
SRCS = $(wildcard test-*.c)
TARGETS = $(patsubst %.c,%,$(SRCS))
......@@ -29,7 +32,8 @@ all: $(TARGETS)
test-gettime: test-gettime.c
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDFLAGS) -lrt
.PHONY: check
.PHONY: check build
build: $(TARGETS)
check: $(TARGETS) $(RUNTARGETS);
%.tdbrun: %
......
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