diff options
Diffstat (limited to '')
-rwxr-xr-x | tests/renegotiation_test.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/renegotiation_test.sh b/tests/renegotiation_test.sh new file mode 100755 index 0000000..8d963a2 --- /dev/null +++ b/tests/renegotiation_test.sh | |||
@@ -0,0 +1,30 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # Copyright (c) 2025 Theo Buehler | ||
4 | # | ||
5 | # Permission to use, copy, modify, and distribute this software for any | ||
6 | # purpose with or without fee is hereby granted, provided that the above | ||
7 | # copyright notice and this permission notice appear in all copies. | ||
8 | # | ||
9 | # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | |||
17 | set -e | ||
18 | |||
19 | renegotiation_test_bin=./renegotiation_test | ||
20 | if [ -e ./renegotiation_test.exe ]; then | ||
21 | renegotiation_test_bin=./renegotiation_test.exe | ||
22 | elif [ -e ./renegotiation_test.js ]; then | ||
23 | renegotiation_test_bin="node ./renegotiation_test.js" | ||
24 | fi | ||
25 | |||
26 | if [ -z $srcdir ]; then | ||
27 | srcdir=. | ||
28 | fi | ||
29 | |||
30 | $renegotiation_test_bin $srcdir/server1-rsa.pem $srcdir/server1-rsa-chain.pem $srcdir/ca-root-rsa.pem | ||