[common][widgetpolicy][smack rule command is added] 79/134179/1
authoryuanzhongyuan <zy123.yuan@samsung.com>
Thu, 15 Jun 2017 06:27:18 +0000 (14:27 +0800)
committeryuanzhongyuan <zy123.yuan@samsung.com>
Thu, 15 Jun 2017 06:27:18 +0000 (14:27 +0800)
Change-Id: Ib8df56aa5de95b8f02a6d05bf64441afc60e96fa

common/tct-widgetpolicy-w3c-tests/tests.xml

index 2b2dd68f450bb3692e62713e9914406a4f11deec..47218b3ebed2866159910667772819786ccd9af3 100755 (executable)
@@ -61,7 +61,9 @@
           <post_condition>Get the $pkgid of load_image_and_script.wgt with the command : pkgcmd -l, then uninstall the load_image_and_script.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
-              <step_desc>Get the $appid of load_image_and_script.wgt with the command : app_launcher -l, launch load_image_and_script.wgt with the command : app_launcher -s $appid</step_desc>
+              <step_desc>Get the $appid of load_image_and_script.wgt with the command : app_launcher -l, Give the smack access to app with the command : echo "User::Shell User::Pkg::$appid rwx" | smackload 
+echo "User::Pkg::$appid User::Shell rwx" | smackload,
+ launch load_image_and_script.wgt with the command : app_launcher -s $appid</step_desc>
               <expected>The screen shows "PASS" on green backgroud and a gray background of "...testing..." image is displayed.</expected>
             </step>
           </steps>
@@ -74,7 +76,9 @@
           <post_condition>Get the $pkgid of load_text_over_xhr.wgt with the command : pkgcmd -l, then uninstall the load_text_over_xhr.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
-              <step_desc>Get the $appid of load_text_over_xhr.wgt with the command : app_launcher -l, launch load_text_over_xhr.wgt with the command : app_launcher -s $appid</step_desc>
+              <step_desc>Get the $appid of load_text_over_xhr.wgt with the command : app_launcher -l,  Give the smack access to app with the command : echo "User::Shell User::Pkg::$appid rwx" | smackload 
+echo "User::Pkg::$appid User::Shell rwx" | smackload,
+ launch load_text_over_xhr.wgt with the command : app_launcher -s $appid</step_desc>
               <expected>The screen shows "PASS" on green backgroud.</expected>
             </step>
           </steps>
           <post_condition>Get the $pkgid of wildcard_support.wgt with the command : pkgcmd -l, then uninstall the wildcard_support.wgt with the command : pkgcmd -u -t wgt -q -n $pkgid</post_condition>
           <steps>
             <step order="1">
-              <step_desc>Get the $appid of wildcard_support.wgt with the command : app_launcher -l, launch wildcard_support.wgt with the command : app_launcher -s $appid</step_desc>
+              <step_desc>Get the $appid of wildcard_support.wgt with the command : app_launcher -l,  Give the smack access to app with the command : echo "User::Shell User::Pkg::$appid rwx" | smackload 
+echo "User::Pkg::$appid User::Shell rwx" | smackload,
+launch wildcard_support.wgt with the command : app_launcher -s $appid</step_desc>
               <expected>The screen shows "PASS" on green backgroud.</expected>
             </step>
           </steps>