ThePassionate opened a new pull request, #18251:
URL: https://github.com/apache/nuttx/pull/18251

   ## NuttX Simulator: Enable CMocka Testing Framework for Crypto Configuration
   
   ### Overview
   Enable CMocka unit testing framework support in the simulator's crypto 
configuration by adding required libc dependencies. This allows crypto test 
cases from nuttx-apps that depend on the CMocka framework to properly build and 
execute on the NuttX simulator.
   
   ### Changes
   Modified `boards/sim/sim/sim/configs/crypto/defconfig` to enable:
   - `CONFIG_ALLOW_MIT_COMPONENTS=y` - Allow MIT licensed components
   - `CONFIG_LIBC_REGEX=y` - Enable regex library (CMocka dependency)
   - `CONFIG_TESTING_CMOCKA=y` - Enable CMocka unit testing framework
   
   ### Rationale
   The nuttx-apps crypto testing module has been modernized to use CMocka unit 
testing framework instead of CLI-based tests. To support this on the NuttX 
simulator, the required dependencies must be available in the crypto 
configuration.
   
   ### Dependency Chain
   
   CONFIG_TESTING_CRYPTO (nuttx-apps)
   ↓ depends on
   CONFIG_TESTING_CMOCKA (nuttx-apps)
   ↓ depends on
   CONFIG_LIBC_REGEX (nuttx)
   ↓ depends on
   CONFIG_ALLOW_MIT_COMPONENTS (nuttx)
   
   ### Testing
   This configuration change enables proper CI builds and execution of crypto 
tests that utilize the CMocka framework on the NuttX simulator without 
stripping the required testing configuration.
   
   ### Related
   [- NuttX-Apps PR: apps-features branch (cmocka-based crypto testing)
   - NuttX-Apps repo: Crypto testing module 
modernization](https://github.com/apache/nuttx-apps/pull/3385)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to