[tests] Add rsyncable tests
This commit is contained in:
parent
4316409427
commit
71fe78cbf9
@ -836,6 +836,12 @@ $ECHO "===> test: --adapt must fail on incoherent bounds "
|
|||||||
./datagen > tmp
|
./datagen > tmp
|
||||||
$ZSTD -f -vv --adapt=min=10,max=9 tmp && die "--adapt must fail on incoherent bounds"
|
$ZSTD -f -vv --adapt=min=10,max=9 tmp && die "--adapt must fail on incoherent bounds"
|
||||||
|
|
||||||
|
$ECHO "\n===> rsyncable mode "
|
||||||
|
roundTripTest -g10M " --rsyncable"
|
||||||
|
roundTripTest -g10M " --rsyncable -B100K"
|
||||||
|
$ECHO "===> test: --rsyncable must fail with --single-thread"
|
||||||
|
$ZSTD -f -vv --rsyncable --single-thread tmp && die "--rsyncable must fail with --single-thread"
|
||||||
|
|
||||||
|
|
||||||
if [ "$1" != "--test-large-data" ]; then
|
if [ "$1" != "--test-large-data" ]; then
|
||||||
$ECHO "Skipping large data tests"
|
$ECHO "Skipping large data tests"
|
||||||
|
@ -1915,6 +1915,8 @@ static int fuzzerTests_newAPI(U32 seed, U32 nbTests, unsigned startTest,
|
|||||||
CHECK_Z( setCCtxParameter(zc, cctxParams, ZSTD_p_jobSize, (U32)FUZ_rLogLength(&lseed, jobLog), opaqueAPI) );
|
CHECK_Z( setCCtxParameter(zc, cctxParams, ZSTD_p_jobSize, (U32)FUZ_rLogLength(&lseed, jobLog), opaqueAPI) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* Enable rsyncable mode 1 in 4 times. */
|
||||||
|
setCCtxParameter(zc, cctxParams, ZSTD_p_rsyncable, (FUZ_rand(&lseed) % 4 == 0), opaqueAPI);
|
||||||
|
|
||||||
if (FUZ_rand(&lseed) & 1) CHECK_Z( setCCtxParameter(zc, cctxParams, ZSTD_p_forceMaxWindow, FUZ_rand(&lseed) & 1, opaqueAPI) );
|
if (FUZ_rand(&lseed) & 1) CHECK_Z( setCCtxParameter(zc, cctxParams, ZSTD_p_forceMaxWindow, FUZ_rand(&lseed) & 1, opaqueAPI) );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user