Skip --adapt and --rsyncable tests when built without thread support

These options require ZSTD_MULTITHREAD.
This commit is contained in:
Michael Forney 2019-05-26 03:18:39 -07:00
parent 21bb78e908
commit 1bc77ee174

View File

@ -895,18 +895,21 @@ roundTripTest -g1M -P50 "1 --single-thread --long=29" " --long=28 --memory=512MB
roundTripTest -g1M -P50 "1 --single-thread --long=29" " --zstd=wlog=28 --memory=512MB" roundTripTest -g1M -P50 "1 --single-thread --long=29" " --zstd=wlog=28 --memory=512MB"
println "\n===> adaptive mode " if [ -n "$hasMT" ]
roundTripTest -g270000000 " --adapt" then
roundTripTest -g27000000 " --adapt=min=1,max=4" println "\n===> adaptive mode "
println "===> test: --adapt must fail on incoherent bounds " roundTripTest -g270000000 " --adapt"
./datagen > tmp roundTripTest -g27000000 " --adapt=min=1,max=4"
$ZSTD -f -vv --adapt=min=10,max=9 tmp && die "--adapt must fail on incoherent bounds" println "===> test: --adapt must fail on incoherent bounds "
./datagen > tmp
$ZSTD -f -vv --adapt=min=10,max=9 tmp && die "--adapt must fail on incoherent bounds"
println "\n===> rsyncable mode " println "\n===> rsyncable mode "
roundTripTest -g10M " --rsyncable" roundTripTest -g10M " --rsyncable"
roundTripTest -g10M " --rsyncable -B100K" roundTripTest -g10M " --rsyncable -B100K"
println "===> test: --rsyncable must fail with --single-thread" println "===> test: --rsyncable must fail with --single-thread"
$ZSTD -f -vv --rsyncable --single-thread tmp && die "--rsyncable must fail with --single-thread" $ZSTD -f -vv --rsyncable --single-thread tmp && die "--rsyncable must fail with --single-thread"
fi
if [ "$1" != "--test-large-data" ]; then if [ "$1" != "--test-large-data" ]; then