]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add regression tests for conditions and comments
authorStefan Eßer <se@FreeBSD.org>
Wed, 4 Nov 2020 22:29:01 +0000 (22:29 +0000)
committerStefan Eßer <se@FreeBSD.org>
Wed, 4 Nov 2020 22:29:01 +0000 (22:29 +0000)
commit2ceb17a8bed808bb2d14fe5bff1d3eca21598531
tree09b2e39a5abec0c0f7161a49b4d3eae3158674a8
parent07030f3362a75380f12fc82e68fba2b34ee2e32c
Add regression tests for conditions and comments

Fix one case where #else was not corerctly processed and simplify the
conditions logic.

Fix parsing of day and month names in the locale specified in the calendar
file. The previous version would expect those names to match the locale of
the user.

Mention that comments are now correctly processed and that // is supported
in addition to /* ... */.

MFC after: 3 days
14 files changed:
usr.bin/calendar/calendar.1
usr.bin/calendar/calendar.h
usr.bin/calendar/dates.c
usr.bin/calendar/events.c
usr.bin/calendar/io.c
usr.bin/calendar/tests/Makefile
usr.bin/calendar/tests/calendar.comment [new file with mode: 0644]
usr.bin/calendar/tests/calendar.cond [new file with mode: 0644]
usr.bin/calendar/tests/comment.sh [new file with mode: 0755]
usr.bin/calendar/tests/comment_test.sh [new file with mode: 0755]
usr.bin/calendar/tests/cond.sh [new file with mode: 0755]
usr.bin/calendar/tests/cond_test.sh [new file with mode: 0755]
usr.bin/calendar/tests/regress.comment.out [new file with mode: 0644]
usr.bin/calendar/tests/regress.cond.out [new file with mode: 0644]