add manifest file, add findunittest command in script
authorwoojin <woojin2.jung@samsung.com>
Wed, 3 Apr 2013 22:58:18 +0000 (07:58 +0900)
committerwoojin <woojin2.jung@samsung.com>
Wed, 3 Apr 2013 22:58:18 +0000 (07:58 +0900)
Change-Id: I824eb8c27bcdd8d324bd119dfb90da75c041c2cb

daemon/da_command
dynamic-analysis-manager.manifest [new file with mode: 0644]
packaging/dynamic-analysis-manager.manifest [new file with mode: 0644]
packaging/dynamic-analysis-manager.spec

index d657709..a20e42b 100755 (executable)
@@ -3,6 +3,8 @@
 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()
 {
@@ -12,6 +14,7 @@ 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()
@@ -48,16 +51,22 @@ run_event()
        $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)
@@ -86,6 +95,9 @@ case "$1" in
        runevent)
                run_event
                ;;
+       findunittest)
+               find_unittest
+               ;;
        process)
                process_list
                ;;
diff --git a/dynamic-analysis-manager.manifest b/dynamic-analysis-manager.manifest
new file mode 100644 (file)
index 0000000..86dbb26
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_" />
+    </request>
+</manifest>
diff --git a/packaging/dynamic-analysis-manager.manifest b/packaging/dynamic-analysis-manager.manifest
new file mode 100644 (file)
index 0000000..86dbb26
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+    <request>
+        <domain name="_" />
+    </request>
+</manifest>
index fdc63d6..9e4a606 100644 (file)
@@ -35,6 +35,7 @@ cd ../eventutil
 %make_install
 
 %files
+%manifest dynamic-analysis-manager.manifest
 %defattr(-,root,root,-)
 %{_prefix}/bin/da_manager
 %{_prefix}/bin/da_event