2024-05-03 15:28:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-06-27 06:03:32 +00:00
|
|
|
# Copyright The Mbed TLS Contributors
|
|
|
|
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
|
|
|
2024-05-03 15:28:04 +00:00
|
|
|
# This is a simple bash script that tests psa_client/psa_server interaction.
|
|
|
|
# This script is automatically executed when "make run" is launched by the
|
|
|
|
# "psasim" root folder. The script can also be launched manually once
|
|
|
|
# binary files are built (i.e. after "make test" is executed from the "psasim"
|
|
|
|
# root folder).
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2024-05-09 10:20:40 +00:00
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
2024-06-24 11:13:17 +00:00
|
|
|
CLIENT_BIN=$1
|
|
|
|
shift
|
|
|
|
|
2024-08-05 13:57:43 +00:00
|
|
|
./kill_servers.sh
|
2024-06-27 06:03:32 +00:00
|
|
|
|
|
|
|
./start_server.sh
|
2024-06-24 11:13:17 +00:00
|
|
|
./$CLIENT_BIN "$@"
|
|
|
|
|
2024-08-05 13:57:43 +00:00
|
|
|
./kill_servers.sh
|