Amaury Denoyelle c20c71a079 TESTS: quic: add unit-tests for QUIC TX part
Define a new "quic_tx" unit-test which is used to test QUIC TX module.
For the moment, a single test is performed on qc_do_build_pkt(). It
checks that PADDING is correctly added for HP sampling in case of a
small packet.
2025-09-08 14:49:03 +02:00

20 lines
228 B
Bash
Executable File

#!/bin/sh
check() {
${HAPROXY_PROGRAM} -vv | grep -E '^Unit tests list :' | grep -q "quic"
}
run() {
${HAPROXY_PROGRAM} -U quic_enc
${HAPROXY_PROGRAM} -U quic_tx
}
case "$1" in
"check")
check
;;
"run")
run
;;
esac