You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
776 B
34 lines
776 B
15 years ago
|
#!/bin/sh
|
||
|
|
||
|
# check if deleting a task works
|
||
|
|
||
|
exec >> check.log 2>&1
|
||
|
|
||
|
TESTFILE="/tmp/testkarm1.ics"
|
||
|
rm $TESTFILE
|
||
|
|
||
|
source __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
|