]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add regression tests for conditions and comments
authorse <se@FreeBSD.org>
Wed, 4 Nov 2020 22:29:01 +0000 (22:29 +0000)
committerse <se@FreeBSD.org>
Wed, 4 Nov 2020 22:29:01 +0000 (22:29 +0000)
commitb4f0bcce13a19156ad37feb7ead3a3ddc5154160
tree09b2e39a5abec0c0f7161a49b4d3eae3158674a8
parentf2b5462c56bbd6082ac6732aab5113669f2297be
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]