xref: /freebsd/usr.bin/calendar/tests/regress.sh (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1# $FreeBSD$
2
3CALENDAR_FILE="-f ${SRCDIR}/calendar.calibrate"
4CALENDAR_BIN="calendar"
5
6CALENDAR="${CALENDAR_BIN} ${CALENDAR_FILE}"
7
8REGRESSION_START($1)
9
10echo 1..29
11
12REGRESSION_TEST(`s1',`$CALENDAR -t 29.12.2006')
13REGRESSION_TEST(`s2',`$CALENDAR -t 30.12.2006')
14REGRESSION_TEST(`s3',`$CALENDAR -t 31.12.2006')
15REGRESSION_TEST(`s4',`$CALENDAR -t 01.01.2007')
16REGRESSION_TEST(`s5',`$CALENDAR -t 21.06.2015')
17
18REGRESSION_TEST(`a1',`$CALENDAR -A 3 -t 28.12.2006')
19REGRESSION_TEST(`a2',`$CALENDAR -A 3 -t 29.12.2006')
20REGRESSION_TEST(`a3',`$CALENDAR -A 3 -t 30.12.2006')
21REGRESSION_TEST(`a4',`$CALENDAR -A 3 -t 31.12.2006')
22REGRESSION_TEST(`a5',`$CALENDAR -A 3 -t 01.01.2007')
23
24REGRESSION_TEST(`b1',`$CALENDAR -B 3 -t 31.12.2006')
25REGRESSION_TEST(`b2',`$CALENDAR -B 3 -t 01.01.2007')
26REGRESSION_TEST(`b3',`$CALENDAR -B 3 -t 02.01.2007')
27REGRESSION_TEST(`b4',`$CALENDAR -B 3 -t 03.01.2007')
28REGRESSION_TEST(`b5',`$CALENDAR -B 3 -t 04.01.2007')
29
30REGRESSION_TEST(`w0-1',`$CALENDAR -W 0 -t 28.12.2006')
31REGRESSION_TEST(`w0-2',`$CALENDAR -W 0 -t 29.12.2006')
32REGRESSION_TEST(`w0-3',`$CALENDAR -W 0 -t 30.12.2006')
33REGRESSION_TEST(`w0-4',`$CALENDAR -W 0 -t 31.12.2006')
34REGRESSION_TEST(`w0-5',`$CALENDAR -W 0 -t 01.01.2007')
35REGRESSION_TEST(`w0-6',`$CALENDAR -W 0 -t 02.01.2007')
36REGRESSION_TEST(`w0-7',`$CALENDAR -W 0 -t 03.01.2007')
37
38REGRESSION_TEST(`wn-1',`$CALENDAR -W 0 -t 28.12.2006')
39REGRESSION_TEST(`wn-2',`$CALENDAR -W 1 -t 28.12.2006')
40REGRESSION_TEST(`wn-3',`$CALENDAR -W 2 -t 28.12.2006')
41REGRESSION_TEST(`wn-4',`$CALENDAR -W 3 -t 28.12.2006')
42REGRESSION_TEST(`wn-5',`$CALENDAR -W 4 -t 28.12.2006')
43REGRESSION_TEST(`wn-6',`$CALENDAR -W 5 -t 28.12.2006')
44REGRESSION_TEST(`wn-7',`$CALENDAR -W 6 -t 28.12.2006')
45
46REGRESSION_END()
47