valkey/tests/modules
Evan 406caa5f56 modules: Add newlen == 0 handling to RM_StringTruncate (#3717) (#3718)
Previously, passing 0 for newlen would not truncate the string at all.
This adds handling of this case, freeing the old string and creating a new empty string.

Other changes:
- Move `src/modules/testmodule.c` to `tests/modules/basics.c`
- Introduce that basic test into the test suite
- Add tests to cover StringTruncate
- Add `test-modules` build target for the main makefile
- Extend `distclean` build target to clean modules too

(cherry picked from commit 1ccf2ca2f4)
2021-07-21 21:06:49 +03:00
..
auth.c
basics.c modules: Add newlen == 0 handling to RM_StringTruncate (#3717) (#3718) 2021-07-21 21:06:49 +03:00
blockedclient.c Handle output buffer limits for Module blocked clients (#8141) 2020-12-08 16:41:20 +02:00
blockonbackground.c Removed time sensitive checks from block on background tests. Fixed uninitialized variable (#8479) 2021-02-10 08:59:07 +02:00
blockonkeys.c Fix recent test failures (#8386) 2021-01-23 21:53:58 +02:00
commandfilter.c
datatype.c Revert "Fix: server will crash if rdbload or rdbsave method is not provided in module (#8670)" (#8771) 2021-04-13 17:41:46 +03:00
defragtest.c Revert "Fix: server will crash if rdbload or rdbsave method is not provided in module (#8670)" (#8771) 2021-04-13 17:41:46 +03:00
fork.c
getkeys.c
hash.c Modules: In RM_HashSet, add COUNT_ALL flag and set errno (#8446) 2021-02-15 11:40:05 +02:00
hooks.c
infotest.c Escape unsafe field name characters in INFO. (#8492) 2021-02-15 17:08:53 +02:00
keyspace_events.c Modules: adding a module type for key space notification (#8759) 2021-04-19 21:33:26 +03:00
Makefile modules: Add newlen == 0 handling to RM_StringTruncate (#3717) (#3718) 2021-07-21 21:06:49 +03:00
misc.c
propagate.c Modules: Replicate lazy-expire even if replication is not allowed (#8816) 2021-04-19 17:16:02 +03:00
scan.c
stream.c Add modules API for streams (#8288) 2021-01-28 16:19:43 +02:00
test_lazyfree.c
testrdb.c Revert "Fix: server will crash if rdbload or rdbsave method is not provided in module (#8670)" (#8771) 2021-04-13 17:41:46 +03:00
timer.c
zset.c RM_ZsetRem: Delete key if empty (#8453) 2021-02-05 19:54:01 +02:00