zstd/tests/regression
2020-10-30 13:55:52 -07:00
..
.gitignore updated compression results.csv 2018-12-12 20:30:09 -08:00
config.c Fix copyright and license lines 2020-03-26 17:02:06 -07:00
config.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
data.c Fix copyright and license lines 2020-03-26 17:02:06 -07:00
data.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
levels.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
Makefile Fix copyright and license lines 2020-03-26 17:02:06 -07:00
method.c Fix copyright and license lines 2020-03-26 17:02:06 -07:00
method.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
README.md [regression] Add README explaining the test 2020-10-30 13:55:52 -07:00
result.c Fix copyright and license lines 2020-03-26 17:02:06 -07:00
result.h Fix copyright and license lines 2020-03-26 17:02:06 -07:00
results.csv [regression] Update results.csv 2020-10-30 13:54:30 -07:00
test.c Fix copyright and license lines 2020-03-26 17:02:06 -07:00

Regression tests

The regression tests run zstd in many scenarios and ensures that the size of the compressed results doesn't change. This helps us ensure that we don't accidentally regress zstd's compression ratio.

These tests get run every night by CircleCI. If the job fails you can read the diff printed by the job to ensure the change isn't a regression. If all is well you can download the results.csv artifact and commit the new results. Or you can rebuild it yourself following the instructions below.

Rebuilding results.csv

From the root of the zstd repo run:

# Build the zstd binary
make clean
make -j zstd

# Build the regression test binary
cd tests/regression
make clean
make -j test

# Run the regression test
./test --cache data-cache --zstd ../../zstd --output results.csv

# Check results.csv to ensure the new results are okay
git diff

# Then submit the PR