xref: /openbsd-src/regress/lib/libkeynote/Makefile (revision 0608765288263539fbe6560a229418e4bf340d78)
1#	$OpenBSD: Makefile,v 1.2 2022/12/01 12:13:59 bluhm Exp $
2
3# The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu)
4#
5# This code was written by Angelos D. Keromytis in Philadelphia, PA, USA,
6# in April-May 1998
7#
8# Copyright (C) 1998, 1999 by Angelos D. Keromytis.
9#
10# Permission to use, copy, and modify this software with or without fee
11# is hereby granted, provided that this entire notice is included in
12# all copies of any software which is or includes a copy or
13# modification of this software.
14#
15# THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR
16# IMPLIED WARRANTY. IN PARTICULAR, THE AUTHORS MAKES NO
17# REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE
18# MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR
19# PURPOSE.
20
21KEYNOTEDIR =	${.CURDIR}/../../../lib/libkeynote
22
23TESTFILES =	test-env \
24		auth1 auth2 auth3 auth4 \
25		test-assertion1 test-assertion2 test-assertion3 \
26		test-assertion4 test-assertion5 test-assertion6 \
27		test-assertion7 \
28
29CLEANFILES =	${TESTFILES} keynote.out
30
31.for t in ${TESTFILES}
32$t: ${KEYNOTEDIR}/testsuite/$t
33	cp ${KEYNOTEDIR}/testsuite/$t $@
34.endfor
35
36REGRESS_TARGETS = test-libkeynote
37test-libkeynote: ${TESTFILES}
38	keynote verify \
39	    -r false,maybe,probably,true \
40	    -e test-env \
41	    -k auth1 -k auth2 -k auth3 -k auth4 \
42	    -l test-assertion1 -l test-assertion2 -l test-assertion3 \
43	    -l test-assertion4 -l test-assertion5 -l test-assertion6 \
44	    -l test-assertion7 \
45	    >keynote.out
46	echo 'Query result = true' | diff -up - keynote.out
47
48.include <bsd.regress.mk>
49