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