diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2019-03-21 19:31:58 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2019-03-21 19:31:58 +0000 |
commit | 5e7e7c14ec1e0caf6610d12097a8246d835ae229 (patch) | |
tree | 8bb6b64106a5be17a93542052c84d113515f793e /regress/usr.bin | |
parent | c55566973f756b8394be7bf2277bb88ce9370ff1 (diff) |
Test that "calendar -A 0" on a Friday doesn't include weekend events.
From Andy Bradford
Diffstat (limited to 'regress/usr.bin')
-rw-r--r-- | regress/usr.bin/calendar/Makefile | 8 | ||||
-rw-r--r-- | regress/usr.bin/calendar/noweekend.out | 1 |
2 files changed, 7 insertions, 2 deletions
diff --git a/regress/usr.bin/calendar/Makefile b/regress/usr.bin/calendar/Makefile index 1d1a1c06e32..edbbf866990 100644 --- a/regress/usr.bin/calendar/Makefile +++ b/regress/usr.bin/calendar/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.3 2019/01/29 20:10:26 millert Exp $ +# $OpenBSD: Makefile,v 1.4 2019/03/21 19:31:57 millert Exp $ FILES?!= ls ${.CURDIR}/[0-9]*.out @@ -15,7 +15,7 @@ ${f:C|.*/||}: @${CALENDAR} -f ${IN} -t ${f:C|.*/||:C/\..*//} | diff -u ${OUT} - .endfor -REGRESS_TARGETS+=before after +REGRESS_TARGETS+=before after noweekend before: @echo ${*} @@ -25,6 +25,10 @@ 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> diff --git a/regress/usr.bin/calendar/noweekend.out b/regress/usr.bin/calendar/noweekend.out new file mode 100644 index 00000000000..6b26daca7e7 --- /dev/null +++ b/regress/usr.bin/calendar/noweekend.out @@ -0,0 +1 @@ +Jan 11* Friday |