KILL=/usr/bin/killall
MANAGER=/usr/bin/da_manager
EVENT=/usr/bin/da_event
+FIND=/usr/bin/find
+GETAPPINSTALLPATH="/usr/bin/pkgcmd -a"
print_usage()
{
echo "killapp apppath terminate application"
echo "runmanager execute da_manager"
echo "runevent record|play execute da_event"
+ echo "findunittest find unittest project"
}
kill_manager()
$EVENT $EVENTMODE
}
-if test $# -gt 2 -o $# -lt 1; then
- print_usage
- exit 1
-fi
+find_unittest()
+{
+ $FIND `$GETAPPINSTALLPATH | awk '{if (FNR==1) printf $NF}'` -name *.unittest
+}
process_list()
{
ps -eo pid,cmd
}
+
+if test $# -gt 2 -o $# -lt 1; then
+ print_usage
+ exit 1
+fi
+
if test -n "$2"; then
case "$1" in
runevent)
runevent)
run_event
;;
+ findunittest)
+ find_unittest
+ ;;
process)
process_list
;;