imip-agent

tests/test_multiple_invitation.sh

1033:d40596ab5044
2016-01-31 Paul Boddie Deprecated the plain text version of the preferences documentation in favour of the wiki version.
     1 #!/bin/sh     2      3 . "`dirname \"$0\"`/common.sh"     4      5 ROOM="mailto:resource-room-confroom@example.com"     6 CAR="mailto:resource-car-porsche911@example.com"     7      8 mkdir -p "$PREFS/$ROOM"     9 echo 'Europe/Oslo' > "$PREFS/$ROOM/TZID"    10 echo 'share' > "$PREFS/$ROOM/freebusy_sharing"    11     12 mkdir -p "$PREFS/$CAR"    13 echo 'Europe/Mariehamn' > "$PREFS/$CAR/TZID"    14 echo 'share' > "$PREFS/$CAR/freebusy_sharing"    15     16   "$RESOURCE_SCRIPT" $ARGS < $TEMPLATES/fb-request-all.txt 2>> $ERROR \    17 | "$SHOWMAIL" \    18 > out0.tmp    19     20    grep -q 'METHOD:REPLY' out0.tmp \    21 && ! grep -q '^FREEBUSY' out0.tmp \    22 && echo "Success" \    23 || echo "Failed"    24     25   "$RESOURCE_SCRIPT" $ARGS < $TEMPLATES/fb-request.txt 2>> $ERROR \    26 | "$SHOWMAIL" \    27 > out1.tmp    28     29    grep -q 'METHOD:REPLY' out1.tmp \    30 && ! grep -q '^FREEBUSY' out1.tmp \    31 && echo "Success" \    32 || echo "Failed"    33     34   "$RESOURCE_SCRIPT" $ARGS -o 'resource-room-confroom@example.com' < "$TEMPLATES/event-request-multiple.txt" 2>> $ERROR \    35 | "$SHOWMAIL" \    36 > out2.tmp    37     38    grep -q 'METHOD:REPLY' out2.tmp \    39 && grep -q 'ATTENDEE;PARTSTAT=ACCEPTED' out2.tmp \    40 && echo "Success" \    41 || echo "Failed"    42     43   "$RESOURCE_SCRIPT" $ARGS -o 'resource-car-porsche911@example.com' < "$TEMPLATES/event-request-multiple.txt" 2>> $ERROR \    44 | "$SHOWMAIL" \    45 > out3.tmp    46     47    grep -q 'METHOD:REPLY' out3.tmp \    48 && grep -q 'ATTENDEE;PARTSTAT=ACCEPTED' out3.tmp \    49 && echo "Success" \    50 || echo "Failed"    51     52   "$RESOURCE_SCRIPT" $ARGS -o 'resource-room-confroom@example.com' < "$TEMPLATES/fb-request.txt" 2>> $ERROR \    53 | "$SHOWMAIL" \    54 > out4.tmp    55     56    grep -q 'METHOD:REPLY' out4.tmp \    57 && grep -q 'FREEBUSY;FBTYPE=BUSY:20141126T150000Z/20141126T160000Z' out4.tmp \    58 && echo "Success" \    59 || echo "Failed"    60     61   "$RESOURCE_SCRIPT" $ARGS -o 'resource-car-porsche911@example.com' < "$TEMPLATES/fb-request-car.txt" 2>> $ERROR \    62 | "$SHOWMAIL" \    63 > out5.tmp    64     65    grep -q 'METHOD:REPLY' out5.tmp \    66 && grep -q 'FREEBUSY;FBTYPE=BUSY:20141126T150000Z/20141126T160000Z' out5.tmp \    67 && echo "Success" \    68 || echo "Failed"    69     70 "$RESOURCE_SCRIPT" $ARGS < "$TEMPLATES/event-cancel-multiple-attendee.txt" 2>> $ERROR    71 echo "Cancel..."    72     73   "$RESOURCE_SCRIPT" $ARGS -o 'resource-room-confroom@example.com' < "$TEMPLATES/fb-request.txt" 2>> $ERROR \    74 | "$SHOWMAIL" \    75 > out6.tmp    76     77    grep -q 'METHOD:REPLY' out6.tmp \    78 && ! grep -q '^FREEBUSY' out6.tmp \    79 && echo "Success" \    80 || echo "Failed"    81     82   "$RESOURCE_SCRIPT" $ARGS -o 'resource-car-porsche911@example.com' < "$TEMPLATES/fb-request-car.txt" 2>> $ERROR \    83 | "$SHOWMAIL" \    84 > out7.tmp    85     86    grep -q 'METHOD:REPLY' out7.tmp \    87 && grep -q 'FREEBUSY;FBTYPE=BUSY:20141126T150000Z/20141126T160000Z' out7.tmp \    88 && echo "Success" \    89 || echo "Failed"