1# $OpenBSD: Makefile,v 1.2 2020/05/23 17:33:51 tb Exp $ 2 3.if !exists(/usr/local/share/tlsfuzzer) 4regress: 5 @echo package py3-tlsfuzzer is required for this regress 6 @echo SKIPPED 7.else 8 9REGRESS_TARGETS=regress-tlsfuzzer 10 11localhost.key localhost.crt: 12 openssl req -x509 -newkey rsa -keyout localhost.key -out localhost.crt \ 13 -subj /CN=localhost -nodes -batch 14 15certs: localhost.key localhost.crt 16 17CLEANFILES += localhost.key localhost.crt 18 19PORT ?= 4433 20SLOW = -s 21TIMING = # -t 22VERBOSE = # -v 23 24regress-tlsfuzzer: certs 25 python3 ${.CURDIR}/tlsfuzzer.py ${SLOW} ${TIMING} ${VERBOSE} 26 27failing: certs 28 python3 ${.CURDIR}/tlsfuzzer.py -f ${SLOW} ${TIMING} ${VERBOSE} 29 30 31port: certs 32 python3 ${.CURDIR}/tlsfuzzer.py ${SLOW} ${TIMING} ${VERBOSE} -p ${PORT} 33 34list: 35 @python3 ${.CURDIR}/tlsfuzzer.py -l 36 37list-failing: 38 @python3 ${.CURDIR}/tlsfuzzer.py -l -f 39 40missing: 41 @python3 ${.CURDIR}/tlsfuzzer.py -m 42 43.PHONY: all certs failing list list-failing missing port 44 45.endif 46 47.include <bsd.regress.mk> 48