mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-29 09:21:19 +00:00
7262b47d79
Start a server in tf-psa-crypto/tests in addition to tests to be able to run test suites from tf-psa-crypto/tests. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
18 lines
456 B
Bash
Executable File
18 lines
456 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright The Mbed TLS Contributors
|
|
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
|
|
set -e
|
|
|
|
# The server creates some local files when it starts up so we can wait for this
|
|
# event as signal that the server is ready so that we can start client(s).
|
|
function wait_for_server_startup() {
|
|
while [ $(find . -name "psa_notify_*" | wc -l) -eq 0 ]; do
|
|
sleep 0.1
|
|
done
|
|
}
|
|
|
|
$(dirname "$0")/psa_server &
|
|
wait_for_server_startup
|