asyncioproxy-ticket
Last change
on this file since 63e4efe was
05984a0,
checked in by Fiona Klute <fiona.klute@…>, 13 months ago
|
Replace "runtests" with "runtest.py"
This is the next step from handling HTTP requests and responses in
Python. In particular error handling is a lot easier to do in Python
than using Bash trap functions.
|
-
Property mode set to
100755
|
File size:
642 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | # Parse TEST_IP into an array |
---|
4 | declare -a addrs=(${TEST_IP}) |
---|
5 | if [ ${#addrs[@]} -lt 2 ]; then |
---|
6 | echo "This test needs two or more IP addresses in TEST_IP," \ |
---|
7 | "check ./configure options!" |
---|
8 | exit 77 |
---|
9 | fi |
---|
10 | |
---|
11 | # The two virtual hosts have different IPs, so we can check if |
---|
12 | # selection without SNI works correctly. The request will go to the |
---|
13 | # second one. |
---|
14 | export VHOST1_IP="${addrs[0]}" |
---|
15 | export VHOST2_IP="${addrs[1]}" |
---|
16 | |
---|
17 | # gnutls-cli expects IPv6 addresses without enclosing brackets, remove |
---|
18 | # them |
---|
19 | TARGET_IP="${VHOST2_IP#\[}" |
---|
20 | TARGET_IP="${TARGET_IP%\]}" |
---|
21 | export TARGET_IP |
---|
22 | |
---|
23 | . ${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 30 |
---|
Note: See
TracBrowser
for help on using the repository browser.