blob: 2b1c5fd639556d63bbe1e04a081b9c7385e807e0 [file] [log] [blame]
#!/usr/bin/env bash
# Copyright 2022 Nordic Semiconductor
# SPDX-License-Identifier: Apache-2.0
source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
# Check that disabling LPN gives correct behaviour.
#
# In this test the lpn node will enable the lpn feature, and then immediately
# disables it again. Then we check that that the lpn node is actually in a
# disabled state. This test ensures that a lpn disable call is not overwritten
# by a subsequent lpn enable call, since the enable call is associated with
# internal callback structures that might produce incorrect internal state
# of the LPN module
RunTest mesh_lpn_disable_check \
friendship_friend_no_est \
friendship_lpn_disable
conf=prj_mesh1d1_conf
RunTest mesh_lpn_disable_check_1d1 \
friendship_friend_no_est \
friendship_lpn_disable