|
|
@ -1,7 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
# Expects karm test file in $TESTFILE
|
|
|
|
# Expects karm test file in $TESTFILE
|
|
|
|
# Returns dcop id in $DCOP_ID
|
|
|
|
# Returns dcop id in $DCOP_ID
|
|
|
|
function set_up()
|
|
|
|
set_up()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DCOPID=`dcop 2>/dev/null | grep karm`
|
|
|
|
DCOPID=`dcop 2>/dev/null | grep karm`
|
|
|
|
|
|
|
|
|
|
|
@ -44,7 +44,7 @@ function set_up()
|
|
|
|
then
|
|
|
|
then
|
|
|
|
break
|
|
|
|
break
|
|
|
|
else
|
|
|
|
else
|
|
|
|
let "idx += 1"
|
|
|
|
idx=$(( idx + 1 ))
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
done
|
|
|
@ -64,12 +64,12 @@ function set_up()
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function test_func()
|
|
|
|
test_func()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
echo "Yep, that works."
|
|
|
|
echo "Yep, that works."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function tear_down()
|
|
|
|
tear_down()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if [ -n "$DCOPID" ]; then dcop "$DCOPID" KarmDCOPIface quit; fi;
|
|
|
|
if [ -n "$DCOPID" ]; then dcop "$DCOPID" KarmDCOPIface quit; fi;
|
|
|
|
|
|
|
|
|
|
|
|