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.
38 lines
720 B
38 lines
720 B
15 years ago
|
#!/bin/bash
|
||
|
|
||
|
FOLDER="--folder $PWD"
|
||
|
QUERY=""
|
||
|
|
||
|
while [ "$#" -gt 0 ]
|
||
|
do
|
||
|
case $1 in
|
||
|
-f|--folder)
|
||
|
FOLDER="--folder $2"
|
||
|
shift
|
||
|
;;
|
||
|
-q|--query)
|
||
|
QUERY="--query $2"
|
||
|
shift
|
||
|
;;
|
||
|
esac
|
||
|
# to process the next parameter
|
||
|
shift
|
||
|
done
|
||
|
|
||
12 years ago
|
APP=`which tdeunittestguimodrunner`
|
||
15 years ago
|
if [ ! -x $APP ]
|
||
|
then
|
||
|
kdialog --error "Sorry, $APP is not a valid executable file."
|
||
|
exit 1;
|
||
|
fi
|
||
|
|
||
12 years ago
|
DEBUGHELPER=`which tdeunittest_debughelper`
|
||
15 years ago
|
if [ -z $DEBUGHELPER ]
|
||
|
then
|
||
12 years ago
|
kdialog --error "Sorry, couldn't find the tdeunittest_debughelper script."
|
||
15 years ago
|
exit 3
|
||
|
fi
|
||
|
|
||
|
DCOPNAME="KUnitTestModRunner"
|
||
|
$APP --enable-dbgcap $FOLDER $QUERY 2>&1 | perl $DEBUGHELPER "$DCOPNAME-*"
|