1#!/usr/bin/env bash
2# Copyright 2022 Nordic Semiconductor
3# SPDX-License-Identifier: Apache-2.0
4
5source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
6
7# Test that a maximum length SDU can be processed with SAR,
8# even with "stressed" transmitter and receiver configurations.
9# Test procedure:
10# 1. Initialize Client and Server instances.
11# 2. Bind "dummy" vendor model to both instances.
12# 3. Configure SAR transmitter and receiver states.
13# 4. The Client sends a Get-message with a maximum length SDU, targeting the server.
14# 5. The Server responds with a maximum length SDU Status-message.
15# 6. The test passes when the Client successfully receives the Status response.
16RunTest sar_test \
17	sar_cli_max_len_sdu_send sar_srv_max_len_sdu_receive
18
19overlay=overlay_psa_conf
20RunTest sar_test_psa \
21	sar_cli_max_len_sdu_send sar_srv_max_len_sdu_receive
22