Skip to content

Commit

Permalink
regress: rename ipv4 test and add another with ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-polo committed May 29, 2024
1 parent b00f71b commit 5b549c2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion regress/regress
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion regress/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

0 comments on commit 5b549c2

Please sign in to comment.