A comprehensive C testing framework for embedded firmware, demonstrating:
- Unit test organization
- Mock objects and stubs
- Parameterized testing
- Performance measurements
- Memory leak detection
- Test categories
- Unit Tests
- Basic functionality
- Edge cases
- Error conditions
- Integration Tests
- Component interaction
- State transitions
- Performance Tests
- Timing requirements
- Resource usage
- Memory Tests
- Leak detection
- Buffer overflows
# Build all tests
make
# Run all tests
make test
# Run specific test
./tests/gpio_advanced_test.test
firmware_test_framework/
├── include/
│ ├── mock_framework.h
│ └── gpio_driver.h
├── tests/
│ ├── gpio_test.c
│ └── gpio_advanced_test.c
├── Makefile
└── README.md