1#!/usr/bin/env bash
2# Copyright 2024 Nordic Semiconductor
3# SPDX-License-Identifier: Apache-2.0
4
5source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh
6
7# Test verifies that subnet bridge states are restored correctly after reboot
8#
9# Test procedure:
10# 1. Tester configures itself and creates subnets equal to number of non-bridge nodes.
11# 2. Tester provisions and configures Subnet Bridge node to bridge the subnets.
12# 3. Devices reboot
13# 4. Tester retrieves and verifies configuration of the Subnet Bridge node
14
15overlay=overlay_pst_conf
16RunTestFlash mesh_brg_persistence \
17	brg_tester_persistence -flash_erase brg_bridge_simple -flash_erase
18
19overlay=overlay_pst_conf
20RunTestFlash mesh_brg_persistence \
21	brg_tester_persistence brg_bridge_simple
22
23# The same test but with PSA crypto
24overlay="overlay_pst_conf_overlay_psa_conf"
25RunTestFlash mesh_brg_persistence_psa \
26	brg_tester_persistence -flash_erase brg_bridge_simple -flash_erase
27
28overlay="overlay_pst_conf_overlay_psa_conf"
29RunTestFlash mesh_brg_persistence_psa \
30	brg_tester_persistence brg_bridge_simple
31