• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2#
3# run from the build dir
4
5echo
6echo "----------------------------------------------"
7echo "-------   tests: h2load"
8echo
9
10PW=`pwd`
11
12cd ../minimal-examples/http-server/minimal-http-server-tls
13$PW/bin/lws-minimal-http-server-tls &
14R=$!
15sleep 0.5s
16
17# check h1 with various loads
18
19h2load -n 10000 -c 1 --h1 https://127.0.0.1:7681
20if [ $? -ne 0 ] ; then
21	Q=$?
22	kill $R
23	wait $R
24	exit $Q
25fi
26h2load -n 10000 -c 10 --h1 https://127.0.0.1:7681
27if [ $? -ne 0 ] ; then
28	Q=$?
29	kill $R
30	wait $R
31	exit $Q
32fi
33h2load -n 100000 -c 100 --h1 https://127.0.0.1:7681
34if [ $? -ne 0 ] ; then
35	Q=$?
36	kill $R
37	wait $R
38	exit $Q
39fi
40
41# check h2 with various loads
42
43h2load -n 10000 -c 1 https://127.0.0.1:7681
44if [ $? -ne 0 ] ; then
45	Q=$?
46	kill $R
47	wait $R
48	exit $Q
49fi
50h2load -n 10000 -c 10 https://127.0.0.1:7681
51if [ $? -ne 0 ] ; then
52	Q=$?
53	kill $R
54	wait $R
55	exit $Q
56fi
57h2load -n 100000 -c 100 https://127.0.0.1:7681
58Q=$?
59
60kill $R
61wait $R
62exit $Q
63
64