You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to run unit tests using the nrf-docker project.
Here, I'm trying to run the NRF Unity tests sample
// Fetch and Build the nrfDocker image
- git clone https://github.com/NordicPlayground/nrf-docker
- cd nrf-docker
- docker build -t nrfconnect-sdk --build-arg sdk_nrf_version=v2.5.0 .
- cd ..
// Trigger the NRF build
- docker run --rm
-v ${PWD}:/workdir/project
-w /workdir/nrf/tests/unity/example_test
nrfconnect-sdk
west build -b native_posix -t run --build-dir /workdir/project/build
However, when I try to run this, I get an error saying "unable to find Ruby"
Here's the full output:
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /workdir/nrf/tests/unity/example_test
-- CMake version: 3.21.0
-- Using NCS Toolchain 2.6.20240304.188451165982 for building. (/root/ncs/toolchains/2be090971e/cmake)
-- Found Python3: /root/ncs/toolchains/2be090971e/usr/local/bin/python3 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /workdir/zephyr/.cache
-- Zephyr version: 3.5.99 (/workdir/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: native_posix
-- Found host-tools: zephyr 0.16.5 (/root/ncs/toolchains/2be090971e/opt/zephyr-sdk)
-- Found toolchain: host (gcc/ld)
-- Found Dtc: /root/ncs/toolchains/2be090971e/usr/local/bin/dtc (found suitable version "1.5.0", minimum required is "1.4.6")
-- Found BOARD.dts: /workdir/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /workdir/project/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /workdir/project/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /workdir/project/build/zephyr/dts.cmake
Parsing /workdir/nrf/tests/unity/example_test/Kconfig
Loaded configuration '/workdir/zephyr/boards/posix/native_posix/native_posix_defconfig'
Merged configuration '/workdir/nrf/tests/unity/example_test/prj.conf'
Configuration saved to '/workdir/project/build/zephyr/.config'
Kconfig header saved to '/workdir/project/build/zephyr/include/generated/autoconf.h'
-- Found GnuLd: /usr/bin/ld.bfd (found version "2.38")
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is unknown
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/gcc
CMake Error at /workdir/nrf/tests/unity/CMakeLists.txt:54 (message):
Unable to find ruby
-- Configuring incomplete, errors occurred!
See also "/workdir/project/build/CMakeFiles/CMakeOutput.log".
See also "/workdir/project/build/CMakeFiles/CMakeError.log".
FATAL ERROR: command exited with status 1: /root/ncs/toolchains/2be090971e/usr/local/bin/cmake -DWEST_PYTHON=/root/ncs/toolchains/2be090971e/usr/local/bin/python3.9 -B/workdir/project/build -GNinja -DBOARD=native_posix -S/workdir/nrf/tests/unity/example_test
Error: Launched process exited with non-zero status: 1
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to run unit tests using the nrf-docker project.
Here, I'm trying to run the NRF Unity tests sample
However, when I try to run this, I get an error saying "unable to find Ruby"
Here's the full output:
The text was updated successfully, but these errors were encountered: