diff options
author | 2019-03-21 19:31:57 +0000 | |
---|---|---|
committer | 2019-03-21 19:31:57 +0000 | |
commit | b3a805e96e75d6bbcc14fa4126be1357bd3ab0f5 (patch) | |
tree | 83dbe516021b803cb856a9792d96a32596a13df4 | |
parent | Fix typo in usage and comment. (diff) | |
download | wireguard-openbsd-b3a805e96e75d6bbcc14fa4126be1357bd3ab0f5.tar.xz wireguard-openbsd-b3a805e96e75d6bbcc14fa4126be1357bd3ab0f5.zip |
Test that "calendar -A 0" on a Friday doesn't include weekend events.
From Andy Bradford
-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 |