mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
Linux tests should work under gcov too. refs #1921. [t:1921]
git-svn-id: file:///svn/toku/tokudb@13807 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
b75dac6a09
commit
471d990694
2 changed files with 6 additions and 1 deletions
|
@ -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: %
|
||||
|
|
Loading…
Add table
Reference in a new issue