mirror of
https://github.com/omar-polo/gmid.git
synced 2024-09-28 13:31:48 +02:00
use REGRESS_HOST to specify the host to listen to; use in CI
some CI envs don't like `listen on localhost' but tolerate INADDR_ANY or IN6ADDR_ANY_INIT.
This commit is contained in:
parent
a7a998ac9b
commit
5a34572282
@ -5,7 +5,7 @@ linux_amd64_task:
|
|||||||
- apk add alpine-sdk linux-headers bison libretls-dev libevent-dev
|
- apk add alpine-sdk linux-headers bison libretls-dev libevent-dev
|
||||||
- ./configure CFLAGS='-O2 -pipe -Wno-deprecated-declarations' -Werror
|
- ./configure CFLAGS='-O2 -pipe -Wno-deprecated-declarations' -Werror
|
||||||
- make
|
- make
|
||||||
- make regress
|
- make regress REGRESS_HOST="*"
|
||||||
|
|
||||||
linux_arm_task:
|
linux_arm_task:
|
||||||
arm_container:
|
arm_container:
|
||||||
@ -14,7 +14,7 @@ linux_arm_task:
|
|||||||
- apk add alpine-sdk linux-headers bison libretls-dev libevent-dev
|
- apk add alpine-sdk linux-headers bison libretls-dev libevent-dev
|
||||||
- ./configure CFLAGS='-O2 -pipe -Wno-deprecated-declarations' -Werror
|
- ./configure CFLAGS='-O2 -pipe -Wno-deprecated-declarations' -Werror
|
||||||
- make
|
- make
|
||||||
- make regress
|
- make regress REGRESS_HOST="*"
|
||||||
|
|
||||||
freebsd_13_task:
|
freebsd_13_task:
|
||||||
freebsd_instance:
|
freebsd_instance:
|
||||||
|
3
Makefile
3
Makefile
@ -18,6 +18,9 @@
|
|||||||
# all.
|
# all.
|
||||||
TESTS=
|
TESTS=
|
||||||
|
|
||||||
|
# host to bind to during regress
|
||||||
|
REGRESS_HOST = localhost
|
||||||
|
|
||||||
# -- build-related variables --
|
# -- build-related variables --
|
||||||
|
|
||||||
COBJS = ${COMPATS:.c=.o}
|
COBJS = ${COMPATS:.c=.o}
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
# all.
|
# all.
|
||||||
TESTS=
|
TESTS=
|
||||||
|
|
||||||
|
# host to bind to during regress
|
||||||
|
REGRESS_HOST = localhost
|
||||||
|
|
||||||
DISTFILES = Makefile \
|
DISTFILES = Makefile \
|
||||||
env \
|
env \
|
||||||
err \
|
err \
|
||||||
@ -34,7 +37,7 @@ IRI_OBJS = ${IRI_SRCS:.c=.o} ${REG_COMPATS}
|
|||||||
.PHONY: all data clean dist
|
.PHONY: all data clean dist
|
||||||
|
|
||||||
all: data puny-test iri_test fcgi-test
|
all: data puny-test iri_test fcgi-test
|
||||||
./regress ${TESTS}
|
env REGRESS_HOST="${REGRESS_HOST}" ./regress ${TESTS}
|
||||||
|
|
||||||
data: testdata cert.pem testca.pem valid.crt invalid.cert.pem
|
data: testdata cert.pem testca.pem valid.crt invalid.cert.pem
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ server "localhost" {
|
|||||||
cert "$PWD/cert.pem"
|
cert "$PWD/cert.pem"
|
||||||
key "$PWD/key.pem"
|
key "$PWD/key.pem"
|
||||||
root "$PWD/testdata"
|
root "$PWD/testdata"
|
||||||
listen on localhost port $port
|
listen on $REGRESS_HOST port $port
|
||||||
$2
|
$2
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
@ -77,7 +77,7 @@ set_proxy() {
|
|||||||
server "localhost.local" {
|
server "localhost.local" {
|
||||||
cert "$PWD/cert.pem"
|
cert "$PWD/cert.pem"
|
||||||
key "$PWD/key.pem"
|
key "$PWD/key.pem"
|
||||||
listen on localhost port $port
|
listen on $REGRESS_HOST port $port
|
||||||
proxy {
|
proxy {
|
||||||
relay-to localhost port $port
|
relay-to localhost port $port
|
||||||
$1
|
$1
|
||||||
|
@ -245,7 +245,7 @@ server "localhost" {
|
|||||||
cert \$pwd "/cert.pem"
|
cert \$pwd "/cert.pem"
|
||||||
key \$pwd "/key.pem"
|
key \$pwd "/key.pem"
|
||||||
root \$pwd "/testdata"
|
root \$pwd "/testdata"
|
||||||
listen on localhost port $port
|
listen on $REGRESS_HOST port $port
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user