Skip to content

Commit

Permalink
TESTS: test config check
Browse files Browse the repository at this point in the history
  • Loading branch information
wlallemand committed Mar 1, 2025
1 parent 401182c commit 9117189
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/unit/smoke/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/sh

check() {
${HAPROXY_PROGRAM} -vv | grep CFLAGS | grep -q "fsanitize=address"
}

run() {
${HAPROXY_PROGRAM} -dI -f ${ROOTDIR}/.github/h2spec.config -c
${HAPROXY_PROGRAM} -dI -f ${ROOTDIR}/examples/content-sw-sample.cfg -c
${HAPROXY_PROGRAM} -dI -f ${ROOTDIR}/examples/option-http_proxy.cfg -c
${HAPROXY_PROGRAM} -dI -f ${ROOTDIR}/examples/quick-test.cfg -c
${HAPROXY_PROGRAM} -dI -f ${ROOTDIR}/examples/transparent_proxy.cfg -c
}

case "$1" in
"check")
check
;;
"run")
run
;;
esac

0 comments on commit 9117189

Please sign in to comment.