blob: 7e5305178b970f2fbe368feddaeb199f13525954 [file] [log] [blame] [view]
Sean Purcell2500dcf2017-03-09 13:59:26 -08001Testing
2=======
3
4Zstandard CI testing is split up into three sections:
5short, medium, and long tests.
6
7Short Tests
8-----------
9Short tests run on CircleCI for new commits on every branch and pull request.
10They consist of the following tests:
11- Compilation on all supported targets (x86, x86_64, ARM, AArch64, PowerPC, and PowerPC64)
12- Compilation on various versions of gcc, clang, and g++
13- `tests/playTests.sh` on x86_64, without the tests on long data (CLI tests)
Bimba Shrestha6a4258a2020-02-05 16:55:00 -080014- Small tests (`tests/legacy.c`, `tests/longmatch.c`) on x64_64
Sean Purcell2500dcf2017-03-09 13:59:26 -080015
16Medium Tests
17------------
18Medium tests run on every commit and pull request to `dev` branch, on TravisCI.
19They consist of the following tests:
20- The following tests run with UBsan and Asan on x86_64 and x86, as well as with
21 Msan on x86_64
Taylor Braun-Jones12e421b2020-01-30 10:31:00 -050022 - `tests/playTests.sh --test-large-data`
Sean Purcell2500dcf2017-03-09 13:59:26 -080023 - Fuzzer tests: `tests/fuzzer.c`, `tests/zstreamtest.c`, and `tests/decodecorpus.c`
24- `tests/zstreamtest.c` under Tsan (streaming mode, including multithreaded mode)
25- Valgrind Test (`make -C tests valgrindTest`) (testing CLI and fuzzer under valgrind)
26- Fuzzer tests (see above) on ARM, AArch64, PowerPC, and PowerPC64
27
28Long Tests
29----------
30Long tests run on all commits to `master` branch,
31and once a day on the current version of `dev` branch,
32on TravisCI.
33They consist of the following tests:
34- Entire test suite (including fuzzers and some other specialized tests) on:
35 - x86_64 and x86 with UBsan and Asan
36 - x86_64 with Msan
37 - ARM, AArch64, PowerPC, and PowerPC64
38- Streaming mode fuzzer with Tsan (for the `zstdmt` testing)
39- ZlibWrapper tests, including under valgrind
40- Versions test (ensuring `zstd` can decode files from all previous versions)
41- `pzstd` with asan and tsan, as well as in 32-bits mode
42- Testing `zstd` with legacy mode off
43- Testing `zbuff` (old streaming API)
Ryan Schmidtb567ce92018-06-09 14:31:17 -050044- Entire test suite and make install on macOS