[GH-ISSUE #37] [Bug]: fail on running tests #16

Closed
opened 2026-06-06 22:10:39 -04:00 by yindo · 2 comments
Owner

Originally created by @souz9 on GitHub (Dec 28, 2022).
Original GitHub issue: https://github.com/vxcontrol/soldr-modules/issues/37

Originally assigned to: @asdek on GitHub.

Describe the bug

I'm running the tests as it's described in the wiki. Got an error.

Steps to Reproduce

  export LUAPOWER_PLATFORM=linux64
  export LUA_PATH="$(pwd)/tests_framework/lua/?.lua;$(pwd)/tests_framework/lua/?/init.lua;$(pwd)/luapower/?.lua;$(pwd)/luapower/?/init.lua;$(pwd)/utils/?.lua;$(pwd)/utils/?/init.lua"
  export LUA_CPATH="$(pwd)/luapower/bin/$LUAPOWER_PLATFORM/lib?.dylib;$(pwd)/luapower/bin/$LUAPOWER_PLATFORM/clib/?.so;"
  export LUA_BIN="$(pwd)/luapower/bin/$LUAPOWER_PLATFORM/luajit-bin"
  
   ./tests_framework/lua/bin/busted.$LUAPOWER_PLATFORM.cmd tests/.
ARG[1] tests/.
/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/luajit-bin: ...erok/soldr-modules/tests_framework/lua/busted/runner.lua:25: module 'busted.modules.luacov' not found:
        no field package.preload['busted.modules.luacov']
        no file '/home/souz9/cyberok/soldr-modules/tests_framework/lua/busted/modules/luacov.lua'
        no file '/home/souz9/cyberok/soldr-modules/tests_framework/lua/busted/modules/luacov/init.lua'
        no file '/home/souz9/cyberok/soldr-modules/luapower/busted/modules/luacov.lua'
        no file '/home/souz9/cyberok/soldr-modules/luapower/busted/modules/luacov/init.lua'
        no file '/home/souz9/cyberok/soldr-modules/utils/busted/modules/luacov.lua'
        no file '/home/souz9/cyberok/soldr-modules/utils/busted/modules/luacov/init.lua'
        no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/libbusted/modules/luacov.dylib'
        no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/clib/busted/modules/luacov.so'
        no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/libbusted.dylib'
        no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/clib/busted.so'
stack traceback:
        [C]: in function 'require'
        ...erok/soldr-modules/tests_framework/lua/busted/runner.lua:25: in function <...erok/soldr-modules/tests_framework/lua/busted/runner.lua:11>
        ...cyberok/soldr-modules/tests_framework/lua/bin/busted.lua:12: in main chunk
        [C]: at 0x56075317f2f0

Screenshots, screen recording, code snippet

No response

Environment information

$  uname -a
Linux magicbook 6.0.12-artix1-1 #1 SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 22:58:17 +0000 x86_64 GNU/Linux

Which agent binary used?

  • darwin-amd64
  • linux-386
  • linux-amd64
  • windows-386
  • windows-amd64
Originally created by @souz9 on GitHub (Dec 28, 2022). Original GitHub issue: https://github.com/vxcontrol/soldr-modules/issues/37 Originally assigned to: @asdek on GitHub. ### Describe the bug I'm running the tests as it's described in the wiki. Got an error. ### Steps to Reproduce ```sh export LUAPOWER_PLATFORM=linux64 export LUA_PATH="$(pwd)/tests_framework/lua/?.lua;$(pwd)/tests_framework/lua/?/init.lua;$(pwd)/luapower/?.lua;$(pwd)/luapower/?/init.lua;$(pwd)/utils/?.lua;$(pwd)/utils/?/init.lua" export LUA_CPATH="$(pwd)/luapower/bin/$LUAPOWER_PLATFORM/lib?.dylib;$(pwd)/luapower/bin/$LUAPOWER_PLATFORM/clib/?.so;" export LUA_BIN="$(pwd)/luapower/bin/$LUAPOWER_PLATFORM/luajit-bin" ./tests_framework/lua/bin/busted.$LUAPOWER_PLATFORM.cmd tests/. ARG[1] tests/. /home/souz9/cyberok/soldr-modules/luapower/bin/linux64/luajit-bin: ...erok/soldr-modules/tests_framework/lua/busted/runner.lua:25: module 'busted.modules.luacov' not found: no field package.preload['busted.modules.luacov'] no file '/home/souz9/cyberok/soldr-modules/tests_framework/lua/busted/modules/luacov.lua' no file '/home/souz9/cyberok/soldr-modules/tests_framework/lua/busted/modules/luacov/init.lua' no file '/home/souz9/cyberok/soldr-modules/luapower/busted/modules/luacov.lua' no file '/home/souz9/cyberok/soldr-modules/luapower/busted/modules/luacov/init.lua' no file '/home/souz9/cyberok/soldr-modules/utils/busted/modules/luacov.lua' no file '/home/souz9/cyberok/soldr-modules/utils/busted/modules/luacov/init.lua' no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/libbusted/modules/luacov.dylib' no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/clib/busted/modules/luacov.so' no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/libbusted.dylib' no file '/home/souz9/cyberok/soldr-modules/luapower/bin/linux64/clib/busted.so' stack traceback: [C]: in function 'require' ...erok/soldr-modules/tests_framework/lua/busted/runner.lua:25: in function <...erok/soldr-modules/tests_framework/lua/busted/runner.lua:11> ...cyberok/soldr-modules/tests_framework/lua/bin/busted.lua:12: in main chunk [C]: at 0x56075317f2f0 ``` ### Screenshots, screen recording, code snippet _No response_ ### Environment information ``` $ uname -a Linux magicbook 6.0.12-artix1-1 #1 SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 22:58:17 +0000 x86_64 GNU/Linux ``` ### Which agent binary used? - [ ] darwin-amd64 - [ ] linux-386 - [ ] linux-amd64 - [ ] windows-386 - [ ] windows-amd64
yindo added the bug label 2026-06-06 22:10:39 -04:00
yindo closed this issue 2026-06-06 22:10:39 -04:00
Author
Owner

@souryogurt commented on GitHub (Dec 29, 2022):

The same thing happens on my system as well. An included busted exits with the exact same message. I managed to run tests temporarily using busted installed using luarocks.

<!-- gh-comment-id:1367257399 --> @souryogurt commented on GitHub (Dec 29, 2022): The same thing happens on my system as well. An included `busted` exits with the exact same message. I managed to run tests temporarily using busted installed using `luarocks`.
Author
Owner

@0legovich commented on GitHub (Dec 29, 2022):

I have a similar problem.

<!-- gh-comment-id:1367373025 --> @0legovich commented on GitHub (Dec 29, 2022): I have a similar problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vxcontrol/soldr-modules#16