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 that it
8# is started again when Mesh is resumed. The test will fail under two
9# conditions; if no publication is received while Mesh is enabled,
10# 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, checking that publication stops.
16# 3. Resume Mesh a specified time after suspension. Check that publication resumes.
17
18RunTest mesh_suspend_resume \
19	suspend_dut_suspend_resume suspend_tester_pub
20
21overlay=overlay_low_lat_conf
22RunTest mesh_suspend_resume_low_lat \
23	suspend_dut_suspend_resume suspend_tester_pub
24
25overlay=overlay_psa_conf
26RunTest mesh_suspend_resume_psa \
27	suspend_dut_suspend_resume suspend_tester_pub
28