Gary-Hobson commented on PR #2859:
URL: https://github.com/apache/nuttx-apps/pull/2859#issuecomment-2491451482

   
   > Hmm.. is it possible to make it work also on Sim? That sounds like a 
perfect candidate for experimentation because no real hardware is involved it 
can be build on any available build host and it could be part of CI..? :-)
   
   In fact, it is easier to use the tools provided by the toolchain in the sim. 
   This mini version is to solve the problem of using it on some devices 
without storage media.
   
   You can view the code coverage report directly in the simulator by following 
the steps below
   ```sh
   ./tools/configure.sh sim:nsh
   make -j
   
   +CONFIG_COVERAGE_ALL=y
   +CONFIG_COVERAGE_TOOLCHAIN=y
   +CONFIG_HAVE_CXXINITIALIZE=y
   +CONFIG_SYSTEM_GCOV=y
   
   bash> ./nuttx/nuttx
   nsh>  gcov -d /tmp   #  "/"  can be any existing path
   bash> ./nuttx/gcov.sh gcov-13
   bash> microsoft-edge ./gcov/result/index.html
   ```
   
   These two different methods will output the same result
   
![image](https://github.com/user-attachments/assets/398c13df-a624-4d17-bf6b-9d695406caac)
   
   


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to