blob: edbbf866990f573e7d7247d6f17e449f65642617 (
plain)
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
26
27
28
29
30
31
32
33
34
|
# $OpenBSD: Makefile,v 1.4 2019/03/21 19:31:57 millert Exp $
FILES?!= ls ${.CURDIR}/[0-9]*.out
CALENDAR?= calendar
IN= ${.CURDIR}/in
OUT= ${.CURDIR}/${*}.out
.for f in ${FILES}
REGRESS_TARGETS+=${f:C|.*/||}
.endfor
.for f in ${FILES}
${f:C|.*/||}:
@echo ${*}
@${CALENDAR} -f ${IN} -t ${f:C|.*/||:C/\..*//} | diff -u ${OUT} -
.endfor
REGRESS_TARGETS+=before after noweekend
before:
@echo ${*}
@${CALENDAR} -f ${.CURDIR}/beforeafter.in -t 20190109 -B 5 | diff -U 7 ${.CURDIR}/before.out -
after:
@echo ${*}
@${CALENDAR} -f ${.CURDIR}/beforeafter.in -t 20190111 -A 5 | diff -U 7 ${.CURDIR}/after.out -
noweekend:
@echo ${*}
@${CALENDAR} -f ${.CURDIR}/beforeafter.in -t 20190111 -A 0 | diff -U 7 ${.CURDIR}/noweekend.out -
.PHONY: ${REGRESS_TARGETS}
.include <bsd.regress.mk>
|