freebsd-dev/usr.bin/calendar/tests/cond.sh
Stefan Eßer 2ceb17a8be 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
2020-11-04 22:29:01 +00:00

15 lines
233 B
Bash
Executable File

# $FreeBSD$
CALENDAR_FILE="-f ${SRCDIR}/calendar.cond"
CALENDAR_BIN="calendar"
CALENDAR="${CALENDAR_BIN} ${CALENDAR_FILE}"
REGRESSION_START($1)
echo 1..1
REGRESSION_TEST(`cond',`$CALENDAR -t 01.01.2020 -A 30')
REGRESSION_END()