blob: b0ea38bf8fa1910e44f5cf07205bc78f08b1a8f8 (
plain)
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
|
#!/bin/sh
# check if deleting a task works
exec >> check.log 2>&1
TESTFILE="/tmp/testkarm1.ics"
rm $TESTFILE
. ./__lib.sh
set_up
# do not prompt on deleting a task
GPOD=`dcop $DCOPID KarmDCOPIface getpromptdelete 2>/dev/null`
RVAL=`dcop $DCOPID KarmDCOPIface setpromptdelete 0 2>/dev/null`
RVAL=`dcop $DCOPID KarmDCOPIface addTask todo1 2>/dev/null`
RVAL=`dcop $DCOPID KarmDCOPIface addTask todo2 2>/dev/null`
RVAL=`dcop $DCOPID KarmDCOPIface deletetodo 2>/dev/null`
RVAL=`dcop $DCOPID KarmDCOPIface deletetodo 2>/dev/null`
RVAL=`dcop $DCOPID KarmDCOPIface setpromptdelete $GPOD 2>/dev/null`
RVAL=`dcop $DCOPID KarmDCOPIface version 2>/dev/null`
tear_down
if [ "$RVAL" = "" ]; then
echo "FAIL $0: got no version."
exit 1;
else
echo "PASS $0"
exit 0;
fi
|