When an empty input file was passed to the dictionary trainer, it would infinite loop. The added test case exposes the bug, and is fixed with this PR.
10 lines
119 B
Bash
Executable File
10 lines
119 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
for i in $(seq 50); do
|
|
datagen -s$i > file$i
|
|
done
|
|
touch empty
|
|
|
|
set -v
|
|
zstd -q --train empty file*
|