@@ -105,6 +105,7 @@ int test_postWriteToReplica(int argc, char **argv, int flags);
105105int test_backupAndUpdateClientArgv (int argc , char * * argv , int flags );
106106int test_rewriteClientCommandArgument (int argc , char * * argv , int flags );
107107int test_object_with_key (int argc , char * * argv , int flags );
108+ int test_popcount (int argc , char * * argv , int flags );
108109int test_quicklistCreateList (int argc , char * * argv , int flags );
109110int test_quicklistAddToTailOfEmptyList (int argc , char * * argv , int flags );
110111int test_quicklistAddToHeadOfEmptyList (int argc , char * * argv , int flags );
@@ -240,6 +241,7 @@ unitTest __test_kvstore_c[] = {{"test_kvstoreAdd16Keys", test_kvstoreAdd16Keys},
240241unitTest __test_listpack_c [] = {{"test_listpackCreateIntList" , test_listpackCreateIntList }, {"test_listpackCreateList" , test_listpackCreateList }, {"test_listpackLpPrepend" , test_listpackLpPrepend }, {"test_listpackLpPrependInteger" , test_listpackLpPrependInteger }, {"test_listpackGetELementAtIndex" , test_listpackGetELementAtIndex }, {"test_listpackPop" , test_listpackPop }, {"test_listpackGetELementAtIndex2" , test_listpackGetELementAtIndex2 }, {"test_listpackIterate0toEnd" , test_listpackIterate0toEnd }, {"test_listpackIterate1toEnd" , test_listpackIterate1toEnd }, {"test_listpackIterate2toEnd" , test_listpackIterate2toEnd }, {"test_listpackIterateBackToFront" , test_listpackIterateBackToFront }, {"test_listpackIterateBackToFrontWithDelete" , test_listpackIterateBackToFrontWithDelete }, {"test_listpackDeleteWhenNumIsMinusOne" , test_listpackDeleteWhenNumIsMinusOne }, {"test_listpackDeleteWithNegativeIndex" , test_listpackDeleteWithNegativeIndex }, {"test_listpackDeleteInclusiveRange0_0" , test_listpackDeleteInclusiveRange0_0 }, {"test_listpackDeleteInclusiveRange0_1" , test_listpackDeleteInclusiveRange0_1 }, {"test_listpackDeleteInclusiveRange1_2" , test_listpackDeleteInclusiveRange1_2 }, {"test_listpackDeleteWitStartIndexOutOfRange" , test_listpackDeleteWitStartIndexOutOfRange }, {"test_listpackDeleteWitNumOverflow" , test_listpackDeleteWitNumOverflow }, {"test_listpackBatchDelete" , test_listpackBatchDelete }, {"test_listpackDeleteFooWhileIterating" , test_listpackDeleteFooWhileIterating }, {"test_listpackReplaceWithSameSize" , test_listpackReplaceWithSameSize }, {"test_listpackReplaceWithDifferentSize" , test_listpackReplaceWithDifferentSize }, {"test_listpackRegressionGt255Bytes" , test_listpackRegressionGt255Bytes }, {"test_listpackCreateLongListAndCheckIndices" , test_listpackCreateLongListAndCheckIndices }, {"test_listpackCompareStrsWithLpEntries" , test_listpackCompareStrsWithLpEntries }, {"test_listpackLpMergeEmptyLps" , test_listpackLpMergeEmptyLps }, {"test_listpackLpMergeLp1Larger" , test_listpackLpMergeLp1Larger }, {"test_listpackLpMergeLp2Larger" , test_listpackLpMergeLp2Larger }, {"test_listpackLpNextRandom" , test_listpackLpNextRandom }, {"test_listpackLpNextRandomCC" , test_listpackLpNextRandomCC }, {"test_listpackRandomPairWithOneElement" , test_listpackRandomPairWithOneElement }, {"test_listpackRandomPairWithManyElements" , test_listpackRandomPairWithManyElements }, {"test_listpackRandomPairsWithOneElement" , test_listpackRandomPairsWithOneElement }, {"test_listpackRandomPairsWithManyElements" , test_listpackRandomPairsWithManyElements }, {"test_listpackRandomPairsUniqueWithOneElement" , test_listpackRandomPairsUniqueWithOneElement }, {"test_listpackRandomPairsUniqueWithManyElements" , test_listpackRandomPairsUniqueWithManyElements }, {"test_listpackPushVariousEncodings" , test_listpackPushVariousEncodings }, {"test_listpackLpFind" , test_listpackLpFind }, {"test_listpackLpValidateIntegrity" , test_listpackLpValidateIntegrity }, {"test_listpackNumberOfElementsExceedsLP_HDR_NUMELE_UNKNOWN" , test_listpackNumberOfElementsExceedsLP_HDR_NUMELE_UNKNOWN }, {"test_listpackStressWithRandom" , test_listpackStressWithRandom }, {"test_listpackSTressWithVariableSize" , test_listpackSTressWithVariableSize }, {"test_listpackBenchmarkInit" , test_listpackBenchmarkInit }, {"test_listpackBenchmarkLpAppend" , test_listpackBenchmarkLpAppend }, {"test_listpackBenchmarkLpFindString" , test_listpackBenchmarkLpFindString }, {"test_listpackBenchmarkLpFindNumber" , test_listpackBenchmarkLpFindNumber }, {"test_listpackBenchmarkLpSeek" , test_listpackBenchmarkLpSeek }, {"test_listpackBenchmarkLpValidateIntegrity" , test_listpackBenchmarkLpValidateIntegrity }, {"test_listpackBenchmarkLpCompareWithString" , test_listpackBenchmarkLpCompareWithString }, {"test_listpackBenchmarkLpCompareWithNumber" , test_listpackBenchmarkLpCompareWithNumber }, {"test_listpackBenchmarkFree" , test_listpackBenchmarkFree }, {NULL , NULL }};
241242unitTest __test_networking_c [] = {{"test_writeToReplica" , test_writeToReplica }, {"test_postWriteToReplica" , test_postWriteToReplica }, {"test_backupAndUpdateClientArgv" , test_backupAndUpdateClientArgv }, {"test_rewriteClientCommandArgument" , test_rewriteClientCommandArgument }, {NULL , NULL }};
242243unitTest __test_object_c [] = {{"test_object_with_key" , test_object_with_key }, {NULL , NULL }};
244+ unitTest __test_popcount_c [] = {{"test_popcount" , test_popcount }, {NULL , NULL }};
243245unitTest __test_quicklist_c [] = {{"test_quicklistCreateList" , test_quicklistCreateList }, {"test_quicklistAddToTailOfEmptyList" , test_quicklistAddToTailOfEmptyList }, {"test_quicklistAddToHeadOfEmptyList" , test_quicklistAddToHeadOfEmptyList }, {"test_quicklistAddToTail5xAtCompress" , test_quicklistAddToTail5xAtCompress }, {"test_quicklistAddToHead5xAtCompress" , test_quicklistAddToHead5xAtCompress }, {"test_quicklistAddToTail500xAtCompress" , test_quicklistAddToTail500xAtCompress }, {"test_quicklistAddToHead500xAtCompress" , test_quicklistAddToHead500xAtCompress }, {"test_quicklistRotateEmpty" , test_quicklistRotateEmpty }, {"test_quicklistComprassionPlainNode" , test_quicklistComprassionPlainNode }, {"test_quicklistNextPlainNode" , test_quicklistNextPlainNode }, {"test_quicklistRotatePlainNode" , test_quicklistRotatePlainNode }, {"test_quicklistRotateOneValOnce" , test_quicklistRotateOneValOnce }, {"test_quicklistRotate500Val5000TimesAtCompress" , test_quicklistRotate500Val5000TimesAtCompress }, {"test_quicklistPopEmpty" , test_quicklistPopEmpty }, {"test_quicklistPop1StringFrom1" , test_quicklistPop1StringFrom1 }, {"test_quicklistPopHead1NumberFrom1" , test_quicklistPopHead1NumberFrom1 }, {"test_quicklistPopHead500From500" , test_quicklistPopHead500From500 }, {"test_quicklistPopHead5000From500" , test_quicklistPopHead5000From500 }, {"test_quicklistIterateForwardOver500List" , test_quicklistIterateForwardOver500List }, {"test_quicklistIterateReverseOver500List" , test_quicklistIterateReverseOver500List }, {"test_quicklistInsertAfter1Element" , test_quicklistInsertAfter1Element }, {"test_quicklistInsertBefore1Element" , test_quicklistInsertBefore1Element }, {"test_quicklistInsertHeadWhileHeadNodeIsFull" , test_quicklistInsertHeadWhileHeadNodeIsFull }, {"test_quicklistInsertTailWhileTailNodeIsFull" , test_quicklistInsertTailWhileTailNodeIsFull }, {"test_quicklistInsertOnceInElementsWhileIteratingAtCompress" , test_quicklistInsertOnceInElementsWhileIteratingAtCompress }, {"test_quicklistInsertBefore250NewInMiddleOf500ElementsAtCompress" , test_quicklistInsertBefore250NewInMiddleOf500ElementsAtCompress }, {"test_quicklistInsertAfter250NewInMiddleOf500ElementsAtCompress" , test_quicklistInsertAfter250NewInMiddleOf500ElementsAtCompress }, {"test_quicklistDuplicateEmptyList" , test_quicklistDuplicateEmptyList }, {"test_quicklistDuplicateListOf1Element" , test_quicklistDuplicateListOf1Element }, {"test_quicklistDuplicateListOf500" , test_quicklistDuplicateListOf500 }, {"test_quicklistIndex1200From500ListAtFill" , test_quicklistIndex1200From500ListAtFill }, {"test_quicklistIndex12From500ListAtFill" , test_quicklistIndex12From500ListAtFill }, {"test_quicklistIndex100From500ListAtFill" , test_quicklistIndex100From500ListAtFill }, {"test_quicklistIndexTooBig1From50ListAtFill" , test_quicklistIndexTooBig1From50ListAtFill }, {"test_quicklistDeleteRangeEmptyList" , test_quicklistDeleteRangeEmptyList }, {"test_quicklistDeleteRangeOfEntireNodeInListOfOneNode" , test_quicklistDeleteRangeOfEntireNodeInListOfOneNode }, {"test_quicklistDeleteRangeOfEntireNodeWithOverflowCounts" , test_quicklistDeleteRangeOfEntireNodeWithOverflowCounts }, {"test_quicklistDeleteMiddle100Of500List" , test_quicklistDeleteMiddle100Of500List }, {"test_quicklistDeleteLessThanFillButAcrossNodes" , test_quicklistDeleteLessThanFillButAcrossNodes }, {"test_quicklistDeleteNegative1From500List" , test_quicklistDeleteNegative1From500List }, {"test_quicklistDeleteNegative1From500ListWithOverflowCounts" , test_quicklistDeleteNegative1From500ListWithOverflowCounts }, {"test_quicklistDeleteNegative100From500List" , test_quicklistDeleteNegative100From500List }, {"test_quicklistDelete10Count5From50List" , test_quicklistDelete10Count5From50List }, {"test_quicklistNumbersOnlyListRead" , test_quicklistNumbersOnlyListRead }, {"test_quicklistNumbersLargerListRead" , test_quicklistNumbersLargerListRead }, {"test_quicklistNumbersLargerListReadB" , test_quicklistNumbersLargerListReadB }, {"test_quicklistLremTestAtCompress" , test_quicklistLremTestAtCompress }, {"test_quicklistIterateReverseDeleteAtCompress" , test_quicklistIterateReverseDeleteAtCompress }, {"test_quicklistIteratorAtIndexTestAtCompress" , test_quicklistIteratorAtIndexTestAtCompress }, {"test_quicklistLtrimTestAAtCompress" , test_quicklistLtrimTestAAtCompress }, {"test_quicklistLtrimTestBAtCompress" , test_quicklistLtrimTestBAtCompress }, {"test_quicklistLtrimTestCAtCompress" , test_quicklistLtrimTestCAtCompress }, {"test_quicklistLtrimTestDAtCompress" , test_quicklistLtrimTestDAtCompress }, {"test_quicklistVerifySpecificCompressionOfInteriorNodes" , test_quicklistVerifySpecificCompressionOfInteriorNodes }, {"test_quicklistBookmarkGetUpdatedToNextItem" , test_quicklistBookmarkGetUpdatedToNextItem }, {"test_quicklistBookmarkLimit" , test_quicklistBookmarkLimit }, {"test_quicklistCompressAndDecompressQuicklistListpackNode" , test_quicklistCompressAndDecompressQuicklistListpackNode }, {"test_quicklistCompressAndDecomressQuicklistPlainNodeLargeThanUINT32MAX" , test_quicklistCompressAndDecomressQuicklistPlainNodeLargeThanUINT32MAX }, {NULL , NULL }};
244246unitTest __test_rax_c [] = {{"test_raxRandomWalk" , test_raxRandomWalk }, {"test_raxIteratorUnitTests" , test_raxIteratorUnitTests }, {"test_raxTryInsertUnitTests" , test_raxTryInsertUnitTests }, {"test_raxRegressionTest1" , test_raxRegressionTest1 }, {"test_raxRegressionTest2" , test_raxRegressionTest2 }, {"test_raxRegressionTest3" , test_raxRegressionTest3 }, {"test_raxRegressionTest4" , test_raxRegressionTest4 }, {"test_raxRegressionTest5" , test_raxRegressionTest5 }, {"test_raxRegressionTest6" , test_raxRegressionTest6 }, {"test_raxBenchmark" , test_raxBenchmark }, {"test_raxHugeKey" , test_raxHugeKey }, {"test_raxFuzz" , test_raxFuzz }, {NULL , NULL }};
245247unitTest __test_sds_c [] = {{"test_sds" , test_sds }, {"test_typesAndAllocSize" , test_typesAndAllocSize }, {"test_sdsHeaderSizes" , test_sdsHeaderSizes }, {"test_sdssplitargs" , test_sdssplitargs }, {NULL , NULL }};
@@ -264,6 +266,7 @@ struct unitTestSuite {
264266 {"test_listpack.c" , __test_listpack_c },
265267 {"test_networking.c" , __test_networking_c },
266268 {"test_object.c" , __test_object_c },
269+ {"test_popcount.c" , __test_popcount_c },
267270 {"test_quicklist.c" , __test_quicklist_c },
268271 {"test_rax.c" , __test_rax_c },
269272 {"test_sds.c" , __test_sds_c },
0 commit comments