Commit e38b71f5 authored by Rich Prohaska's avatar Rich Prohaska

add test-coverage target addresses #277

git-svn-id: file:///svn/tokudb@1767 c7de825b-a66e-492c-adef-691d508d4ae1
parent c8f78cfa
...@@ -10,4 +10,11 @@ build: ...@@ -10,4 +10,11 @@ build:
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k); done for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k); done
build-coverage: build-coverage:
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k -k OPTFLAGS="-O0" GCOV_FLAGS="-fprofile-arcs -ftest-coverage"); done for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k OPTFLAGS="-O0" GCOV_FLAGS="-fprofile-arcs -ftest-coverage"); done
(cd utils; make clean; make coverage OPTFLAGS="-O0" GCOV_FLAGS="-fprofile-arcs -ftest-coverage")
test-coverage:
(cd newbrt; make -k check DTOOL="")
(cd src/tests; make -k check.tdb VGRIND="")
(cd utils; make -k test-coverage)
(cd cxx/tests; make -k check VGRIND="")
...@@ -47,6 +47,8 @@ STATIC_UTILS=$(patsubst %,%_static,$(UTILS)) ...@@ -47,6 +47,8 @@ STATIC_UTILS=$(patsubst %,%_static,$(UTILS))
all: $(UTILS) $(BDB_UTILS) $(STATIC_UTILS) all: $(UTILS) $(BDB_UTILS) $(STATIC_UTILS)
coverage: $(UTILS)
%: %.c %: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDFLAGS) $(CC) $(CPPFLAGS) $(CFLAGS) -o $@ $< $(LDFLAGS)
...@@ -61,6 +63,8 @@ strip: $(STATIC_UTILS) ...@@ -61,6 +63,8 @@ strip: $(STATIC_UTILS)
test: $(UTILS) $(BDB_UTILS) $(STATIC_UTILS) test_gen test_load test_dump test_bdb_tokudb test: $(UTILS) $(BDB_UTILS) $(STATIC_UTILS) test_gen test_load test_dump test_bdb_tokudb
test-coverage: $(UTILS) test_gen test_load test_dump test_bdb_tokudb
test_gen: test_gen_hex test_gen: test_gen_hex
TEST_GEN_HEX_NUMKEYS=10000 TEST_GEN_HEX_NUMKEYS=10000
......
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