Skip to content

Commit f8f7790

Browse files
committed
test: Add support for custom httpd flags to the testsuite
1 parent 831617d commit f8f7790

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/includes/common.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ run_test() {
2929
docker logs $httpd_cont > "logs/${2:-$1}-httpd.log" 2>&1
3030
docker cp ${httpd_cont}:/usr/local/apache2/logs/access_log "logs/${2:-$1}-httpd_access.log" 2> /dev/null || true
3131
fi
32+
3233
# Clean all after run
3334
httpd_remove > /dev/null 2>&1
3435
tomcat_all_remove > /dev/null 2>&1
@@ -54,7 +55,9 @@ httpd_create() {
5455
done
5556
cp -r ../native ../test /tmp/mod_proxy_cluster/
5657
mv /tmp/mod_proxy_cluster httpd/
57-
docker build -t $HTTPD_IMG httpd/
58+
docker build -t $HTTPD_IMG --build-arg CFLAGS="$MPC_CFLAGS" \
59+
--build-arg LDFLAGS="$MPC_LDFLAGS" \
60+
--build-arg HTTPD_EXTRA_FLAGS="$HTTPD_EXTRA_FLAGS" httpd/
5861
}
5962

6063
# Build and run httpd container

0 commit comments

Comments
 (0)