.claude/commands/build-and-test.md
raw| 1 | --- |
| 2 | description: Build Rspamd and run all unit tests |
| 3 | --- |
| 4 | |
| 5 | Complete build and test workflow for Rspamd: |
| 6 | |
| 7 | 1. Build project: |
| 8 | - `cd ~/rspamd.build` |
| 9 | - `ninja -j8 install` |
| 10 | 2. If build succeeds, run unit tests: |
| 11 | - C/C++ tests: `test/rspamd-test-cxx` |
| 12 | - Lua tests: `test/rspamd-test -p /rspamd/lua` |
| 13 | 3. Report comprehensive results: |
| 14 | - Build status |
| 15 | - Test results |
| 16 | - Any failures or errors |
| 17 | |
| 18 | This is the standard pre-commit verification workflow. |