Skip to content

Commit

Permalink
native-sim
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Gielniewski <[email protected]>
  • Loading branch information
adigie committed Feb 20, 2025
1 parent 56bcd9c commit e121d20
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
run: |
scripts/run_in_build_env.sh 'pip3 install -r scripts/setup/requirements.nrfconnect.txt'
scripts/run_in_build_env.sh "./scripts/tools/nrfconnect/tests/test_generate_factory_data.py"
- name: Run unit tests for Zephyr native_posix_64 platform
- name: Run unit tests for Zephyr native_sim/posix/64 platform
if: github.event_name == 'push' || steps.changed_paths.outputs.tests == 'true' || steps.changed_paths.outputs.nrfconnect == 'true'
run: |
scripts/run_in_build_env.sh "./scripts/build/build_examples.py --target nrf-native-posix-64-tests build"
Expand Down
4 changes: 2 additions & 2 deletions config/nrfconnect/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ if (CONFIG_CHIP_CRYPTO_PSA)
matter_add_gn_arg_bool ("chip_crypto_psa_spake2p" CONFIG_PSA_WANT_ALG_SPAKE2P_MATTER)
endif()

if (BOARD STREQUAL "native_posix")
if (BOARD STREQUAL "native_sim")
matter_add_gn_arg_string("target_cpu" "x86")
elseif (BOARD STREQUAL "native_posix/native/64")
elseif (BOARD STREQUAL "native_sim/native/64")
matter_add_gn_arg_string("target_cpu" "x64")
endif()

Expand Down
4 changes: 2 additions & 2 deletions config/nxp/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ else()
endif()


# if (BOARD STREQUAL "native_posix")
# if (BOARD STREQUAL "native_sim")
# matter_add_gn_arg_string("target_cpu" "x86")
# elseif (BOARD STREQUAL "native_posix/native/64")
# elseif (BOARD STREQUAL "native_sim/native/64")
# matter_add_gn_arg_string("target_cpu" "x64")
# endif()

Expand Down
4 changes: 2 additions & 2 deletions config/zephyr/chip-module/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ if(CONFIG_CHIP)
matter_add_gn_arg_bool("chip_inet_config_enable_tcp_endpoint" FALSE)
matter_add_gn_arg_bool("chip_enable_read_client" CONFIG_CHIP_ENABLE_READ_CLIENT)

if(BOARD STREQUAL "native_posix")
if(BOARD STREQUAL "native_sim")
matter_add_gn_arg_string("target_cpu" "x86")
elseif(BOARD STREQUAL "native_posix/native/64")
elseif(BOARD STREQUAL "native_sim/native/64")
matter_add_gn_arg_string("target_cpu" "x64")
endif()

Expand Down
2 changes: 1 addition & 1 deletion scripts/build/builders/nrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def GnArgName(self):
elif self == NrfBoard.NRF5340DK:
return 'nrf5340dk_nrf5340_cpuapp'
elif self == NrfBoard.NATIVE_POSIX_64:
return 'native_posix/native/64'
return 'native_sim/native/64'
else:
raise Exception('Unknown board type: %r' % self)

Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/AppTestContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void AppContext::TearDownTestSuite()
// This can particularly be a problem when this unprocessed work involves reporting engine runs,
// since those can take a while and cause later tests to not reach their queued work before
// their timeouts hit. This is only an issue in setups where all unit tests are compiled into
// a single file (e.g. nRF CI (Zephyr native_posix)).
// a single file (e.g. nRF CI (Zephyr native_sim)).
//
// Work around this issue by doing a DrainAndServiceIO() here to attempt to flush out any queued-up work.
//
Expand Down
6 changes: 3 additions & 3 deletions src/test_driver/nrfconnect/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
# @file
# CMake project for building and running selected CHIP unit tests using
# 'nrfconnect' platform integration layer in CHIP and Zephyr
# 'native_posix[/native/64]' platforms. Note that certain design decisions behind
# the native_posix platforms make them inapplicable for some unit tests,
# 'native_sim[/native/64]' platforms. Note that certain design decisions behind
# the native_sim platforms make them inapplicable for some unit tests,
# hence only a subset of CHIP unit tests is listed in the project.
# See: https://docs.zephyrproject.org/1.12.0/boards/posix/native_posix/doc/board.html
# See: https://docs.zephyrproject.org/4.0.0/boards/native/native_sim/doc/index.html
# for more details.
#

Expand Down

0 comments on commit e121d20

Please sign in to comment.