Testing
The parts of VoluSys that parse untrusted input, such as TLS, images, SVG, JavaScript, audio and HTML/CSS, are also compiled for the host and tested there, often with sanitizers and fuzzers.
| Suite | What it covers | Run |
|---|---|---|
tests/tls | Crypto test vectors (AES-GCM, ChaCha20-Poly1305, X25519, P-256, SHA-2, signatures), TLS 1.2/1.3 handshakes against a local test server, certificate extensions, OCSP, time handling, end-to-end connections | sh tests/tls/run_tests.sh |
tests/image | PNG/APNG, JPEG, GIF, WebP (VP8/VP8L), BMP, ICO decoding against a generated corpus, plus fuzzing under ASan + UBSan | python tests/image/gen_corpus.py then sh tests/image/run_tests.sh |
tests/svg | The SVG renderer compared pixel by pixel against reference renderings | see tests/svg |
tests/js | JavaScript conformance cases with expected output, CORS decision logic, the browser prelude; optional ASan/UBSan build | sh tests/js/run_tests.sh [asan] |
tests/audio | WAV, FLAC, MP3 and Vorbis decoders | python tests/audio/run_tests.py |
tests/browser | CSP, SRI and cookie rules, plus a fuzzer for the HTML/CSS/layout engine | sh tests/browser/run_tests.sh |
The shell-based suites expect a Unix-like environment (Linux or WSL with gcc/clang).
Visual testing#
UI changes are checked by booting the OS headless and screenshotting it with tools/qmon.py (see Building). Automated visual regression tests, which compare screenshots against approved baselines in CI, now run with tools/vtest (scenarios, baselines, CI).