1#!/usr/bin/env bash
2# Copyright 2023 Nordic Semiconductor
3# SPDX-License-Identifier: Apache-2.0
4
5source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
6
7# Test that periodic publication is stopped when suspending Mesh and disabling
8# Bluetooth, and that it is started again when Bluetooth is re-enabled and Mesh is resumed.
9# The test will fail under two conditions; if no publication is received while
10# Mesh is enabled, or if a publication is received while Mesh is suspended.
11#
12# Test procedure:
13# 0. Provisioning and setup.
14# 1. Start publication.
15# 2. Suspend Mesh and disable Bluetooth, checking that publication stops.
16# 3. Enable Bluetooth and resume Mesh a specified time after suspension.
17#   Check that publication resumes.
18
19RunTest mesh_suspend_disable_resume \
20	suspend_dut_suspend_disable_resume suspend_tester_pub
21
22overlay=overlay_low_lat_conf
23RunTest mesh_suspend_disable_resume_low_lat \
24	suspend_dut_suspend_disable_resume suspend_tester_pub
25
26overlay=overlay_psa_conf
27RunTest mesh_suspend_disable_resume_psa \
28	suspend_dut_suspend_disable_resume suspend_tester_pub
29