aboutsummaryrefslogtreecommitdiffstats
path: root/test/recur-006.sh
blob: 348639181db8f024b923fc0b553f33b0f6cdc572 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
# Ignore impossible dates.

. "${TEST_INIT:-./test-init.sh}"

if [ "$1" = 'actual' ]; then
  "$CALCURSE" --read-only -D "$DATA_DIR"/ -c "$DATA_DIR/apts-recur" \
    --startday=5/31/2019 --range=365 --filter-type recur-apt \
    --filter-pattern impossible
  "$CALCURSE" --read-only -D "$DATA_DIR"/ -c "$DATA_DIR/apts-recur" \
    --startday=2/1/2020 --range=1500 --filter-type recur-event \
    --filter-pattern February
elif [ "$1" = 'expected' ]; then
  cat <<EOD
05/31/19:
 - 07:25 -> 07:45
	Ignore impossible dates

07/31/19:
 - 07:25 -> 07:45
	Ignore impossible dates

08/31/19:
 - 07:25 -> 07:45
	Ignore impossible dates

10/31/19:
 - 07:25 -> 07:45
	Ignore impossible dates

12/31/19:
 - 07:25 -> 07:45
	Ignore impossible dates

01/31/20:
 - 07:25 -> 07:45
	Ignore impossible dates

03/31/20:
 - 07:25 -> 07:45
	Ignore impossible dates
02/29/20:
 * Every 29 February since 2020

02/29/24:
 * Every 29 February since 2020
EOD
else
  ./run-test "$0"
fi