mirror of
				https://git.haproxy.org/git/haproxy.git/
				synced 2025-10-29 23:51:01 +01:00 
			
		
		
		
	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.
		
			
				
	
	
		
			20 lines
		
	
	
		
			228 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			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
 |