Skip to content

Tests

CLANG=path/to/clang tests/run.sh

It compiles every header for both targets in C and C++, generates code for every 68k inline function, checks the size of every record whose definition gives one, checks the argument-block calls against the ROM, and links every example into a fat application. With LLVM_SRC set it also builds the runtime library and runs its test, and with PICOLIBC_SRC set as well it builds the C library and runs its test.

.github/workflows/check.yml runs it for every pull request and push, with the newest clang from clang-retro/llvm's llvm-prebuilt release, and also fails when include/ or docs/coverage.md differ from what tools/gen-headers.py and tools/coverage.py write.