extinguish opened a new pull request, #3336:
URL: https://github.com/apache/nuttx-apps/pull/3336

   ## Summary
   
   Extend LTP (Linux Test Project) support on NuttX to enable compilation and 
execution of Linux kernel testcases, adding necessary infrastructure for 
kernel‑level API validation:
   1. Add Linux‑compatible loop device API – Define `struct loop_info` and 
`LOOP_* ioctl` constants in `testing/ltp/include/linux/loop.h`, allowing LTP 
loop‑device testcases to build and run when `CONFIG_DEV_LOOP=y`.
   2. Fix kernel‑test build errors – Exclude nftw64 from the kernel‑test 
blacklist to prevent duplicate‑symbol linker conflicts (__odr_asan.*) between 
nftw.c and nftw64.c, ensuring clean linking of the kernel test suite.
   3. Continue kernel‑test framework expansion – Build out the LTP kernel‑test 
`CMake` infrastructure with proper header stubs, `syscall mapping`, and feature 
configuration to support kernel‑level test execution.
   
   ## Impact
   
   1. Enables LTP Linux kernel testcases – Allows NuttX to compile and run LTP 
tests that exercise kernel‑level APIs (device drivers, filesystems, syscalls, 
etc.), significantly expanding system validation coverage.
   2. Resolves build‑time conflicts – Fixes symbol‑duplication errors that 
previously blocked kernel‑test linking.
   
   ## Testing
   
   1. Verified that LTP Linux kernel testcases now build successfully without 
missing‑header or duplicate‑symbol errors.
   2. Confirmed that loop‑device tests compile and link when CONFIG_DEV_LOOP is 
enabled.
   
   
   


-- 
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