tree: 23f695e9c4f22710aaa3b6b9786be08cb28fd836 [path history] [tgz]
  1. .gitignore
  2. config.c
  3. config.h
  4. data.c
  5. data.h
  6. levels.h
  7. Makefile
  8. method.c
  9. method.h
  10. README.md
  11. result.c
  12. result.h
  13. results.csv
  14. test.c
tests/regression/README.md

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