summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-06-02 16:20:44 +0100
committerFreeArtMan <dos21h@gmail.com>2017-06-02 16:20:44 +0100
commita877a8ed7b508eb8cc5f7911dfcec8b8612470b3 (patch)
tree00b901522f01bad243cb14afc2f5ca8698ce5a37 /test/Makefile
parent65fb94f8fd98d343ae49f7d7e576418dba5a5d46 (diff)
downloadnetbytes-a877a8ed7b508eb8cc5f7911dfcec8b8612470b3.tar.gz
netbytes-a877a8ed7b508eb8cc5f7911dfcec8b8612470b3.zip
Fixed memleaks, rearranged some code
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index c4f4b28..c70c7f0 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,11 +1,15 @@
CC=gcc
-CFLAGS=-I../ -lnetbytes -Wl,-rpath=../ -L../
+CFLAGS=-g3 -I../ -lnetbytes -Wl,-rpath=../ -L../
LDFLAGS=
-SOURCE=test_save test_multiple_write test_multiple_read test_add_elem test_alltypes
+SOURCE=test_save test_multiple_write test_multiple_read test_add_elem test_alltypes \
+test_key_value_store test_key_value_load
SOURCES=$(SOURCE:=.c)
make: $(SOURCE)
+leak:
+ valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./test_key_value_store
+
clean:
rm -f $(SOURCE) \ No newline at end of file