boards/risc-v: add NTFC test for ksmp64 - #20127
imeghar2408-max wants to merge 1 commit into
Conversation
|
CI is currently failing during the NTFC boot wait for the ksmp64 test. The kernel builds successfully and boots locally with 4 HARTs, but CI uses ntfc==0.0.1, whose boot wait appears to be limited to ~5s. Newer NTFC changes add configurable boot_timeout and exec_cwd. What would be the preferred approach here — update/release NTFC first and then use those options in this PR, or handle it another way? |
|
@raiden00pl what is the Issue reported by CI? Is it this warning promoted to error: Warning: fpu.c:57:8: warning: #warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)" [-Wcpp] ? |
|
https://github.com/apache/nuttx/actions/runs/34754691570/job/103750583002?pr=20127#step:10:842 I'm not sure if this PR is correct, here is the last NTFC config I used to test kernel build with risc-v: https://github.com/apache/nuttx-ntfc/blob/main/config/nuttx-qemu-riscv-rv-virt-knsh64.yaml Another thing is NTFC kernel-build mode works only with cmake, I dont remember which build system is used by |
@raiden00pl so we need to create an issue to random it, everything on NuttX should work with make and cmake, maybe in the future we can move only to cmake (or maybe not), but for now we need to support both. |
|
@acassis I don't think so. NTFC is a testing tool, not main project. NTFC is an auxiliary tool, and no one is required to use it. Automatic building in NTFC is possible only with cmake. |
Fair enough! But it could prevent people using Makefile to test it. |
9426ec6
6ad0584 to
9426ec6
Compare
9426ec6 to
0e051d2
Compare
|
hello @acassis @raiden00pl Changes:
Local validation:
|
Add NTFC configuration for the ksmp64 kernel SMP build so it can be exercised by the CI test infrastructure. Assisted by: GitHub Copilot Signed-off-by: Megha Rajput <i.meghar.2408@gmail.com>
0e051d2 to
9e17788
Compare
Assisted-by: GitHub Copilot
Summary
Add NTFC (NuttX Test Framework Configuration) support for the existing RISC-V
ksmp64kernel SMP configuration (rv-virt:ksmp64).This enables automated CI test coverage for the SMP kernel build, exercising
ostestand SMP-specific test cases across 4 harts under QEMU.Testing
Build
Verified key configuration options:
Kernel application build/import
QEMU SMP boot
$ qemu-system-riscv64 -semihosting -M virt,aclint=on -cpu rv64 -smp 4 -kernel ./nuttx -nographicBoots cleanly to NSH with all 4 harts recognized by OpenSBI.
NTFC test run
$ NTFCDIR=/tmp/nuttx-ntfc ./tools/testbuild.sh -C -R /tmp/nuttx-ksmp64-testlist933 tests collected, 3 skipped, exit code 0 — no failures.
Static checks
All checks pass.
Fixes #20031