summaryrefslogtreecommitdiff
path: root/src/crc64.c
diff options
context:
space:
mode:
authorsundb <sundbcn@gmail.com>2021-03-10 15:13:11 +0800
committerGitHub <noreply@github.com>2021-03-10 09:13:11 +0200
commit95d6297db868fc5400fb833c6753c8d25da486c7 (patch)
treeb17d7104207ca020b35e9ffebb09cd5bfe89de37 /src/crc64.c
parent53774e69fa68450859a566e84f06d4b8a7a53eca (diff)
downloadredis-95d6297db868fc5400fb833c6753c8d25da486c7.tar.gz
Add run all test support with define REDIS_TEST (#8570)
1. Add `redis-server test all` support to run all tests. 2. Add redis test to daily ci. 3. Add `--accurate` option to run slow tests for more iterations (so that by default we run less cycles (shorter time, and less prints). 4. Move dict benchmark to REDIS_TEST. 5. fix some leaks in tests 6. make quicklist tests run on a specific fill set of options rather than huge ranges 7. move some prints in quicklist test outside their loops to reduce prints 8. removing sds.h from dict.c since it is now used in both redis-server and redis-cli (uses hiredis sds)
Diffstat (limited to 'src/crc64.c')
-rw-r--r--src/crc64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crc64.c b/src/crc64.c
index 6c9432c4a..d4db4158e 100644
--- a/src/crc64.c
+++ b/src/crc64.c
@@ -127,9 +127,10 @@ uint64_t crc64(uint64_t crc, const unsigned char *s, uint64_t l) {
#include <stdio.h>
#define UNUSED(x) (void)(x)
-int crc64Test(int argc, char *argv[]) {
+int crc64Test(int argc, char *argv[], int accurate) {
UNUSED(argc);
UNUSED(argv);
+ UNUSED(accurate);
crc64_init();
printf("[calcula]: e9c6d914c4b8d9ca == %016" PRIx64 "\n",
(uint64_t)_crc64(0, "123456789", 9));