mirror of
https://github.com/omar-polo/gmid.git
synced 2024-07-14 17:49:19 +02:00
regress: rename ipv4 test and add another with ipv6
This commit is contained in:
parent
b00f71ba97
commit
5b549c2805
@ -62,7 +62,8 @@ run_test test_proxy_with_certs
|
|||||||
# run_test test_unknown_host # XXX: breaks on some distro
|
# run_test test_unknown_host # XXX: breaks on some distro
|
||||||
run_test test_include_mime
|
run_test test_include_mime
|
||||||
run_test test_log_file
|
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 test that uses only a TLSv1.2 or TLSv1.3
|
||||||
# TODO: add a test that attempt to serve a non-regular file
|
# TODO: add a test that attempt to serve a non-regular file
|
||||||
|
@ -431,7 +431,7 @@ log style legacy'
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
test_ip_addr() {
|
test_ipv4_addr() {
|
||||||
server_name="*"
|
server_name="*"
|
||||||
host="127.0.0.1"
|
host="127.0.0.1"
|
||||||
gghost=127.0.0.1
|
gghost=127.0.0.1
|
||||||
@ -441,3 +441,14 @@ test_ip_addr() {
|
|||||||
fetch /
|
fetch /
|
||||||
check_reply "20 text/gemini" "# hello world" || return 1
|
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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user