Skip to content

Add cmocka setup, smoke tests, and CI - #2

Closed
littlegraybird wants to merge 3 commits into
mainfrom
feature/cmocka-setup
Closed

littlegraybird wants to merge 3 commits into
mainfrom
feature/cmocka-setup

Conversation

@littlegraybird

Copy link
Copy Markdown
Collaborator

Created Makefile - adds a make test target to automatically find every test/test_*.c file, builds it with its matching src/<name>.c, and links against cmocka
Created tests/test_smoke.c - placeholder test (no project dependencies) to confirm cmocka is installed and works
Created .gitignore - ignores compiled test boundaries and obj files
Created .github/workflows/ci.yml - actions workflow that runs make test on every pull req and push to main to make sure cmocka is installed. checks for ubuntu and fedora

cmocka installation: sudo apt install libcmocka-dev (Ubuntu)

NOTE: all test files should be formatted as tests/test_<module>.c for the Makefile to detect it automatically

@littlegraybird
littlegraybird deleted the feature/cmocka-setup branch November 9, 2026 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant