mirror of
https://github.com/containers/crun.git
synced 2026-02-05 15:45:25 +01:00
1002 B
1002 B
AGENTS.md
Code Style
- Always preserve existing indentation style in each file, and validate it with
make clang-format. - Do not add inline comments explaining the change they belong to.
Git Commit Rules
- Each logical change must be in its own separate commit.
- Fixes for existing commits in the current branch must use fixup commits:
git commit --fixup=<original-commit-hash>
Commit Authorship
- Keep the original author (do not change git config)
- Add agent signature at the end of commit messages.
Adding New Files
- New source or test files must be added to
Makefile.am - After adding files, verify the build with
make distcheck
Adding New Tests
- Python tests go in
tests/test_*.py, register inall_testsdict, and add toPYTHON_TESTSin rootMakefile.am - C unit tests go in
tests/tests_libcrun_*.c, add toUNIT_TESTSin rootMakefile.amwith build rules - Test functions should return
0(pass),-1(fail), or77(skip)