summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-12-10 09:50:27 +0100
committerantirez <antirez@gmail.com>2014-12-10 09:50:27 +0100
commit0195afae39b590cfe30778f6685731f9bb663775 (patch)
treec0ea836c0d1c664390a7bb34046eac2fc6358e1e /src/Makefile
parent9bb4ef871e0abc4d6e3df338be8a83e77f685453 (diff)
downloadredis-0195afae39b590cfe30778f6685731f9bb663775.tar.gz
test-sds target in Makefile to run sds.c tests.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 96af74afa..57b8dbb85 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -221,6 +221,10 @@ lcov:
@geninfo -o redis.info .
@genhtml --legend -o lcov-html redis.info
+test-sds: sds.c sds.h
+ $(REDIS_CC) sds.c zmalloc.c -DSDS_TEST_MAIN -o /tmp/sds_test
+ /tmp/sds_test
+
.PHONY: lcov
bench: $(REDIS_BENCHMARK_NAME)