From 6a9ebb2fe80ab5d5e37c3efa9a90826539df8d1b Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 20 May 2023 12:07:21 +0000 Subject: [PATCH] Add a slow regress target that runs openssl speed with proper alignment and with an unaligned offset. Let's see if all ciphers on our strict alignment arches can deal with this. --- regress/usr.bin/openssl/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/regress/usr.bin/openssl/Makefile b/regress/usr.bin/openssl/Makefile index d41b65a3f43..8cdaac01acf 100644 --- a/regress/usr.bin/openssl/Makefile +++ b/regress/usr.bin/openssl/Makefile @@ -1,11 +1,12 @@ -# $OpenBSD: Makefile,v 1.7 2021/02/16 21:39:17 jan Exp $ +# $OpenBSD: Makefile,v 1.8 2023/05/20 12:07:21 tb Exp $ SUBDIR= options x509 CLEANFILES+= testdsa.key testdsa.pem rsakey.pem rsacert.pem dsa512.pem CLEANFILES+= appstest_dir -REGRESS_TARGETS=ssl-enc ssl-dsa ssl-rsa appstest +REGRESS_TARGETS=ssl-enc ssl-dsa ssl-rsa appstest speed +REGRESS_SLOW_TARGETS=speed OPENSSL=/usr/bin/openssl CLEAR1=p @@ -59,6 +60,10 @@ ssl-rsa: env OPENSSL=${OPENSSL} sh ${.CURDIR}/testrsa.sh ${.OBJDIR} ${.CURDIR} appstest: env OPENSSL=${OPENSSL} sh ${.CURDIR}/appstest.sh -q +speed: +.for offset in 0 3 + ${OPENSSL} speed -unaligned ${offset} +.endfor clean: rm -rf ${CLEANFILES} -- 2.20.1