blob: f54e352532004fc156a19ef271566565cde13a32 [file] [log] [blame]
Valerio Setti4f4ade92024-05-03 17:28:04 +02001#!/bin/bash
2
Valerio Settif67ded32024-06-27 08:03:32 +02003# Copyright The Mbed TLS Contributors
4# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
5
Valerio Setti4f4ade92024-05-03 17:28:04 +02006# This is a simple bash script that tests psa_client/psa_server interaction.
7# This script is automatically executed when "make run" is launched by the
8# "psasim" root folder. The script can also be launched manually once
9# binary files are built (i.e. after "make test" is executed from the "psasim"
10# root folder).
Valerio Setti4f4ade92024-05-03 17:28:04 +020011
12set -e
13
Valerio Setti655b9792024-05-09 12:20:40 +020014cd "$(dirname "$0")"
15
Valerio Setti5beb2362024-06-24 13:13:17 +020016CLIENT_BIN=$1
17shift
18
Valerio Setti2016d662024-08-05 15:57:43 +020019./kill_servers.sh
Valerio Setti4f4ade92024-05-03 17:28:04 +020020
Valerio Settif67ded32024-06-27 08:03:32 +020021./start_server.sh
Valerio Setti5beb2362024-06-24 13:13:17 +020022./$CLIENT_BIN "$@"
23
Valerio Setti2016d662024-08-05 15:57:43 +020024./kill_servers.sh