Add updated version of Redis modules 53/2253/2
authorHeinonen Arvo <arvo.heinonen@nokia.com>
Thu, 12 Dec 2019 14:22:12 +0000 (16:22 +0200)
committerHeinonen Arvo <arvo.heinonen@nokia.com>
Tue, 21 Jan 2020 08:28:19 +0000 (10:28 +0200)
commita9dd09828c123da4387067c38dedcb54fd348dff
tree295a89eb51e093dceb955208996515199ce65df5
parent68d81ba25c3129a2c869294a660e01926f5bc84c
Add updated version of Redis modules

Adapted from Nokia internal RCP code repository, revision 120a6bb from
branch 'rcp2.0'.

Changes to original:
* Unit tests and checking for unit test dependencies is now disabled
  by default.
* Unit tests can be enabled with the configure flag '--enable-unit-test'
* Remove Nget and Ndel. These will be refactored and reintroduced in
  a later commit.
* Run valgrind in UT to check for memory leaks.
* For opaque types there is not need to use real redis types in UT.
  Instead define opaque types as dummy structs in
  'tst/mock/include/redismodule.h'.
* Add instructions on running UT to redismodule/README.md.
* Remove dead code and unused includes.
* Fix compiler warnings in UT.
* Treat warnings as errors in UT.

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: I8759d1c91d0dbd8c6373b7863ea11287e2d799c2
12 files changed:
redismodule/Makefile.am
redismodule/README.md
redismodule/configure.ac
redismodule/include/redismodule.h
redismodule/run-tests.sh.in
redismodule/src/exstrings.c
redismodule/tst/mock/include/commonStub.h [new file with mode: 0644]
redismodule/tst/mock/include/exstringsStub.h
redismodule/tst/mock/include/redismodule.h
redismodule/tst/mock/src/commonStub.cpp [new file with mode: 0644]
redismodule/tst/mock/src/redismoduleStub.cpp
redismodule/tst/src/exstrings_test.cpp