1#!/bin/sh
2#
3# Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.
4#
5# Licensed under the Apache License 2.0 (the "License").  You may not use
6# this file except in compliance with the License.  You can obtain a copy
7# in the file LICENSE in the source distribution or at
8# https://www.openssl.org/source/license.html
9
10#
11# Run the quiche server
12#
13set -e
14
15SRCTOP="$(cd $SRCTOP; pwd)"
16BLDTOP="$(cd $BLDTOP; pwd)"
17
18echo "------------------------------------------------------------------"
19echo "Running Cloudflare quiche-server"
20echo "------------------------------------------------------------------"
21
22QUICHE_TARGET_PATH="$BLDTOP/quiche"
23test -d "$QUICHE_TARGET_PATH" || exit 1
24
25"$QUICHE_TARGET_PATH/debug/quiche-server" --cert "$SRCTOP/test/certs/servercert.pem" \
26    --key "$SRCTOP/test/certs/serverkey.pem" --disable-gso \
27    --http-version HTTP/0.9 --root "$SRCTOP" --no-grease --disable-hystart &
28
29echo $! >server.pid
30