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 Opcode aggregator server and client can coexist on the same device.
8# In this test scenario, the DUT has a sequence in progress on the Opcode
9# Aggregator client model that is interrupted by an incoming sequence to the Opcode
10# Aggregator server model. The test verifies that both the incoming and outgoing
11# sequence on the DUT completes successfully.
12#
13# Test procedure:
14# 1. Both Tester and DUT device initialize both Opcode aggregator server and client.
15#    Both devices starts an Opcode aggregator sequence and populates the buffer.
16# 2. The Tester device immediately starts sending the sequence.
17# 3. The DUT device waits, and verifies that the sequence is correctly received.
18#    Then it starts sending its own aggregated sequence.
19# 4. The Tester device confirms that it received all status messages related to its
20#    own aggregated sequence from the DUT device, then it verifies that the
21#    aggregated sequence from the DUT device is correctly received.
22# 5. Finally, the DUT device waits and confirms that it received all status messages
23#    related to its own aggregated sequence from the cli device.
24RunTest mesh_op_agg_model_coex \
25	op_agg_tester_model_coex op_agg_dut_model_coex
26
27overlay=overlay_psa_conf
28RunTest mesh_op_agg_model_coex \
29	op_agg_tester_model_coex op_agg_dut_model_coex
30