summaryrefslogtreecommitdiffstats
path: root/kunittest/kunittest
blob: fbb8424fb241ac3d9ff8d233b3e5bb33068719a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

export APP=$1
export DCOPNAME=$2

if [ ! -x $APP ]
then
    kdialog --error "Sorry, $APP is not a valid executable file."
    exit 1;
fi

DEBUGHELPER=`which kunittest_debughelper`
if [ -z $DEBUGHELPER ]
then
    kdialog --error "Sorry, couldn't find the kunittest_debughelper script."
    exit 3
fi

$APP 2>&1 | perl $DEBUGHELPER "$DCOPNAME-*"