regress: rename ipv4 test and add another with ipv6

This commit is contained in:
Omar Polo 2024-05-29 08:56:10 +00:00
parent b00f71ba97
commit 5b549c2805
2 changed files with 14 additions and 2 deletions

View File

@ -62,7 +62,8 @@ run_test test_proxy_with_certs
# run_test test_unknown_host # XXX: breaks on some distro
run_test test_include_mime
run_test test_log_file
run_test test_ip_addr
run_test test_ip4_addr
run_test test_ip6_addr need_ipv6
# TODO: add test that uses only a TLSv1.2 or TLSv1.3
# TODO: add a test that attempt to serve a non-regular file

View File

@ -431,7 +431,7 @@ log style legacy'
return 0
}
test_ip_addr() {
test_ipv4_addr() {
server_name="*"
host="127.0.0.1"
gghost=127.0.0.1
@ -441,3 +441,14 @@ test_ip_addr() {
fetch /
check_reply "20 text/gemini" "# hello world" || return 1
}
test_ipv6_addr() {
server_name="*"
host="::1"
gghost="[::1]"
ggflags=-N
setup_simple_test
fetch /
check_reply "20 text/gemini" "# hello world" || return 1
}