[test][dictBuilder] Add multithreaded tests
This commit is contained in:
parent
0932de54bc
commit
793c71d6ae
@ -526,6 +526,15 @@ $ZSTD -o tmpDict --train "$TESTDIR"/*.c "$PRGDIR"/*.c
|
||||
test -f tmpDict
|
||||
$ZSTD --train "$TESTDIR"/*.c "$PRGDIR"/*.c
|
||||
test -f dictionary
|
||||
println "- Test dictionary training fails"
|
||||
echo "000000000000000000000000000000000" > tmpz
|
||||
$ZSTD --train tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz && die "Dictionary training should fail : source is all zeros"
|
||||
if [ -n "$hasMT" ]
|
||||
then
|
||||
$ZSTD --train -T0 tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz tmpz && die "Dictionary training should fail : source is all zeros"
|
||||
println "- Create dictionary with multithreading enabled"
|
||||
$ZSTD --train -T0 "$TESTDIR"/*.c "$PRGDIR"/*.c -o tmpDict
|
||||
fi
|
||||
rm tmp* dictionary
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user