Skip to content

yasinhajilou/firmware-testing-framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Firmware Testing Framework

A comprehensive C testing framework for embedded firmware, demonstrating:

Features

  • Unit test organization
  • Mock objects and stubs
  • Parameterized testing
  • Performance measurements
  • Memory leak detection
  • Test categories

Test Strategy

  1. Unit Tests
    • Basic functionality
    • Edge cases
    • Error conditions
  2. Integration Tests
    • Component interaction
    • State transitions
  3. Performance Tests
    • Timing requirements
    • Resource usage
  4. Memory Tests
    • Leak detection
    • Buffer overflows

Usage

# Build all tests
make

# Run all tests
make test

# Run specific test
./tests/gpio_advanced_test.test

Project Structure

firmware_test_framework/
├── include/
│   ├── mock_framework.h
│   └── gpio_driver.h
├── tests/
│   ├── gpio_test.c
│   └── gpio_advanced_test.c
├── Makefile
└── README.md

About

C testing framework for embedded firmware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published