Files
tidwall 9e8e19e4bc
Some checks failed
Vanilla C CI / build (push) Has been cancelled
Allow all tests to run before fail
2024-07-25 19:34:58 -07:00
..
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-07-25 19:34:58 -07:00
2024-04-08 10:21:38 -07:00
2024-05-13 05:21:53 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-04-08 10:21:38 -07:00
2024-05-13 05:21:53 -07:00
2024-04-08 10:21:38 -07:00
2024-05-13 05:55:58 -07:00
2024-04-08 10:21:38 -07:00

Testing

Tests can be run from the project's root directory.

tests/run.sh

This will run all tests using the system's default compiler.

If Clang is your compiler then you will also be provided with memory address sanitizing and code coverage.

If you need Valgrind you can provide VALGRIND=1.

Examples

tests/run.sh                   # defaults
CC=clang-17 tests/run.sh       # use alternative compiler
CC=emcc tests/run.sh           # test WebAssembly using Emscripten
CC="zig cc" tests/run.sh       # test with the Zig C compiler
CFLAGS="-O3" tests/run.sh      # use custom cflags
NOSANS=1 tests/run.sh          # do not use sanitizers
VALGRIND=1 tests/run.sh        # use valgrind on all tests