@@ -6,6 +6,7 @@ typedef struct unitTest {
66 unitTestProc * proc ;
77} unitTest ;
88
9+ int test_popcount (int argc , char * * argv , int flags );
910int test_crc64 (int argc , char * * argv , int flags );
1011int test_crc64combine (int argc , char * * argv , int flags );
1112int test_dictCreate (int argc , char * * argv , int flags );
@@ -105,7 +106,6 @@ int test_postWriteToReplica(int argc, char **argv, int flags);
105106int test_backupAndUpdateClientArgv (int argc , char * * argv , int flags );
106107int test_rewriteClientCommandArgument (int argc , char * * argv , int flags );
107108int test_object_with_key (int argc , char * * argv , int flags );
108- int test_popcount (int argc , char * * argv , int flags );
109109int test_quicklistCreateList (int argc , char * * argv , int flags );
110110int test_quicklistAddToTailOfEmptyList (int argc , char * * argv , int flags );
111111int test_quicklistAddToHeadOfEmptyList (int argc , char * * argv , int flags );
@@ -231,6 +231,7 @@ int test_zmallocInitialUsedMemory(int argc, char **argv, int flags);
231231int test_zmallocAllocReallocCallocAndFree (int argc , char * * argv , int flags );
232232int test_zmallocAllocZeroByteAndFree (int argc , char * * argv , int flags );
233233
234+ unitTest __test_bitops_c [] = {{"test_popcount" , test_popcount }, {NULL , NULL }};
234235unitTest __test_crc64_c [] = {{"test_crc64" , test_crc64 }, {NULL , NULL }};
235236unitTest __test_crc64combine_c [] = {{"test_crc64combine" , test_crc64combine }, {NULL , NULL }};
236237unitTest __test_dict_c [] = {{"test_dictCreate" , test_dictCreate }, {"test_dictAdd16Keys" , test_dictAdd16Keys }, {"test_dictDisableResize" , test_dictDisableResize }, {"test_dictAddOneKeyTriggerResize" , test_dictAddOneKeyTriggerResize }, {"test_dictDeleteKeys" , test_dictDeleteKeys }, {"test_dictDeleteOneKeyTriggerResize" , test_dictDeleteOneKeyTriggerResize }, {"test_dictEmptyDirAdd128Keys" , test_dictEmptyDirAdd128Keys }, {"test_dictDisableResizeReduceTo3" , test_dictDisableResizeReduceTo3 }, {"test_dictDeleteOneKeyTriggerResizeAgain" , test_dictDeleteOneKeyTriggerResizeAgain }, {"test_dictBenchmark" , test_dictBenchmark }, {NULL , NULL }};
@@ -241,7 +242,6 @@ unitTest __test_kvstore_c[] = {{"test_kvstoreAdd16Keys", test_kvstoreAdd16Keys},
241242unitTest __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 }};
242243unitTest __test_networking_c [] = {{"test_writeToReplica" , test_writeToReplica }, {"test_postWriteToReplica" , test_postWriteToReplica }, {"test_backupAndUpdateClientArgv" , test_backupAndUpdateClientArgv }, {"test_rewriteClientCommandArgument" , test_rewriteClientCommandArgument }, {NULL , NULL }};
243244unitTest __test_object_c [] = {{"test_object_with_key" , test_object_with_key }, {NULL , NULL }};
244- unitTest __test_bitops_c [] = {{"test_popcount" , test_popcount }, {NULL , NULL }};
245245unitTest __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 }};
246246unitTest __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 }};
247247unitTest __test_sds_c [] = {{"test_sds" , test_sds }, {"test_typesAndAllocSize" , test_typesAndAllocSize }, {"test_sdsHeaderSizes" , test_sdsHeaderSizes }, {"test_sdssplitargs" , test_sdssplitargs }, {NULL , NULL }};
@@ -256,6 +256,7 @@ struct unitTestSuite {
256256 char * filename ;
257257 unitTest * tests ;
258258} unitTestSuite [] = {
259+ {"test_bitops.c" , __test_bitops_c },
259260 {"test_crc64.c" , __test_crc64_c },
260261 {"test_crc64combine.c" , __test_crc64combine_c },
261262 {"test_dict.c" , __test_dict_c },
@@ -266,7 +267,6 @@ struct unitTestSuite {
266267 {"test_listpack.c" , __test_listpack_c },
267268 {"test_networking.c" , __test_networking_c },
268269 {"test_object.c" , __test_object_c },
269- {"test_bitops.c" , __test_bitops_c },
270270 {"test_quicklist.c" , __test_quicklist_c },
271271 {"test_rax.c" , __test_rax_c },
272272 {"test_sds.c" , __test_sds_c },
0 commit comments