blob: fcc8a97e9c49baf945d4bd735018577a60310de8 [file] [log] [blame]
Valerio Settif67ded32024-06-27 08:03:32 +02001#!/bin/bash
2
3# Copyright The Mbed TLS Contributors
4# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
5
6set -e
7
8# The server creates some local files when it starts up so we can wait for this
9# event as signal that the server is ready so that we can start client(s).
10function wait_for_server_startup() {
11 while [ $(find . -name "psa_notify_*" | wc -l) -eq 0 ]; do
12 sleep 0.1
13 done
14}
15
16$(dirname "$0")/kill_server.sh
17
18$(dirname "$0")/psa_server &
19wait_for_server_startup