nuttx-apps icon indicating copy to clipboard operation
nuttx-apps copied to clipboard

Os spinlock test

Open TaiJuWu opened this issue 1 year ago • 5 comments

Summary

Os spinlock test

Impact

Test for spinlock

Testing

local test

TaiJuWu avatar May 05 '24 03:05 TaiJuWu

@acassis @xiaoxiang781216 Do you have any idea about the fail cases? I have no idea what make these testcases fail.

TaiJuWu avatar May 06 '24 08:05 TaiJuWu

@acassis @xiaoxiang781216 Do you have any idea about the fail cases? I have no idea what make these testcases fail.

here is the error:

====================================================================================
Configuration/Tool: rv-virt/knetnsh64_smp
------------------------------------------------------------------------------------
  Cleaning...
  Configuring...
  Building NuttX...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100  496k  100  496k    0     0  1736k      0 --:--:-- --:--:-- --:--:-- 1736k
/github/workspace/sources/apps /github/workspace/sources/nuttx
Warning: fpu.c:55:8: warning: #warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)" [-Wcpp]
   55 | #      warning "FPU test not built; Only available in the flat build (CONFIG_BUILD_FLAT)"
      |        ^~~~~~~
riscv-none-elf-ld: /github/workspace/sources/apps/libapps.a(spinlock.c.github.workspace.sources.apps.testing.ostest_1.o): in function `thread_native_spinlock':
/github/workspace/sources/apps/testing/ostest/spinlock.c:60:(.text.thread_native_spinlock+0x42): undefined reference to `spin_lock'
riscv-none-elf-ld: /github/workspace/sources/apps/testing/ostest/spinlock.c:62:(.text.thread_native_spinlock+0x54): undefined reference to `spin_unlock'
riscv-none-elf-ld: /github/workspace/sources/apps/libapps.a(spinlock.c.github.workspace.sources.apps.testing.ostest_1.o): in function `thread_wrt_spinlock':
/github/workspace/sources/apps/testing/ostest/spinlock.c:128:(.text.thread_wrt_spinlock+0x42): undefined reference to `write_lock'
riscv-none-elf-ld: /github/workspace/sources/apps/testing/ostest/spinlock.c:131:(.text.thread_wrt_spinlock+0x54): undefined reference to `write_unlock'
riscv-none-elf-ld: /github/workspace/sources/apps/libapps.a(spinlock.c.github.workspace.sources.apps.testing.ostest_1.o): in function `thread_read_spinlock':
/github/workspace/sources/apps/testing/ostest/spinlock.c:109:(.text.thread_read_spinlock+0x56): undefined reference to `read_lock'
riscv-none-elf-ld: /github/workspace/sources/apps/testing/ostest/spinlock.c:113:(.text.thread_read_spinlock+0x78): undefined reference to `read_unlock'
make[3]: *** [/github/workspace/sources/apps/Application.mk:251: /github/workspace/sources/apps/bin/ostest] Error 1
make[2]: *** [Makefile:52: /github/workspace/sources/apps/testing/ostest_install] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:97: .import] Error 2
make: *** [Makefile:103: import] Error 2
/github/workspace/sources/nuttx

xiaoxiang781216 avatar May 06 '24 15:05 xiaoxiang781216

ping @TaiJuWu Did you test it again?

acassis avatar Jun 26 '24 17:06 acassis

ping @TaiJuWu Did you test it again?

Hi @acassis , I have no idea how to resolve these fail tests. If anyone know how to reslove this issue, welcome to take it over.

TaiJuWu avatar Jun 27 '24 01:06 TaiJuWu

@xiaoxiang781216 any suggestion?

acassis avatar Jun 27 '24 13:06 acassis

ping :-)

cederom avatar Nov 02 '24 15:11 cederom

who is familiar with spinlock and can update? looks like config/headers need fix? :-)

cederom avatar Jan 30 '25 02:01 cederom