Run CIT (lint + test)
When to use
Use cit.py to run lint and/or unit tests. Run after builds when a task requires "build+CI must pass" or "run cit".
Commands (run from repo root)
Full CI (lint + test):
bash
source env/garnet.rc # Linux: ensures PATH and env env/bin/cit.py
Lint only (style check, no test run):
bash
env/bin/cit.py -l
Test only (skip lint):
bash
env/bin/cit.py -t [test_args]
What runs
- •Lint (
cit.pyorcit.py -l): Runsformat-all-sources.py -dqn(checks code style on changed files vs origin/master). Fails if any file would need formatting. - •Test (
cit.pyorcit.py -t): Runsbuild/<variant>/bin/GNtest-unit-tests. Uses the latest built variant.
Prerequisites
- •Lint: repo root, Python, format-all-sources.py (in env/bin). For "changed files" behavior, origin/master must exist.
- •Test: a successful build must exist (e.g.
build.py dalready run) soGNtest-unit-testsis present.
Verification
- •Lint passes: exit code 0, "OK" or no style violations.
- •Test passes: unit test binary runs and exits 0.