1#!/usr/bin/env bash 2# Copyright 2021 Nordic Semiconductor 3# SPDX-License-Identifier: Apache-2.0 4 5source $(dirname "${BASH_SOURCE[0]}")/../../_mesh_test.sh 6 7# Note: 8# Tests must be added in pairs and in sequence. 9# First test: saves data; second test: verifies it. 10 11# Provision, configure and reset a device 12overlay=overlay_pst_conf 13RunTest mesh_pst_repr persistence_reprovisioning_device \ 14 -flash=../results/mesh_pst_repr/flash.bin -flash_erase \ 15 persistence_reprovisioning_provisioner 16 17# Repeat the test 18overlay=overlay_pst_conf 19RunTest mesh_pst_repr persistence_reprovisioning_device \ 20 -flash=../results/mesh_pst_repr/flash.bin -flash_rm \ 21 persistence_reprovisioning_provisioner 22 23overlay="overlay_pst_conf_overlay_psa_conf" 24RunTest mesh_pst_repr_psa persistence_reprovisioning_device \ 25 -flash=../results/mesh_pst_repr_psa/flash.bin -flash_erase \ 26 persistence_reprovisioning_provisioner 27 28overlay="overlay_pst_conf_overlay_psa_conf" 29RunTest mesh_pst_repr_psa persistence_reprovisioning_device \ 30 -flash=../results/mesh_pst_repr_psa/flash.bin -flash_rm \ 31 persistence_reprovisioning_provisioner 32