mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 07:07:04 +02:00
TESTS: add config smoke checks in the unit tests
vtest.yml contains some config checks that are used to check the memleaks. This patch adds a unit test which runs the same tests.
This commit is contained in:
parent
7a2a613132
commit
8a6b0b06cd
22
tests/unit/smoke/test.sh
Executable file
22
tests/unit/smoke/test.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user