aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2017-03-25 15:26:40 +0100
committerRobin Krahl <me@robin-krahl.de>2017-03-25 15:26:40 +0100
commit760b3fee15e64622e47442eb93608e5eb138ff10 (patch)
tree8fcbd9b96cdb6ed7a577562127cd7cedf62d0a10
parenteef18d10b4edb26713f683f4b5cd5b0770e9e875 (diff)
downloadsqlitepp-760b3fee15e64622e47442eb93608e5eb138ff10.tar.gz
sqlitepp-760b3fee15e64622e47442eb93608e5eb138ff10.tar.bz2
Makefile: Add a memcheck target
Add a memcheck target to the Makefile that calls the valgrind memcheck tool on the test binary.
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5c534ee..0c0c3e6 100644
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ else
QUIET := @
endif
-.PHONY = all clean doc test
+.PHONY = all clean doc memcheck test
all: $(TARGETS)
@@ -53,6 +53,9 @@ clean:
doc: $(INCLUDES)
doxygen
+memcheck: $(TARGET_TEST)
+ LD_LIBRARY_PATH=$(LIBRARY_DIR) valgrind --tool=memcheck ./$(TARGET_TEST)
+
test: $(TARGET_TEST)
LD_LIBRARY_PATH=$(LIBRARY_DIR) ./$(TARGET_TEST)