nasa / bplib

Apache License 2.0
27 stars 13 forks source link

Fix #121, #165, OSAL integration and initial coverage tests #174

Closed jphickey closed 1 year ago

jphickey commented 1 year ago

OSAL integration:

Utilize NASA OSAL (https://github.com/nasa/osal) as the preferred option for OS abstraction. The "bplib_os" calls become simple wrappers around OSAL functions.

The OSAL package also provides UT assert and stub framework that can be used for unit testing.

Fixes #165

Coverage Testing: (depends on OSAL)

Create a "ut-stubs" and "ut-coverage" subdirectory under each of the submodules, and hook into the build system gated upon the setting of BPLIB_ENABLE_UNIT_TESTS.

This is only the initial framework, most test cases are still not implemented and need to be added.

Fixes #121