blob: a866e3e07959e5e42baa66ea54ea5d7e0165757a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# $OpenBSD: Makefile,v 1.5 2020/07/25 12:44:50 bluhm Exp $
# $NetBSD: Makefile,v 1.5 2002/09/18 04:16:02 lukem Exp $
PROG= extest
SRCS= extest.c subr_extent.c
CPPFLAGS+= -D_EXTENT_TESTING -DDIAGNOSTIC
CLEANFILES+= extest.c *.tmp *.out *.norm
.PATH: ${.CURDIR}/../../../../sys/kern
LONG_MINUSONE != perl -e 'print unpack("H*",pack("l!",-1)),"\n"'
REGRESS_TARGETS = run-extent
run-extent: ${PROG}
./${PROG} >extest.out
sed -n 's/ffffffffffffffff/${LONG_MINUSONE}/;5,$$p' \
${.CURDIR}/extest.exp >extest.norm
diff -up extest.norm extest.out
extest.c: extest.awk tests
awk -f ${.CURDIR}/extest.awk ${.CURDIR}/tests >extest.c.tmp
mv extest.c.tmp extest.c
.include <bsd.regress.mk>
|