From 1697cd821e696832d66f3079e8ad950d2bb0cd05 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 30 Nov 2022 10:47:05 +0000 Subject: [PATCH] Resurrect the libkeynote testsuite This was part of the lib/libkeynote/Makefile.in r1.12 removed in 2004 by msf. It would have caught the bug fixed by markus and bluhm in lib/libkeynote/signature.c r1.30. --- regress/lib/libkeynote/Makefile | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 regress/lib/libkeynote/Makefile diff --git a/regress/lib/libkeynote/Makefile b/regress/lib/libkeynote/Makefile new file mode 100644 index 00000000000..4bb53d3b79b --- /dev/null +++ b/regress/lib/libkeynote/Makefile @@ -0,0 +1,43 @@ +# $OpenBSD: Makefile,v 1.1 2022/11/30 10:47:05 tb Exp $ + +# The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) +# +# This code was written by Angelos D. Keromytis in Philadelphia, PA, USA, +# in April-May 1998 +# +# Copyright (C) 1998, 1999 by Angelos D. Keromytis. +# +# Permission to use, copy, and modify this software with or without fee +# is hereby granted, provided that this entire notice is included in +# all copies of any software which is or includes a copy or +# modification of this software. +# +# THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR +# IMPLIED WARRANTY. IN PARTICULAR, THE AUTHORS MAKES NO +# REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE +# MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR +# PURPOSE. + +REGRESS_TARGETS += test-libkeynote + +KEYNOTEDIR = ${.CURDIR}/../../../lib/libkeynote + +test-libkeynote: + cd ${KEYNOTEDIR} && \ + keynote verify -e testsuite/test-env \ + -r false,maybe,probably,true \ + -k testsuite/auth1 \ + -k testsuite/auth2 \ + -k testsuite/auth3 \ + -k testsuite/auth4 \ + -l testsuite/test-assertion1 \ + -l testsuite/test-assertion2 \ + -l testsuite/test-assertion3 \ + -l testsuite/test-assertion4 \ + -l testsuite/test-assertion5 \ + -l testsuite/test-assertion6 \ + -l testsuite/test-assertion7 \ + | grep 'Query result = true' + @echo SUCCESS + +.include -- 2.20.1