Add signature support for local build to tct 2.1 branch.
authoryugang <yugang.fan@intel.com>
Mon, 20 May 2013 03:45:13 +0000 (11:45 +0800)
committeryugang <yugang.fan@intel.com>
Mon, 20 May 2013 04:23:40 +0000 (12:23 +0800)
Change-Id: Ib84b96d14c65ef5f812fc6dc90d0f27fcbf03491

75 files changed:
inst-b.sh [deleted file]
inst.sh [moved from inst-a.sh with 90% similarity]
packaging/.tct.spec.swp [deleted file]
packaging/tct-wrt.spec
packaging/wrt.changes [deleted file]
signing/README [new file with mode: 0755]
signing/certificates/author/tizen-developer-signer.ca [new file with mode: 0755]
signing/certificates/author/tizen-developer-signer.p12 [new file with mode: 0755]
signing/certificates/tizen-distributor-parnter-signer.ca [new file with mode: 0644]
signing/certificates/tizen-distributor-parnter-signer.p12 [new file with mode: 0644]
signing/certificates/tizen-distributor-partner-manufacturer-signer.ca [new file with mode: 0644]
signing/certificates/tizen-distributor-partner-manufacturer-signer.p12 [new file with mode: 0644]
signing/certificates/tizen-distributor-partner-operator-signer.ca [new file with mode: 0644]
signing/certificates/tizen-distributor-partner-operator-signer.p12 [new file with mode: 0644]
signing/certificates/tizen-distributor-partner-signer.ca [new file with mode: 0644]
signing/certificates/tizen-distributor-partner-signer.p12 [new file with mode: 0644]
signing/certificates/tizen-distributor-platform-signer.ca [new file with mode: 0755]
signing/certificates/tizen-distributor-platform-signer.p12 [new file with mode: 0755]
signing/certificates/tizen-distributor-public-signer.ca [new file with mode: 0644]
signing/certificates/tizen-distributor-public-signer.p12 [new file with mode: 0644]
signing/default.conf [new file with mode: 0755]
signing/hash-signer.bat [new file with mode: 0755]
signing/hash-signer.sh [new file with mode: 0755]
signing/jar/HashSign.jar [new file with mode: 0755]
signing/jar/HashSigner.jar [new file with mode: 0755]
signing/jar/bcpkix-jdk15on-147.jar [new file with mode: 0755]
signing/jar/bcprov-jdk15on-147.jar [new file with mode: 0755]
signing/jar/commons-compress-1.4.1.jar [new file with mode: 0755]
signing/jar/commons-lang3-3.1.jar [new file with mode: 0755]
signing/jar/commons-logging-1.1.1.jar [new file with mode: 0755]
signing/jar/xml-apis-1.3.04.jar [new file with mode: 0755]
signing/jar/xmlsec-1.5.3.jar [new file with mode: 0755]
signing/sign-widget.sh [new file with mode: 0755]
tct-extension-tests/Makefile.am
tct-extension-tests/pack.sh
tct-extension-tests/tct-extension-tests.spec
tct-management-tests/pack.sh
tct-management-tests/tct-management-tests.spec [moved from tct-management-tests/wrt-management-tests.spec with 90% similarity]
tct-privacy-tests/Makefile.am
tct-privacy-tests/pack.sh
tct-privacy-tests/signature-author/author-signature.xml [deleted file]
tct-privacy-tests/signature-author/config.xml [deleted file]
tct-privacy-tests/signature-author/icon.png [deleted file]
tct-privacy-tests/signature-author/index.html [deleted file]
tct-privacy-tests/signature-invalid/author-signature.xml [deleted file]
tct-privacy-tests/signature-invalid/config.xml [deleted file]
tct-privacy-tests/signature-invalid/icon.png [deleted file]
tct-privacy-tests/signature-invalid/index.html [deleted file]
tct-privacy-tests/signature-invalid/signature1.xml [deleted file]
tct-privacy-tests/signature-notexist/config.xml [deleted file]
tct-privacy-tests/signature-notexist/icon.png [deleted file]
tct-privacy-tests/signature-notexist/index.html [deleted file]
tct-privacy-tests/signature-support/author-signature.xml [deleted file]
tct-privacy-tests/signature-support/config.xml [deleted file]
tct-privacy-tests/signature-support/icon.png [deleted file]
tct-privacy-tests/signature-support/index.html [deleted file]
tct-privacy-tests/signature-support/signature1.xml [deleted file]
tct-privacy-tests/signature-valid/author-signature.xml [deleted file]
tct-privacy-tests/signature-valid/config.xml [deleted file]
tct-privacy-tests/signature-valid/icon.png [deleted file]
tct-privacy-tests/signature-valid/index.html [deleted file]
tct-privacy-tests/signature-valid/signature1.xml [deleted file]
tct-privacy-tests/tct-privacy-tests.spec
tct-runtime-tests/Makefile.am
tct-runtime-tests/pack.sh
tct-runtime-tests/tct-runtime-tests.spec
tct-stability-tests/Makefile.am
tct-stability-tests/pack.sh
tct-stability-tests/tct-stability-tests.spec
tct-widget-tests/Makefile.am
tct-widget-tests/pack.sh
tct-widget-tests/tct-widget-tests.spec
tct-wrtui-tests/Makefile.am
tct-wrtui-tests/pack.sh
tct-wrtui-tests/tct-wrtui-tests.spec

diff --git a/inst-b.sh b/inst-b.sh
deleted file mode 100755 (executable)
index 7686c98..0000000
--- a/inst-b.sh
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-##
-# Copyright (c) 2012 Intel Corporation.
-#
-# Redistribution and use in source and binary forms, with or without modification,
-# are permitted provided that the following conditions are met:
-#
-# *Redistributions of works must retain the original copyright notice, this list
-# of conditions and the following disclaimer.
-# *Redistributions in binary form must reproduce the original copyright notice,
-# this list of conditions and the following disclaimer in the documentation
-# and/or other materials provided with the distribution.
-# *Neither the name of Intel Corporation nor the names of its contributors
-# may be used to endorse or promote products derived from this work without
-# specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Authors:
-#               Huajun Li <huajun.li@intel.com>
-#
-
-BUILD_ROOT=$1
-BUILD_DIR=$2
-VERSION="$3-*"
-SUB_PKG_NAME=$4
-
-mkdir -p $BUILD_DIR/$SUB_PKG_NAME/opt
-mkdir -p $BUILD_DIR/$SUB_PKG_NAME/usr/share/$SUB_PKG_NAME
-cp -ar $BUILD_ROOT/opt/$SUB_PKG_NAME  $BUILD_DIR/$SUB_PKG_NAME/opt/$SUB_PKG_NAME
-cp -af $BUILD_DIR/$VERSION/$SUB_PKG_NAME/manifest.json    $BUILD_DIR/$SUB_PKG_NAME
-cp -af $BUILD_DIR/$VERSION/$SUB_PKG_NAME/custom.png       $BUILD_DIR/$SUB_PKG_NAME
-cp -af $BUILD_DIR/$VERSION/$SUB_PKG_NAME/config.xml.wgt   $BUILD_DIR/$SUB_PKG_NAME/config.xml
-cp -af $BUILD_DIR/$VERSION/$SUB_PKG_NAME/tests.xml   $BUILD_DIR/$SUB_PKG_NAME/usr/share/$SUB_PKG_NAME
-
-cd $BUILD_DIR/$SUB_PKG_NAME
-
-cat > index.html << EOF
-<!doctype html>
-<head>
-    <meta http-equiv="Refresh" content="1; url=opt/$SUB_PKG_NAME/testkit/web/index.html?testsuite=/usr/share/$SUB_PKG_NAME/tests.xml">
-</head>
-EOF
-
-mkdir -p $BUILD_ROOT/opt/$SUB_PKG_NAME
-zip -rq $BUILD_ROOT/opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt *
-
-cd -
-
-rm -rf $BUILD_DIR/$SUB_PKG_NAME
similarity index 90%
rename from inst-a.sh
rename to inst.sh
index 348b6af..9cc363e 100755 (executable)
--- a/inst-a.sh
+++ b/inst.sh
@@ -30,6 +30,7 @@
 #
 
 suite_dir=$1
+build_root=$2
 all_dirs=`ls -l --time-style="long-iso" $suite_dir | grep '^d' | awk '{print $8}'`
 black_dirs=''
 pack_fail='FALSE'
@@ -51,14 +52,19 @@ function check_blackdir()
 
 echo "-->> Creating widgets >>--"
 cd $suite_dir
+rm -rf ./wgts
+mkdir -p ./wgts
 for app in $all_dirs; do
     check_blackdir $app
     if [ $? == 1 ]; then
-       echo "Got a black dir: $app"
+        echo "Got a black dir: $app"
         continue
     elif [ $(find $app|wc -l) -eq 1 ]; then
         echo "No files found in $app, skip it ..."
         continue
+    elif [ $app == "wgts" ]; then
+        echo "Skip wgts dir..."
+        continue
     else
         if [ -f $app.wgt ]; then
             echo "Delete old packaged file"
@@ -66,8 +72,7 @@ for app in $all_dirs; do
         fi
         cd $app
         echo "Start pack $app ..."
-        zip -rq ../$app.wgt *
-       echo `pwd`
+        zip -rq ../wgts/$app.wgt *
         if [ $? -ne 0 ]; then
             pack_fail='TRUE'
             echo "Create $app.wgt fail, continue to pack others"
@@ -76,8 +81,12 @@ for app in $all_dirs; do
         echo -e "Done\n"
     fi
 done
-cd ..
 echo "-- Create widgets done --"
+if [ -d "wgts" ]; then
+    cp -a wgts $build_root/opt/$suite_dir/
+    rm -rf ./wgts
+fi
+cd ..
 
 if [ $pack_fail != 'FALSE' ]; then
     echo "Fail to pack some packages ..."
diff --git a/packaging/.tct.spec.swp b/packaging/.tct.spec.swp
deleted file mode 100644 (file)
index 0b314fc..0000000
Binary files a/packaging/.tct.spec.swp and /dev/null differ
index 1f8a6c4..c0b0855 100644 (file)
@@ -4,7 +4,7 @@ Name: tct
 Version: 1.1
 Release: 1
 License: BSD
-Group: test/wrt
+Group: test/tct/wrt
 Source: %name-%version.tar.gz
 
 %description
@@ -15,7 +15,7 @@ Summary: wrt config extension test suite
 Version: 1.3.5
 Release: 1
 License: BSD
-Group: test/wrt
+Group: test/tct/wrt
 BuildRequires: zip
 
 %description extension-tests
@@ -26,7 +26,7 @@ Summary: wrt package management test suite
 Version: 1.3.5
 Release: 1
 License: BSD
-Group: test/wrt
+Group: test/tct/wrt
 BuildRequires: zip
 
 %description management-tests
@@ -37,7 +37,7 @@ Summary: wrt runtime test suite
 Version: 1.3.5
 Release: 1
 License: BSD
-Group: test/wrt
+Group: test/tct/wrt
 BuildRequires: zip
 
 %description runtime-tests
@@ -48,7 +48,7 @@ Summary: wrt runtime ui test suite
 Version: 1.3.5
 Release: 1
 License: BSD
-Group: test/wrt
+Group: test/tct/wrt
 BuildRequires: zip
 
 %description wrtui-tests
@@ -59,7 +59,7 @@ Summary: wrt security privacy test suite
 Version: 1.3.5
 Release: 1
 License: BSD
-Group: test/wrt
+Group: test/tct/wrt
 BuildRequires: zip
 
 %description privacy-tests
@@ -70,7 +70,7 @@ Summary: wrt acceptance tests
 Version: 1.3.5
 Release: 1
 License: BSD
-Group: test/wrt
+Group: test/tct/wrt
 BuildRequires: zip
 
 %description acceptance-tests
@@ -81,7 +81,7 @@ Summary: wrt stability tests
 Version: 1.3.5
 Release: 1
 License: BSD
-Group: test/wrt
+Group: test/tct/wrt
 BuildRequires: zip
 
 %description stability-tests
@@ -92,7 +92,7 @@ Summary: wrt webapp widget tests
 Version: 1.3.5
 Release: 1
 License: BSD
-Group: test/wrt
+Group: test/tct/wrt
 BuildRequires: zip
 
 %description widget-tests
@@ -103,13 +103,6 @@ This is wrt webapp widget test suite package
 
 %build
 unset LD_AS_NEEDED  
-sh inst-a.sh "tct-extension-tests"
-sh inst-a.sh "tct-management-tests"
-sh inst-a.sh "tct-runtime-tests"
-sh inst-a.sh "tct-wrtui-tests"
-sh inst-a.sh "tct-privacy-tests"
-sh inst-a.sh "tct-stability-tests"
-sh inst-a.sh "tct-widget-tests"
 ./autogen
 ./configure --prefix=/usr
 make
@@ -117,13 +110,13 @@ make
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
-wgt_list=`find ./ -name "*.wgt"`
-for i_pkg in $wgt_list; do
-    if [ `basename $i_pkg` == "config.xml.wgt" ]; then
-      continue
-    fi
-    rm -rf $i_pkg
-done
+sh inst.sh "tct-extension-tests" $RPM_BUILD_ROOT
+sh inst.sh "tct-management-tests" $RPM_BUILD_ROOT
+sh inst.sh "tct-runtime-tests" $RPM_BUILD_ROOT
+sh inst.sh "tct-wrtui-tests" $RPM_BUILD_ROOT
+sh inst.sh "tct-privacy-tests" $RPM_BUILD_ROOT
+sh inst.sh "tct-stability-tests" $RPM_BUILD_ROOT
+sh inst.sh "tct-widget-tests" $RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -166,7 +159,7 @@ rm -rf $RPM_BUILD_ROOT
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-extension-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-extension-tests/wgts/ -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -179,7 +172,7 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-management-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-management-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -192,7 +185,7 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-runtime-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-runtime-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -205,7 +198,7 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-wrtui-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-wrtui-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -218,7 +211,7 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-privacy-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-privacy-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -231,7 +224,7 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-stability-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-stability-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -244,7 +237,7 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-widget-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-widget-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -257,12 +250,12 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-extension-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-extension-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
         echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
@@ -274,12 +267,12 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-management-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-management-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
         echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
@@ -291,12 +284,12 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-runtime-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-runtime-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
         echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
@@ -308,12 +301,12 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-wrtui-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-wrtui-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
         echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
@@ -325,12 +318,12 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/tct-privacy-tests -name "*.wgt"`
+    wgt_list=`find /opt/tct-privacy-tests/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
         echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
@@ -342,10 +335,16 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    i_pkg_nns=`wrt-launcher -l | grep tct-stability-tests | awk '{ print $4 }'`
-    for i_pkg_nn in $i_pkg_nns; do
-      echo "Package Name is $i_pkg_nn"
-      $wgt_installer -un $i_pkg_nn
+    wgt_list=`find /opt/tct-stability-tests/wgts -name "*.wgt"`
+    for i_pkg in $wgt_list; do
+      i_pkg_names=`basename $i_pkg`
+      i_pkg_name=${i_pkg_names%.*}
+      echo "Uninstall package $i_pkg_name"
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
+      for i_pkg_nn in $i_pkg_nns; do
+        echo "Package Name is $i_pkg_nn"
+        $wgt_installer -un $i_pkg_nn
+      done
     done
 fi
 
@@ -353,9 +352,15 @@ fi
 wgt_installer="wrt-installer"
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    i_pkg_nns=`wrt-launcher -l | grep tct-stability-tests | awk '{ print $4 }'`
-    for i_pkg_nn in $i_pkg_nns; do
-      echo "Package Name is $i_pkg_nn"
-      $wgt_installer -un $i_pkg_nn
+    wgt_list=`find /opt/tct-widget-tests/wgts -name "*.wgt"`
+    for i_pkg in $wgt_list; do
+      i_pkg_names=`basename $i_pkg`
+      i_pkg_name=${i_pkg_names%.*}
+      echo "Uninstall package $i_pkg_name"
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
+      for i_pkg_nn in $i_pkg_nns; do
+        echo "Package Name is $i_pkg_nn"
+        $wgt_installer -un $i_pkg_nn
+      done
     done
 fi
diff --git a/packaging/wrt.changes b/packaging/wrt.changes
deleted file mode 100644 (file)
index 3b41e55..0000000
+++ /dev/null
@@ -1,308 +0,0 @@
-* Fri May 10 2013 yugang <yugang.fan@intel.com> submit/trunk/20130503.054805@48f876a
-- Update version for web wrt ww19.5 release.
-- Updated expected result for PKManagement_Inform_Uninstall_Running test in WRT
-- Fixed issue for css-animation-background-unable test in WRT
-- Fixed bug TTS-1306 Unable to get “messaging.email” services
-- Merge "update acceptance package due to we removed user agent case."
-- update acceptance package due to we removed user agent case.
-- Update application id and required version for security privacy module
-- Merge "Update application id and required version for webapp widget module"
-- Merge "Update application id and required version for stability module"
-- Update application id and required version for webapp widget module
-- Update application id and required version for stability module
-- Update application id and required version for runtime-ui module
-- Merge "Update application id and required version for runtime module"
-- Update application id and required version for runtime module
-- Merge "Updated application ID align with new spec for acceptance tests"
-- Merge "Update application id and required version for package management module"
-- Updated application ID align with new spec for acceptance tests
-- Update application id and required version for package management module
-- Update application id and required version for config extension module
-- Merge "Update the description of tests.xml for runtime module"
-- Merge "Update the description of tests.xml for runtime ui module"
-- Merge "Update the description of tests.xml for stability module"
-- Update the description of tests.xml for runtime module
-- Update the description of tests.xml for runtime ui module
-- Update the description of tests.xml for stability module
-- Update the description of tests.xml for package management module
-- Removed wrt-sanity-tests
-- Update version for web wrt ww19.3 release.
-- delete one case due to spec change
-- Merge "Update step descriptions for config extension cases"
-- Update step descriptions for config extension cases
-- Update the description of tests.xml for webapp widget module
-- Merge "Delete four cases and update description of tests.xml for security privacy module"
-- Merge "Fixed bug TTS-1329 Unable to trig calendar.getDefaultCalendar() method"
-- Delete four cases and update description of tests.xml for security privacy module
-- Fixed bug TTS-1329 Unable to trig calendar.getDefaultCalendar() method
-- Update case id for config extension module
-- Update release version for web tests ww18.5 release.
-- Update the box-size for webapp widget module due to spec change
-- Update wrt tests version for ww18.0 release.
-- Fixed bug TTS-1292 Unable to launch the performed in the test app
-- Fixed TTS-1291 to update the pre_condition for tct-extension-tests
-- Update version for ww17.5 release.
-- Add three cases for webapp widget module due to spec change
-- Update some description of tests.xml for packagemanagement module
-- Update some cases description for webapp widget module
-- Updated the expected result from 'installed' to 'uninstalled' for config-extension TC: setting-install-location-internal-only-no-card and updated some spelling issues
-- Update wrt tests release version for ww17.3.
-- Merge "Fixed bug TTS-1250 Update README about create AppWidget viewer and update some cases"
-- Merge "Fixed bug TTS-1256 Update the sources in the widget"
-- Merge "Fixed TTS-1258 to update the description of WRT case other-localization-description-change       and update the index.html in application-privilege"
-- Merge "Fixed bug TTS-1257 lose a space between package attribute and required_version attribute"
-- Merge "Add eight cases and delete four cases for security privacy module due to spec change"
-- Fixed bug TTS-1256 Update the sources in the widget
-- Fixed bug TTS-1250 Update README about create AppWidget viewer and update some cases
-- Fixed bug TTS-1257 lose a space between package attribute and required_version attribute
-- Add eight cases and delete four cases for security privacy module due to spec change
-- Fixed TTS-1258 to update the description of WRT case other-localization-description-change       and update the index.html in application-privilege
-- Fixed TTS-1246 to remove one-line <app-control> cases in tct-extension-tests
-- Update wrt tests release version for ww16.5.
-- Updated application ID and package attribute for wrt tests
-- [WRT] Delete tizen privilege
-- Merge "[WRT] Delete tizen privilege for packagemanagement module"
-- Merge "[WRT] Delete tizen privilege for security-privacy module"
-- Merge "[WRT] Delete tizen privilege for sanity module"
-- Merge "[WRT] Delete tizen privilege for runtime-ui module"
-- [WRT] Delete tizen privilege for packagemanagement module
-- [WRT] Delete tizen privilege for security-privacy module
-- [WRT] Delete tizen privilege for sanity module
-- [WRT] Delete tizen privilege for runtime-ui module
-- [WRT] Delete tizen privilege for runtime module
-- [WRT] Delete tizen privilege for config extension module
-- [WRT] Fixed bug TTS-1209 and TTS-1201
-- Update ww16.3 release version for wrt tests.
-- Merge "[WRT] Update application id for security privacy module"
-- [WRT] Update application id for security privacy module
-- [WRT] Update application id for packagemanagement module
-- Merge "[WRT] Update application id for runtime-ui module and fixed bug TTS-1211"
-- [WRT] Update application id for runtime-ui module and fixed bug TTS-1211
-- [WRT] Update application id for runtime module
-- [WRT] Update the applicationid of widget app for config extension module
-- [WRT] Fixed bug TTS-1200
-- Merge "[WRT] Fixed bug TTS-1024"
-- [WRT] Fixed bug TTS-1024
-- [WRT] Fixed bug TTS-1072
-- [WRT] Update tests.xml for packagemanagement duo to duplicate purpose
-- update wrt tests release version for ww15.5.
-- Merge "[WRT] Update interface for webapp widget module duo to spec change"
-- Merge "[WRT] Update interface duo to spec change"
-- Merge "[WRT] Update description and interface for runtime module"
-- [WRT] Update interface for webapp widget module duo to spec change
-- [WRT] Update interface duo to spec change
-- [WRT] Update description and interface for runtime module
-- Merge "[WRT] Fixed bug TTS-940"
-- Merge "[WRT] Update the description of tests.xml for packagemanagement module"
-- [WRT] Fixed bug TTS-940
-- [WRT] Update the description of tests.xml for packagemanagement module
-- [WRT] Add ten cases and change interface of tests.xml due to spec change
-- Delete WRTLanucher from wrt acceptance tests.
-- Merge "[WRT] Fixed bug TTS-1165 The description of test steps is not clear"
-- [WRT] Fixed bug TTS-1165 The description of test steps is not clear
-- [WRT] Update icon.png
-- [WRT] Updated tests.xml of tct-runtime-tests module
-- [WRT] Update AppID for acceptance-tests
-- Update configure file for new packagement resource dir.
-- [WRT] Add three cases for package management due to spec changed
-- Update release version for wrt tests ww14.3.
-- Merge "[WRT] Updated sixty cases and add twenty cases for security-privacy duo to spec change"
-- [WRT] Updated sixty cases and add twenty cases for security-privacy duo to spec change
-- [WRT] Add new cases for AppWidget
-- Merge "[WRT] Update tests.xml"
-- [WRT] Update tests.xml
-- [WRT] add cases for tct-runtime-tests due to spec change
-- Update ww13 release version.
-- [WRT] Fixed TTS-1096 Update application id
-- Merge "[WRT/ConfigExtention]Add 10 new cases for testing app-control argument according to 2.0FinalSpec"
-- Merge "[WRT/ConfigExtention]Add 5 new cases for testing install-location argument according to 2.0FinalSpec"
-- Merge "Fixed TTS-1004 to add image path for second argument for case sys-launch-service-image-viewer"
-- [WRT/ConfigExtention]Add 10 new cases for testing app-control argument according to 2.0FinalSpec
-- [WRT/ConfigExtention]Add 5 new cases for testing install-location argument according to 2.0FinalSpec
-- Merge "Fixed TTS-954 for tct-wrtui-tests to update application-rotation-sensor-unable implementation of rotation has been changed"
-- Merge changes Ie69bb479,I346b3081
-- Merge "Fixed TTS-1015 to add the path of resource to play for tct-runtime-tests"
-- Merge "Fixed TTS-1025 to remove 5 double click tests in tct-runtime-tests"
-- Fixed TTS-1004 to add image path for second argument for case sys-launch-service-image-viewer
-- Fixed TTS-953 master for tct-runtime-tests to update case description of tests.xml
-- Added 4 testcases for tct-management-tests according to 2.0 final spec
-- Fixed TTS-1025 to remove 5 double click tests in tct-runtime-tests
-- Fixed TTS-1015 to add the path of resource to play for tct-runtime-tests
-- Fixed TTS-941 for wrt-sanity-tests to update expected result
-- Fixed TTS-941 for tct-privacy-tests to update expected result
-- Updated packaging/wrt.changes
-- Merge "Fixed TTS-892 for tct-extension-tests to change feature name to tizen:privilege name"
-- Merge "Fixed TTS-892 update configuration file and detele cases"
-- Merge "Fixed TTS-892 master for tct-runtime-tests to change feature name to tizen:privilege name"
-- Merge "Fixed TTS-892 master for wrt-sanity-tests to change feature name to tizen:privilege name"
-- Merge "Fixed TTS-892 master for tct-wrtui-tests to change feature name to tizen:privilege name"
-- Update wrt master branch release version.
-- Fixed TTS-892 update configuration file and detele cases
-- Fixed TTS-954 for tct-wrtui-tests to update application-rotation-sensor-unable implementation of rotation has been changed
-- Fixed TTS-892 master for tct-wrtui-tests to change feature name to tizen:privilege name
-- Fixed TTS-892 master for wrt-sanity-tests to change feature name to tizen:privilege name
-- Fixed TTS-892 master for tct-runtime-tests to change feature name to tizen:privilege name
-- Fixed TTS-892 for tct-extension-tests to change feature name to tizen:privilege name
-- Updated packaging/wrt.changes
-- Fix TTS-849 to update feature name and delete case
-- Merge "Fixed TTS-691 master for tct-wrtui-tests to change underline to a hyphen"
-- Merge "Fixed TTS-825 delete wrt-repeat-block-install case because the system will kill all the running progresses when the cpu usage achieves at a high level"
-- Merge "Fixed TTS-823 master for tct-management-tests to update expected result according to spec"
-- Merge changes I4ca51f0e,I3587de87
-- Update version for wrt tests master ww06.3 reelase
-- Fixed TTS-866 master for tct-wrtui-tests to update wrttesthtml to wrttesthtm and update step description of tests.xml
-- Fixed TTS-864 for tct-runtime-tests to update steps in tests.xml
-- Fixed TTS-823 master for tct-management-tests to update expected result according to spec
-- Fixed TTS-825 delete wrt-repeat-block-install case because the system will kill all the running progresses when the cpu usage achieves at a high level
-- Fixed TTS-691 master for tct-wrtui-tests to change underline to a hyphen
-- Merge "update wrt tests master changelogs"
-- update wrt tests master changelogs
-- update sample widget in tct-acceptance-tests.
-- Merge changes Ic5172470,Id5884a6d,Iab855a2a
-- Update wrt tests release version and changelogs.
-- Fixed TTS-710 for tct-privacy-tests and wrt-sanity-tests to add (e) for catch method
-- Fixed TTS-771 master for wrt-sanity-test to sync sanity TC with tct-extension-tests
-- Fixed TTS-784 master for tct-extension-tests and sanity-tests to use a external link instead of a internal one
-- Added packaging/wrt.changes as GBS submit request
-- Merge changes I5c8269a7,I0bfcca81
-- Update wrt tests master release version.
-- Fixed TTS-736 master for tct-runtime-tests to remove 2 case cause of the kill method is removed
-- Fixed TTS-737 master for package-management-tests to remove 1 case and update excepted result cause of file brower is removed
-- Fixed TTS-726 master for wrt-package-management to add a case to test the feature of listing web application in wrt
-- Fixed TTS-691 for tct-wrtui-tests to update screen rotation method
-- Merge changes I8455be18,I9ca6953e
-- Merge "Fixed TTS-717 for stability-tests to remove case wrt-repeat-plug-headset"
-- Update tct-acceptance-tests to align with print info of latest image.
-- Merge "Fixed TTS-711 for config-extension-tests to remove the case of setting-invalid"
-- Fixed TTS-710/714 master for security-privacy-tests to update feature name and script
-- Fixed TTS-714 for wrt-runtime-ui to update the feature name
-- Fixed TTS-710 for sanity-tests to update script in index.html
-- Merge "Fixed TTS-686 to improve the purpose and description of the test step for package management tests"
-- Merge "Fixed TTS-690 master for webruntime to add new cases to check CSS animations in WRT"
-- Merge "Fixed TTS-713 for tct-runtime-tests to change null to NULL"
-- Update master release version for ww04.2 release.
-- Merge "Update wrt tests master version."
-- Update wrt tests master version.
-- Fixed TTS-717 for stability-tests to remove case wrt-repeat-plug-headset
-- Fixed TTS-715 for tct-runtime-tests to update launcher() element in index.html
-- Fix TTS-712 for tct-runtime-tests to change the onblur and onfocus oject from button to text
-- Fixed TTS-711 for config-extension-tests to remove the case of setting-invalid
-- Fixed TTS-713 for tct-runtime-tests to change null to NULL
-- Fixed TTS-690 master for webruntime to add new cases to check CSS animations in WRT
-- Fixed TTS-686 to improve the purpose and description of the test step for package management tests
-- Update master release version for ww02.5 release.
-- Merge "Fix-TTS-582-master-for-package-management-tests-update"
-- Fix-TDIS-2112-master-for-audio-onvolumechange
-- Fix-TTS-648-master-for-multi-touch-event
-- Fix-TTS-648-master-for-changing-addEventListener-to-onload
-- Fix-TDIS-956-master-for-sanity-tests-delete-appstore-cases
-- Fix-TTS-582-master-for-package-management-tests-update
-- Update wrt release version.
-- Update acceptance WRTLauncher for wrt-client issue.
-- Merge changes Ia29fd429,I9bec9a0d
-- Fix-TTS-572-for-security-privacy-tests-update
-- Fix-TTS-572-for-sanity-tests-update
-- Fix-TTS-572-for-config-extension-tests-update
-- Fix-TTS-572-master-for-webruntimeUI-add-new-cases
-- Merge "Fix-TTS-562-master-for-webruntime-icon-license"
-- Fix-TTS-572-master-for-webruntimeUI-update
-- Fix-TTS-572-master-for-webruntime-update
-- Fix-TTS-562-master-for-stability-icon-license
-- Fix-TTS-562-master-for-security-icon-license
-- Fix-TTS-562-master-for-sanity-icon-license
-- Fix-TTS-562-master-for-webruntimeUI-icon-license
-- Fix-TTS-562-master-for-webruntime-icon-license
-- Fix-TTS-535-master-for-updating-feature-name-with-new-device-api-feature-name-space
-- Fix-TTS-534-master-for-updating-feature-name-with-new-device-api-feature-name-space
-- Fix-TTS-530-master-for-updating-feature-name-with-new-device-api-feature-name-space
-- Fix-TTS-531-master-for-updating-feature-name-with-new-device-api-feature-name-space
-- Fix-TTS-532-master-for-updating-feature-name-with-new-device-api-feature-name-space
-- Fix-TTS-482-master-for-updating-config-xml-wgt-name
-- Update master release version for ww52 wrt release.
-- Fix-TTS-441-master-for-updating-interface-according-to-newest-spec
-- Fix-TTS-440-master-for-updating-interface-according-to-newest-spec
-- Merge "Fix-TTS-425-master-for-updating-steps-of-pkm"
-- Merge branch 'master' of rsagerrit:/test/wrt
-- Update wrt acceptance tests.
-- Fix-TTS-433-master-for-adding-new-cases
-- Fix-TTS-425-master-for-updating-steps-of-pkm
-- Fix-TTS-432-master-for-adding-new-cases
-- Fix-TTS-410-master-for-updating-case-type
-- Update ww51 wrt master release version.
-- Merge "Fixed TTS-364 add mew test cases for security privacy module"
-- Fix-TTS-351-master-for-updating-baseline
-- Fix-TTS-350-master-for-updating-baseline
-- Fixed TTS-364 add mew test cases for security privacy module
-- Fix-TTS-351-master-for-changing-full-width-to-half-width
-- Fix-TTS-350-master-for-changing-full-width-to-half-width
-- Fix-TTS-365-master-for-adding-usage-message-in-P3-cases
-- Merge "Fixed TTS-359 Incorrect quotes format"
-- Merge "Fixed TTS-351 Lack contents of the element_type and element_name in <spec_assertion> section"
-- Merge "Fixed TTS-350 Lack contents of the element_type and element_name in <spec_assertion> section"
-- Fixed TTS-359 Incorrect quotes format
-- Fixed TTS-351 Lack contents of the element_type and element_name in <spec_assertion> section
-- Fixed TTS-350 Lack contents of the element_type and element_name in <spec_assertion> section
-- Fixed TTS-343 Lack contents of element_type and element_name in <spec_assertion> section
-- Fixed TTS-342 Lack contents of the element_type and element_name in <spec_assertion> section
-- Fixed-bug-TDIS-958
-- Update tizen wrt test cases for ww50 release.
-- Add test suite user guide doc for wrt tests.
-- Init Tizen WRT tests suites.
-
-* Thu Mar 28 2013 yugang <yugang.fan@intel.com> submit/trunk/20130222.071853@c5efd79
-- [WRT] Fixed TTS-1096 Update application id
-- Merge "[WRT/ConfigExtention]Add 10 new cases for testing app-control argument according to 2.0FinalSpec"
-- Merge "[WRT/ConfigExtention]Add 5 new cases for testing install-location argument according to 2.0FinalSpec"
-- Merge "Fixed TTS-1004 to add image path for second argument for case sys-launch-service-image-viewer"
-- [WRT/ConfigExtention]Add 10 new cases for testing app-control argument according to 2.0FinalSpec
-- [WRT/ConfigExtention]Add 5 new cases for testing install-location argument according to 2.0FinalSpec
-- Merge "Fixed TTS-954 for tct-wrtui-tests to update application-rotation-sensor-unable implementation of rotation has been changed"
-- Merge changes Ie69bb479,I346b3081
-- Merge "Fixed TTS-1015 to add the path of resource to play for tct-runtime-tests"
-- Merge "Fixed TTS-1025 to remove 5 double click tests in tct-runtime-tests"
-- Fixed TTS-1004 to add image path for second argument for case sys-launch-service-image-viewer
-- Fixed TTS-953 master for tct-runtime-tests to update case description of tests.xml
-- Added 4 testcases for tct-management-tests according to 2.0 final spec
-- Fixed TTS-1025 to remove 5 double click tests in tct-runtime-tests
-- Fixed TTS-1015 to add the path of resource to play for tct-runtime-tests
-- Fixed TTS-941 for wrt-sanity-tests to update expected result
-- Fixed TTS-941 for tct-privacy-tests to update expected result
-- Updated packaging/wrt.changes
-- Fixed TTS-954 for tct-wrtui-tests to update application-rotation-sensor-unable implementation of rotation has been changed
-
-* Fri Feb 22 2013 zhiqiang.zhang <zhiqiang.zhang@intel.com> submit/trunk/20130206.112501@14dd3b3
-- Merge "Fixed TTS-892 for tct-extension-tests to change feature name to tizen:privilege name"
-- Merge "Fixed TTS-892 update configuration file and detele cases"
-- Merge "Fixed TTS-892 master for tct-runtime-tests to change feature name to tizen:privilege name"
-- Merge "Fixed TTS-892 master for wrt-sanity-tests to change feature name to tizen:privilege name"
-- Merge "Fixed TTS-892 master for tct-wrtui-tests to change feature name to tizen:privilege name"
-- Update wrt master branch release version.
-- Fixed TTS-892 update configuration file and detele cases
-- Fixed TTS-892 master for tct-wrtui-tests to change feature name to tizen:privilege name
-- Fixed TTS-892 master for wrt-sanity-tests to change feature name to tizen:privilege name
-- Fixed TTS-892 master for tct-runtime-tests to change feature name to tizen:privilege name
-- Fixed TTS-892 for tct-extension-tests to change feature name to tizen:privilege name
-
---2013ww06.3 release --
-* Wed Feb 06 2013 zhiqiang.zhang <zhiqiang.zhang@intel.com> submit/trunk/20130130.124646@3d8d835
-- Fix TTS-849 to update feature name and delete case
-- Merge "Fixed TTS-691 master for tct-wrtui-tests to change underline to a hyphen"
-- Merge "Fixed TTS-825 delete wrt-repeat-block-install case because the system will kill all the running progresses when the cpu usage achieves at a high level"
-- Merge "Fixed TTS-823 master for tct-management-tests to update expected result according to spec"
-- Merge changes I4ca51f0e,I3587de87
-- Update version for wrt tests master ww06.3 reelase
-- Fixed TTS-866 master for tct-wrtui-tests to update wrttesthtml to wrttesthtm and update step description of tests.xml
-- Fixed TTS-864 for tct-runtime-tests to update steps in tests.xml
-- Fixed TTS-823 master for tct-management-tests to update expected result according to spec
-- Fixed TTS-825 delete wrt-repeat-block-install case because the system will kill all the running progresses when the cpu usage achieves at a high level
-- Fixed TTS-691 master for tct-wrtui-tests to change underline to a hyphen
-
-
-----------------------------------------------
-Note: $ gbs changelog --since=COMMIT_ID
-----------------------------------------------
-Please add a new entry in change log to document the bug fix and/or feature
-before your submission.
-You can use "gbs changelog" to generate new entry,
-for details please refer to:
-https://source.tizen.org/documentation/reference/git-build-system/usage/gbs-changelog
diff --git a/signing/README b/signing/README
new file mode 100755 (executable)
index 0000000..7d282eb
--- /dev/null
@@ -0,0 +1,40 @@
+
+This directory contains a tool for singing a widget file
+  with distrubutor and author certificates.
+
+To use this tool You will need:
+ - author ca file (*.ca)
+ - author certificate (*.p12) and password
+ - distributor ca file
+ - distrubutor certificate and password
+
+
+Set up a configuration by placing filling in the default.conf file.
+  DIST_SIGN_FILE is a path to distrubutor certificate
+  DIST_SIGN_PASSWD is a password for distributor certificate
+  AUTHOR_SIGN_FILE is a path to author certificate
+  AUTHOR_SIGN_PASSWD is a password for author certificate
+
+If you replace default.conf file with empty file - then signing
+ will be disabled and no configuration or files will be required.
+
+Author CA file should be placed in certificates/author directory.
+
+
+Create a symbolic link to the sign-widget.sh in /usr/bin:
+
+  sudo ln -sv $PWD/sign-widget.sh /usr/bin/
+
+
+Test the configuration by taking any widget file and executing:
+
+  sign-widget.sh --config default /path/to/the/widget.wgt
+
+  No errors should be reported.
+
+
+Then open a RPM spec file and add command for signing the wiget during package building.
+For example like this (first line is already in the spec file):
+
+zip -rq $RPM_BUILD_ROOT/opt/%name/%name.wgt *
+sign-widget.sh --config default.conf $RPM_BUILD_ROOT/opt/%name/%name.wgt
diff --git a/signing/certificates/author/tizen-developer-signer.ca b/signing/certificates/author/tizen-developer-signer.ca
new file mode 100755 (executable)
index 0000000..7803969
--- /dev/null
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE-----
+MIICpzCCAhCgAwIBAgIJAKzDjmEF+1OXMA0GCSqGSIb3DQEBBQUAMIGTMQswCQYD
+VQQGEwJLUjEOMAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQK
+DA1UaXplbiBUZXN0IENBMSUwIwYDVQQLDBxUaXplbiBUZXN0IERldmVsb3BlciBS
+b290IENBMSUwIwYDVQQDDBxUaXplbiBUZXN0IERldmVsb3BlciBSb290IENBMB4X
+DTEyMTAyOTEzMDEyMloXDTIyMTAyNzEzMDEyMlowgYQxCzAJBgNVBAYTAktSMQ4w
+DAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAUBgNVBAoMDVRpemVuIFRl
+c3QgQ0ExIDAeBgNVBAsMF1RpemVuIERldmVsb3BlciBUZXN0IENBMRswGQYDVQQD
+DBJUaXplbiBEZXZlbG9wZXIgQ0EwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGB
+AMyG0DSTHBgalQo1seDKxpCU61gji+QQlxQkPQOvBrmuF6Z90zFCprTtg2sRjTLC
+NoRd75+VCCHuKGcrD27t7hwAekusPrpzdsq5QoBMvNjGDM22lC45PJ4d86DEDY4e
+rxeJ5aSQxqbfXK4pKe9NwxdkKuA8dTYZM1UcmhXs7YALAgMBAAGjEDAOMAwGA1Ud
+EwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEACbr/OPNMJ+Ejrxfm/YjCiRPpjJLn
+wXS2IDtitbxot6bEdZkZvOFXOC0Ca4GT+jtvOcSlU7tM3Mdd1MrKe1kkoVd1vhCV
+8V4CK3/DPj8aN3rxfMfQitA6XMDcxzhsyMWz56OdifX50dvS/G/ad+kGhNhOOEKS
+E8zUyEDCGwqkfXk=
+-----END CERTIFICATE-----
diff --git a/signing/certificates/author/tizen-developer-signer.p12 b/signing/certificates/author/tizen-developer-signer.p12
new file mode 100755 (executable)
index 0000000..2c42f5c
Binary files /dev/null and b/signing/certificates/author/tizen-developer-signer.p12 differ
diff --git a/signing/certificates/tizen-distributor-parnter-signer.ca b/signing/certificates/tizen-distributor-parnter-signer.ca
new file mode 100644 (file)
index 0000000..c29e620
--- /dev/null
@@ -0,0 +1,18 @@
+-----BEGIN CERTIFICATE-----
+MIICzzCCAjigAwIBAgIJAMNp1nbwir4GMA0GCSqGSIb3DQEBBQUAMIGiMQswCQYD
+VQQGEwJLUjEOMAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQK
+DA1UaXplbiBUZXN0IENBMSIwIAYDVQQLDBlUaXplbiBEaXN0cmlidXRvciBUZXN0
+IENBMTcwNQYDVQQDDC5UaXplbiBQYXJ0bmVyLU1hbnVmYWN0dXJlciBEaXN0cmli
+dXRvciBSb290IENBMB4XDTEyMTIxMzA1NDQyMFoXDTIyMTIxMTA1NDQyMFowgZ0x
+CzAJBgNVBAYTAktSMQ4wDAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAU
+BgNVBAoMDVRpemVuIFRlc3QgQ0ExIjAgBgNVBAsMGVRpemVuIERpc3RyaWJ1dG9y
+IFRlc3QgQ0ExMjAwBgNVBAMMKVRpemVuIFBhcnRuZXItTWFudWZhY3R1cmVyIERp
+c3RyaWJ1dG9yIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMni4Qmv96
+ww/De92kYhtzpas7viwyYoFTTuvcmayDFBuDoaHqrSDsrb9M7qrR4N9higg1mT8a
+9J8CUhPLKhlifK9OwyQsZS+8xVfPfogIJ3wumfjLl5zinqpkSe2ernxOTU+PB5lW
+U8toKbnJO3+jchm14DjCQ4ZoqG26qbG5pQIDAQABoxAwDjAMBgNVHRMEBTADAQH/
+MA0GCSqGSIb3DQEBBQUAA4GBAA9lsDyArDR9balTfqrjN241nVqyLqPOP+MFRjGW
+rIlIyLDcw2/L9hxguD8XhgAanaQUzS06XM6BajDjcSiJrohjoMFkB09M+r5fVkrh
+kT29oABsKXO87+p8JbbbIfdwMUrAjXsrjMUzJ3J6fn86/dn/PcuMAkCgrD069Izp
+E8NM
+-----END CERTIFICATE-----
diff --git a/signing/certificates/tizen-distributor-parnter-signer.p12 b/signing/certificates/tizen-distributor-parnter-signer.p12
new file mode 100644 (file)
index 0000000..957d589
Binary files /dev/null and b/signing/certificates/tizen-distributor-parnter-signer.p12 differ
diff --git a/signing/certificates/tizen-distributor-partner-manufacturer-signer.ca b/signing/certificates/tizen-distributor-partner-manufacturer-signer.ca
new file mode 100644 (file)
index 0000000..c29e620
--- /dev/null
@@ -0,0 +1,18 @@
+-----BEGIN CERTIFICATE-----
+MIICzzCCAjigAwIBAgIJAMNp1nbwir4GMA0GCSqGSIb3DQEBBQUAMIGiMQswCQYD
+VQQGEwJLUjEOMAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQK
+DA1UaXplbiBUZXN0IENBMSIwIAYDVQQLDBlUaXplbiBEaXN0cmlidXRvciBUZXN0
+IENBMTcwNQYDVQQDDC5UaXplbiBQYXJ0bmVyLU1hbnVmYWN0dXJlciBEaXN0cmli
+dXRvciBSb290IENBMB4XDTEyMTIxMzA1NDQyMFoXDTIyMTIxMTA1NDQyMFowgZ0x
+CzAJBgNVBAYTAktSMQ4wDAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAU
+BgNVBAoMDVRpemVuIFRlc3QgQ0ExIjAgBgNVBAsMGVRpemVuIERpc3RyaWJ1dG9y
+IFRlc3QgQ0ExMjAwBgNVBAMMKVRpemVuIFBhcnRuZXItTWFudWZhY3R1cmVyIERp
+c3RyaWJ1dG9yIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMni4Qmv96
+ww/De92kYhtzpas7viwyYoFTTuvcmayDFBuDoaHqrSDsrb9M7qrR4N9higg1mT8a
+9J8CUhPLKhlifK9OwyQsZS+8xVfPfogIJ3wumfjLl5zinqpkSe2ernxOTU+PB5lW
+U8toKbnJO3+jchm14DjCQ4ZoqG26qbG5pQIDAQABoxAwDjAMBgNVHRMEBTADAQH/
+MA0GCSqGSIb3DQEBBQUAA4GBAA9lsDyArDR9balTfqrjN241nVqyLqPOP+MFRjGW
+rIlIyLDcw2/L9hxguD8XhgAanaQUzS06XM6BajDjcSiJrohjoMFkB09M+r5fVkrh
+kT29oABsKXO87+p8JbbbIfdwMUrAjXsrjMUzJ3J6fn86/dn/PcuMAkCgrD069Izp
+E8NM
+-----END CERTIFICATE-----
diff --git a/signing/certificates/tizen-distributor-partner-manufacturer-signer.p12 b/signing/certificates/tizen-distributor-partner-manufacturer-signer.p12
new file mode 100644 (file)
index 0000000..957d589
Binary files /dev/null and b/signing/certificates/tizen-distributor-partner-manufacturer-signer.p12 differ
diff --git a/signing/certificates/tizen-distributor-partner-operator-signer.ca b/signing/certificates/tizen-distributor-partner-operator-signer.ca
new file mode 100644 (file)
index 0000000..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en-distributor-partner-operator-signer.p12 b/signing/certificates/tizen-distributor-partner-operator-signer.p12
new file mode 100644 (file)
index 0000000..0c06734
Binary files /dev/null and b/signing/certificates/tizen-distributor-partner-operator-signer.p12 differ
diff --git a/signing/certificates/tizen-distributor-partner-signer.ca b/signing/certificates/tizen-distributor-partner-signer.ca
new file mode 100644 (file)
index 0000000..7444d43
--- /dev/null
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE-----
+MIICtTCCAh6gAwIBAgIJAKORBcIiXygIMA0GCSqGSIb3DQEBBQUAMIGVMQswCQYD
+VQQGEwJLUjEOMAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQK
+DA1UaXplbiBUZXN0IENBMSIwIAYDVQQLDBlUaXplbiBEaXN0cmlidXRvciBUZXN0
+IENBMSowKAYDVQQDDCFUaXplbiBQYXJ0bmVyIERpc3RyaWJ1dG9yIFJvb3QgQ0Ew
+HhcNMTIxMDI3MDc0NTIwWhcNMjIxMDI1MDc0NTIwWjCBkDELMAkGA1UEBhMCS1Ix
+DjAMBgNVBAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6ZW4g
+VGVzdCBDQTEiMCAGA1UECwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTElMCMG
+A1UEAwwcVGl6ZW4gUGFydG5lciBEaXN0cmlidXRvciBDQTCBnzANBgkqhkiG9w0B
+AQEFAAOBjQAwgYkCgYEA2ZQrdEowjqxUmB8FX8ej19VKY6jGHKNIRE5wrhBkuZ1b
+0FLRPiN3/Cl9wMkCnyJui4QhC28g1aBgw/JnaObcDqW1NgFVH3006+gZvCTDlw1n
+IEjvZa6P+uWOOi05xPPAE0feKPkO1POnOjnapfkkEVNU8TXsLbLYBylWT8rxZC8C
+AwEAAaMQMA4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQBJyJ7p6qs0
+JI+1iKOk/sYWVP6dMueY72qOc/wVj5c3ejOlgJNNXDMAQ14QcRRexffc68ipTwyb
+U/3mtcNwydzKJe+GFa4b2zyKOvOgrfs4MKSR0T9XEPmTKeR+NDT2CbA6/kQoRYm0
+fSORzD2UXJzNZWe/WjwSA66hv4q+0QZQFQ==
+-----END CERTIFICATE-----
diff --git a/signing/certificates/tizen-distributor-partner-signer.p12 b/signing/certificates/tizen-distributor-partner-signer.p12
new file mode 100644 (file)
index 0000000..6364b11
Binary files /dev/null and b/signing/certificates/tizen-distributor-partner-signer.p12 differ
diff --git a/signing/certificates/tizen-distributor-platform-signer.ca b/signing/certificates/tizen-distributor-platform-signer.ca
new file mode 100755 (executable)
index 0000000..c29e620
--- /dev/null
@@ -0,0 +1,18 @@
+-----BEGIN CERTIFICATE-----
+MIICzzCCAjigAwIBAgIJAMNp1nbwir4GMA0GCSqGSIb3DQEBBQUAMIGiMQswCQYD
+VQQGEwJLUjEOMAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQK
+DA1UaXplbiBUZXN0IENBMSIwIAYDVQQLDBlUaXplbiBEaXN0cmlidXRvciBUZXN0
+IENBMTcwNQYDVQQDDC5UaXplbiBQYXJ0bmVyLU1hbnVmYWN0dXJlciBEaXN0cmli
+dXRvciBSb290IENBMB4XDTEyMTIxMzA1NDQyMFoXDTIyMTIxMTA1NDQyMFowgZ0x
+CzAJBgNVBAYTAktSMQ4wDAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAU
+BgNVBAoMDVRpemVuIFRlc3QgQ0ExIjAgBgNVBAsMGVRpemVuIERpc3RyaWJ1dG9y
+IFRlc3QgQ0ExMjAwBgNVBAMMKVRpemVuIFBhcnRuZXItTWFudWZhY3R1cmVyIERp
+c3RyaWJ1dG9yIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMni4Qmv96
+ww/De92kYhtzpas7viwyYoFTTuvcmayDFBuDoaHqrSDsrb9M7qrR4N9higg1mT8a
+9J8CUhPLKhlifK9OwyQsZS+8xVfPfogIJ3wumfjLl5zinqpkSe2ernxOTU+PB5lW
+U8toKbnJO3+jchm14DjCQ4ZoqG26qbG5pQIDAQABoxAwDjAMBgNVHRMEBTADAQH/
+MA0GCSqGSIb3DQEBBQUAA4GBAA9lsDyArDR9balTfqrjN241nVqyLqPOP+MFRjGW
+rIlIyLDcw2/L9hxguD8XhgAanaQUzS06XM6BajDjcSiJrohjoMFkB09M+r5fVkrh
+kT29oABsKXO87+p8JbbbIfdwMUrAjXsrjMUzJ3J6fn86/dn/PcuMAkCgrD069Izp
+E8NM
+-----END CERTIFICATE-----
diff --git a/signing/certificates/tizen-distributor-platform-signer.p12 b/signing/certificates/tizen-distributor-platform-signer.p12
new file mode 100755 (executable)
index 0000000..957d589
Binary files /dev/null and b/signing/certificates/tizen-distributor-platform-signer.p12 differ
diff --git a/signing/certificates/tizen-distributor-public-signer.ca b/signing/certificates/tizen-distributor-public-signer.ca
new file mode 100644 (file)
index 0000000..bb1a74d
--- /dev/null
@@ -0,0 +1,17 @@
+-----BEGIN CERTIFICATE-----
+MIICtDCCAh2gAwIBAgIJAMDbehElPNKvMA0GCSqGSIb3DQEBBQUAMIGVMQswCQYD
+VQQGEwJLUjEOMAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQK
+DA1UaXplbiBUZXN0IENBMSMwIQYDVQQLDBpUVGl6ZW4gRGlzdHJpYnV0b3IgVGVz
+dCBDQTEpMCcGA1UEAwwgVGl6ZW4gUHVibGljIERpc3RyaWJ1dG9yIFJvb3QgQ0Ew
+HhcNMTIxMDI5MTMwMjUwWhcNMjIxMDI3MTMwMjUwWjCBjzELMAkGA1UEBhMCS1Ix
+DjAMBgNVBAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6ZW4g
+VGVzdCBDQTEiMCAGA1UECwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEkMCIG
+A1UEAwwbVGl6ZW4gUHVibGljIERpc3RyaWJ1dG9yIENBMIGfMA0GCSqGSIb3DQEB
+AQUAA4GNADCBiQKBgQDeOTS/3nXvkDEmsFCJIvRlQ3RKDcxdWJJp625pFqHdmoJB
+dV+x6jl1raGK2Y1sp2Gdvpjc/z92yzApbE/UVLPh/tRNZPeGhzU4ejDDm7kzdr2f
+7Ia0U98K+OoY12ucwg7TYNItj9is7Cj4blGfuMDzd2ah2AgnCGlwNwV/pv+uVQID
+AQABoxAwDjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBACqJKO33YdoG
+udwanZIxMdXuxnnD9R6u72ltKk1S4zPfMJJv482CRGCI4FK6djhlsI4i0Lt1SVIJ
+Eed+yc3qckGm19dW+4xdlkekon7pViEBWuyHw8OWv3RXtTum1+PGHjBJ2eYY4ZKI
+pz73U/1NC16sTB/0VhfnkHwPltmrpYVe
+-----END CERTIFICATE-----
diff --git a/signing/certificates/tizen-distributor-public-signer.p12 b/signing/certificates/tizen-distributor-public-signer.p12
new file mode 100644 (file)
index 0000000..041a1fa
Binary files /dev/null and b/signing/certificates/tizen-distributor-public-signer.p12 differ
diff --git a/signing/default.conf b/signing/default.conf
new file mode 100755 (executable)
index 0000000..21b300f
--- /dev/null
@@ -0,0 +1,5 @@
+DIST_SIGN_FILE="certificates/tizen-distributor-platform-signer.p12"
+DIST_SIGN_PASSWD="tizenpkcs12passfordsigner"
+
+AUTHOR_SIGN_FILE="certificates/author/tizen-developer-signer.p12"
+AUTHOR_SIGN_PASSWD="tizenpkcs12passforauthor"
diff --git a/signing/hash-signer.bat b/signing/hash-signer.bat
new file mode 100755 (executable)
index 0000000..c0dc388
--- /dev/null
@@ -0,0 +1,3 @@
+@echo off\r\r
+java -jar "%~dp0/jar/HashSigner.jar" %*\r\r
+echo %*
\ No newline at end of file
diff --git a/signing/hash-signer.sh b/signing/hash-signer.sh
new file mode 100755 (executable)
index 0000000..744b66a
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+java -jar $DIR/jar/HashSigner.jar $*
diff --git a/signing/jar/HashSign.jar b/signing/jar/HashSign.jar
new file mode 100755 (executable)
index 0000000..304dbda
Binary files /dev/null and b/signing/jar/HashSign.jar differ
diff --git a/signing/jar/HashSigner.jar b/signing/jar/HashSigner.jar
new file mode 100755 (executable)
index 0000000..7f53325
Binary files /dev/null and b/signing/jar/HashSigner.jar differ
diff --git a/signing/jar/bcpkix-jdk15on-147.jar b/signing/jar/bcpkix-jdk15on-147.jar
new file mode 100755 (executable)
index 0000000..38fb503
Binary files /dev/null and b/signing/jar/bcpkix-jdk15on-147.jar differ
diff --git a/signing/jar/bcprov-jdk15on-147.jar b/signing/jar/bcprov-jdk15on-147.jar
new file mode 100755 (executable)
index 0000000..0b80922
Binary files /dev/null and b/signing/jar/bcprov-jdk15on-147.jar differ
diff --git a/signing/jar/commons-compress-1.4.1.jar b/signing/jar/commons-compress-1.4.1.jar
new file mode 100755 (executable)
index 0000000..b58761e
Binary files /dev/null and b/signing/jar/commons-compress-1.4.1.jar differ
diff --git a/signing/jar/commons-lang3-3.1.jar b/signing/jar/commons-lang3-3.1.jar
new file mode 100755 (executable)
index 0000000..a85e539
Binary files /dev/null and b/signing/jar/commons-lang3-3.1.jar differ
diff --git a/signing/jar/commons-logging-1.1.1.jar b/signing/jar/commons-logging-1.1.1.jar
new file mode 100755 (executable)
index 0000000..1deef14
Binary files /dev/null and b/signing/jar/commons-logging-1.1.1.jar differ
diff --git a/signing/jar/xml-apis-1.3.04.jar b/signing/jar/xml-apis-1.3.04.jar
new file mode 100755 (executable)
index 0000000..d42c0ea
Binary files /dev/null and b/signing/jar/xml-apis-1.3.04.jar differ
diff --git a/signing/jar/xmlsec-1.5.3.jar b/signing/jar/xmlsec-1.5.3.jar
new file mode 100755 (executable)
index 0000000..bbe5059
Binary files /dev/null and b/signing/jar/xmlsec-1.5.3.jar differ
diff --git a/signing/sign-widget.sh b/signing/sign-widget.sh
new file mode 100755 (executable)
index 0000000..952f871
--- /dev/null
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+SCRIPT_FILE="${BASH_SOURCE[0]}"
+if [ -L "$SCRIPT_FILE" ] ; then
+       SCRIPT_FILE=`readlink "$SCRIPT_FILE"`
+fi
+SCRIPT_DIR=`cd ${SCRIPT_FILE%/*}; pwd`
+
+CONFIG=""
+
+if [ "$1" = "--config" ] ; then
+       CONFIG="$2"
+       shift 2
+fi
+
+CONFIG="${CONFIG:-default}"    # default value of CONFIG
+
+if [ ! -f "$SCRIPT_DIR/$CONFIG" -a -f "$SCRIPT_DIR/$CONFIG.conf" ] ; then
+       CONFIG="$CONFIG.conf"
+elif [ ! -f "$SCRIPT_DIR/$CONFIG" ] ; then
+       echo "Certificate configuration file [ $SCRIPT_DIR/$CONFIG.conf ] not found. Create is and put there for example:
+DIST_SIGN_FILE=\"certificates/distributor-certificate.p12\"
+DIST_SIGN_PASSWD=\"distributor-password\"
+AUTHOR_SIGN_FILE=\"certificates/my-author-certificate.p12\"
+AUTHOR_SIGN_PASSWD=\"my-author-password\"
+
+-- note: file paths are to be either absolute or relative to $SCRIPT_DIR
+-- additionaly: creating empty file $SCRIPT_DIR/$CONFIG.conf will disable widget signing"
+       exit 5
+fi
+
+source "$SCRIPT_DIR/$CONFIG"
+
+if [ -z "$AUTHOR_SIGN_FILE" -a -z "$AUTHOR_SIGN_PASSWD" -a -z "$DIST_SIGN_FILE" -a -z "$DIST_SIGN_PASSWD" ] ; then
+       echo "Empty configuration [ $SCRIPT_DIR/$CONFIG ]. Skipping widget signing."
+       exit 0
+elif [ -z "$AUTHOR_SIGN_FILE" -o -z "$AUTHOR_SIGN_PASSWD" -o -z "$DIST_SIGN_FILE" -o -z "$DIST_SIGN_PASSWD" ] ; then
+       echo "Incomplete configuration [ $SCRIPT_DIR/$CONFIG ].
+It should contain AUTHOR_SIGN_FILE, AUTHOR_SIGN_PASSWD, DIST_SIGN_FILE and DIST_SIGN_PASSWD"
+       exit 6
+fi
+
+# sign the given widget file
+# widget file should be full absolute path
+
+WGT_FILE="$1"
+WGT_TMP_FILE=".tmp.WGT_FILE"
+
+cd "$SCRIPT_DIR"
+./hash-signer.sh -a $AUTHOR_SIGN_FILE -pa $AUTHOR_SIGN_PASSWD -d $DIST_SIGN_FILE -pd $DIST_SIGN_PASSWD -i $WGT_FILE -o $WGT_TMP_FILE
+mv "$WGT_TMP_FILE" "$WGT_FILE"
index a68a8a9..63b24a5 100644 (file)
@@ -30,4 +30,4 @@
 testdefdir = $(datadir)/tct-extension-tests
 dist_testdef_DATA = tests.xml 
 docdir = /opt/tct-extension-tests
-dist_doc_DATA = Changelog README *.wgt
+dist_doc_DATA = Changelog README
index c697571..5a70e84 100755 (executable)
@@ -85,16 +85,28 @@ function check_blackdir()
   return 0
 }
 
+# parse spec required name
+NAME=`grep "Name:" *.spec | awk '{print $2}'`
+if [ -z "$NAME" ];then
+        echo "Name not specified in spec file"
+        exit 1
+fi
+
 if [ $subtype == "wgt" ]; then
     echo "-->> Creating widgets >>--"
+    rm -rf ./wgts
+    mkdir -p ./wgts
     for app in $all_dirs; do
         check_blackdir $app
         if [ $? == 1 ]; then
-           echo "Got a black dir: $app"
+            echo "Got a black dir: $app"
             continue
         elif [ $(find $app|wc -l) -eq 1 ]; then
             echo "No files found in $app, skip it ..."
             continue
+        elif [ $app == "wgts" ]; then
+            echo "Skip wgts dir..."
+            continue
         else
             if [ -f $app.wgt ]; then
                 echo "Delete old packaged file"
@@ -102,14 +114,18 @@ if [ $subtype == "wgt" ]; then
             fi 
             cd $app
             echo "Start pack $app ..."
-                 zip -rq ../$app.wgt *
+            zip -rq ../wgts/$app.wgt *
             if [ $? -ne 0 ]; then
                 pack_fail='TRUE'
                 echo "Create $app.wgt fail, continue to pack others"
+            else
+                cd ../../signing
+                ./sign-widget.sh --config default.conf ../$NAME/wgts/$app.wgt
+                cd -
+                echo -e "Done\n"
             fi
             cd $suite_dir
-            echo -e "Done\n"
-             fi  
+        fi 
     done
     echo "-- Create widgets done --"
 fi
@@ -124,14 +140,6 @@ if [ $pack_fail != 'FALSE' ]; then
 fi
 
 #######################################################################################################
-# parse spec required name
-NAME=`grep "Name:" *.spec | awk '{print $2}'`
-if [ -z "$NAME" ];then
-        echo "Name not specified in spec file"
-        exit 1
-fi
-
-
 # parse spec required version
 VERSION=`grep "Version:" ${NAME}.spec | awk '{print $2}'`
 if [ -z "$VERSION" ];then
@@ -216,7 +224,7 @@ mv $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $PWD -f
 # clean
 echo "cleaning workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
 rm -rf $RPM_ROOT
-rm -rf *.wgt
+rm -rf wgts
 
 # validate
 echo "checking result... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
index bd7b344..684dcc9 100644 (file)
@@ -23,6 +23,9 @@ make
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
+if [ -d "wgts" ]; then
+    cp -a wgts $RPM_BUILD_ROOT/opt/%name/
+fi
 
 cp -a $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name
 cd $RPM_BUILD_DIR
@@ -50,7 +53,7 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -70,12 +73,12 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
        echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
index c697571..5a70e84 100755 (executable)
@@ -85,16 +85,28 @@ function check_blackdir()
   return 0
 }
 
+# parse spec required name
+NAME=`grep "Name:" *.spec | awk '{print $2}'`
+if [ -z "$NAME" ];then
+        echo "Name not specified in spec file"
+        exit 1
+fi
+
 if [ $subtype == "wgt" ]; then
     echo "-->> Creating widgets >>--"
+    rm -rf ./wgts
+    mkdir -p ./wgts
     for app in $all_dirs; do
         check_blackdir $app
         if [ $? == 1 ]; then
-           echo "Got a black dir: $app"
+            echo "Got a black dir: $app"
             continue
         elif [ $(find $app|wc -l) -eq 1 ]; then
             echo "No files found in $app, skip it ..."
             continue
+        elif [ $app == "wgts" ]; then
+            echo "Skip wgts dir..."
+            continue
         else
             if [ -f $app.wgt ]; then
                 echo "Delete old packaged file"
@@ -102,14 +114,18 @@ if [ $subtype == "wgt" ]; then
             fi 
             cd $app
             echo "Start pack $app ..."
-                 zip -rq ../$app.wgt *
+            zip -rq ../wgts/$app.wgt *
             if [ $? -ne 0 ]; then
                 pack_fail='TRUE'
                 echo "Create $app.wgt fail, continue to pack others"
+            else
+                cd ../../signing
+                ./sign-widget.sh --config default.conf ../$NAME/wgts/$app.wgt
+                cd -
+                echo -e "Done\n"
             fi
             cd $suite_dir
-            echo -e "Done\n"
-             fi  
+        fi 
     done
     echo "-- Create widgets done --"
 fi
@@ -124,14 +140,6 @@ if [ $pack_fail != 'FALSE' ]; then
 fi
 
 #######################################################################################################
-# parse spec required name
-NAME=`grep "Name:" *.spec | awk '{print $2}'`
-if [ -z "$NAME" ];then
-        echo "Name not specified in spec file"
-        exit 1
-fi
-
-
 # parse spec required version
 VERSION=`grep "Version:" ${NAME}.spec | awk '{print $2}'`
 if [ -z "$VERSION" ];then
@@ -216,7 +224,7 @@ mv $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $PWD -f
 # clean
 echo "cleaning workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
 rm -rf $RPM_ROOT
-rm -rf *.wgt
+rm -rf wgts
 
 # validate
 echo "checking result... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
@@ -23,6 +23,9 @@ make
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
+if [ -d "wgts" ]; then
+    cp -a wgts $RPM_BUILD_ROOT/opt/%name/
+fi
 
 cp -a $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name
 cd $RPM_BUILD_DIR
@@ -51,7 +54,7 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -71,12 +74,12 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
         echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
index b86b0d3..b48e8e2 100644 (file)
@@ -30,4 +30,4 @@
 testdefdir = $(datadir)/tct-privacy-tests
 dist_testdef_DATA = tests.xml tests.ext.xml
 docdir = /opt/tct-privacy-tests
-dist_doc_DATA = Changelog README *.wgt
+dist_doc_DATA = Changelog README
index c697571..5a70e84 100755 (executable)
@@ -85,16 +85,28 @@ function check_blackdir()
   return 0
 }
 
+# parse spec required name
+NAME=`grep "Name:" *.spec | awk '{print $2}'`
+if [ -z "$NAME" ];then
+        echo "Name not specified in spec file"
+        exit 1
+fi
+
 if [ $subtype == "wgt" ]; then
     echo "-->> Creating widgets >>--"
+    rm -rf ./wgts
+    mkdir -p ./wgts
     for app in $all_dirs; do
         check_blackdir $app
         if [ $? == 1 ]; then
-           echo "Got a black dir: $app"
+            echo "Got a black dir: $app"
             continue
         elif [ $(find $app|wc -l) -eq 1 ]; then
             echo "No files found in $app, skip it ..."
             continue
+        elif [ $app == "wgts" ]; then
+            echo "Skip wgts dir..."
+            continue
         else
             if [ -f $app.wgt ]; then
                 echo "Delete old packaged file"
@@ -102,14 +114,18 @@ if [ $subtype == "wgt" ]; then
             fi 
             cd $app
             echo "Start pack $app ..."
-                 zip -rq ../$app.wgt *
+            zip -rq ../wgts/$app.wgt *
             if [ $? -ne 0 ]; then
                 pack_fail='TRUE'
                 echo "Create $app.wgt fail, continue to pack others"
+            else
+                cd ../../signing
+                ./sign-widget.sh --config default.conf ../$NAME/wgts/$app.wgt
+                cd -
+                echo -e "Done\n"
             fi
             cd $suite_dir
-            echo -e "Done\n"
-             fi  
+        fi 
     done
     echo "-- Create widgets done --"
 fi
@@ -124,14 +140,6 @@ if [ $pack_fail != 'FALSE' ]; then
 fi
 
 #######################################################################################################
-# parse spec required name
-NAME=`grep "Name:" *.spec | awk '{print $2}'`
-if [ -z "$NAME" ];then
-        echo "Name not specified in spec file"
-        exit 1
-fi
-
-
 # parse spec required version
 VERSION=`grep "Version:" ${NAME}.spec | awk '{print $2}'`
 if [ -z "$VERSION" ];then
@@ -216,7 +224,7 @@ mv $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $PWD -f
 # clean
 echo "cleaning workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
 rm -rf $RPM_ROOT
-rm -rf *.wgt
+rm -rf wgts
 
 # validate
 echo "checking result... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
diff --git a/tct-privacy-tests/signature-author/author-signature.xml b/tct-privacy-tests/signature-author/author-signature.xml
deleted file mode 100644 (file)
index 6f2c22d..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="AuthorSignature">
-<SignedInfo>
-<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
-<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
-<Reference URI="config.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>9QqtwSZeGOv0iGA6gG4cPM+VKbc6Bkmh1JuwPVH3Uck=</DigestValue>
-</Reference>
-<Reference URI="index.html">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>XNYhcEHoNtcnWsxMGF+x6mGLaTXCFnzIPlrwyIzS8Jc=</DigestValue>
-</Reference>
-<Reference URI="icon.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>kG1PZqPn8Kc/LI3dSEE77cDZCnQ0fy9j2u47O1Z2K9E=</DigestValue>
-</Reference>
-<Reference URI="#prop">
-<Transforms>
-<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
-</Transforms>
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>lpo8tUDs054eLlBQXiDPVDVKfw30ZZdtkRs1jd7H5K8=</DigestValue>
-</Reference>
-</SignedInfo>
-<SignatureValue>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+1OXMA0GCSqGSIb3DQEBBQUAMIGTMQswCQYDVQQGEwJLUjEO
-MAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQKDA1UaXplbiBUZXN0IENBMSUw
-IwYDVQQLDBxUaXplbiBUZXN0IERldmVsb3BlciBSb290IENBMSUwIwYDVQQDDBxUaXplbiBUZXN0
-IERldmVsb3BlciBSb290IENBMB4XDTEyMTAyOTEzMDEyMloXDTIyMTAyNzEzMDEyMlowgYQxCzAJ
-BgNVBAYTAktSMQ4wDAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAUBgNVBAoMDVRpemVu
-IFRlc3QgQ0ExIDAeBgNVBAsMF1RpemVuIERldmVsb3BlciBUZXN0IENBMRswGQYDVQQDDBJUaXpl
-biBEZXZlbG9wZXIgQ0EwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMyG0DSTHBgalQo1seDK
-xpCU61gji+QQlxQkPQOvBrmuF6Z90zFCprTtg2sRjTLCNoRd75+VCCHuKGcrD27t7hwAekusPrpz
-dsq5QoBMvNjGDM22lC45PJ4d86DEDY4erxeJ5aSQxqbfXK4pKe9NwxdkKuA8dTYZM1UcmhXs7YAL
-AgMBAAGjEDAOMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEACbr/OPNMJ+Ejrxfm/YjC
-iRPpjJLnwXS2IDtitbxot6bEdZkZvOFXOC0Ca4GT+jtvOcSlU7tM3Mdd1MrKe1kkoVd1vhCV8V4C
-K3/DPj8aN3rxfMfQitA6XMDcxzhsyMWz56OdifX50dvS/G/ad+kGhNhOOEKSE8zUyEDCGwqkfXk=
-</X509Certificate>
-</X509Data>
-</KeyInfo>
-<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties"><SignatureProperty Id="profile" Target="#AuthorSignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty><SignatureProperty Id="role" Target="#AuthorSignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-author"></dsp:Role></SignatureProperty><SignatureProperty Id="identifier" Target="#AuthorSignature"><dsp:Identifier></dsp:Identifier></SignatureProperty></SignatureProperties></Object>
-</Signature>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-author/config.xml b/tct-privacy-tests/signature-author/config.xml
deleted file mode 100644 (file)
index 131cb99..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<widget id="http://tizen.org/signature-author" xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"> 
-  <access origin="*"/>
-  <icon src="icon.png" height="123" width="123"/>
-  <content src="index.html"/>
-  <name>signature-notexist</name>
-  <tizen:application id="wrt5sat099.signatureauthor" package="wrt5sat099" required_version="2.1"/>
-</widget>
diff --git a/tct-privacy-tests/signature-author/icon.png b/tct-privacy-tests/signature-author/icon.png
deleted file mode 100644 (file)
index 6bdebd1..0000000
Binary files a/tct-privacy-tests/signature-author/icon.png and /dev/null differ
diff --git a/tct-privacy-tests/signature-author/index.html b/tct-privacy-tests/signature-author/index.html
deleted file mode 100644 (file)
index 7e6009f..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-  
-Authors:
-        Yue, Jianhui <jianhuix.a.yue@intel.com>
-
--->
-
-<html>
-  <head>
-    <title>WRT Test: signature-author</title>
-    <link rel="author" title="Intel" href="http://www.intel.com" />
-    <link rel="help" href="" />
-    <meta name="flags" content="" />
-    <meta name="assert" content="Check if the WRT install the widget that include valid author signature only as a untrusted application" />
-    <meta charset="utf-8">
-  </head>
-</head>
-<body>
- <p>1.Install signature-author.wgt<br>Expected:widget application is unable to install successfully<br>2.Open "settings" select "manage applications" check the package message,<br>confirm the widget is a untrusted application<br>Expected: The "Domain" of widget is "Untrusted"</p>
-</body>
-</html>
diff --git a/tct-privacy-tests/signature-invalid/author-signature.xml b/tct-privacy-tests/signature-invalid/author-signature.xml
deleted file mode 100644 (file)
index de88596..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="AuthorSignature">
-<SignedInfo>
-<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
-<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
-<Reference URI="config.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>7izn5JVgU1/sjNq0LgrM/Ub5Z7XK41E44ecwMvskck8=</DigestValue>
-</Reference>
-<Reference URI="index.html">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>2/GLNcRgEaSDyaMqRcKPV0ZGNNwG0TZGfFPPpj8oCXA=</DigestValue>
-</Reference>
-<Reference URI="icon.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>kG1PZqPn8Kc/LI3dSEE77cDZCnQ0fy9j2u47O1Z2K9E=</DigestValue>
-</Reference>
-<Reference URI="#prop">
-<Transforms>
-<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
-</Transforms>
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>lpo8tUDs054eLlBQXiDPVDVKfw30ZZdtkRs1jd7H5K8=</DigestValue>
-</Reference>
-</SignedInfo>
-<SignatureValue>
-eviqtZ6ZnJoXG++P7DzpWMETd3nlphaLpq6yhXVVERLUs4KL1vF5DgmIXGVFP/RSGJZUapA8J7gm
-4r8+nradiC6KfypnlIsITcPD2dKGWm1R03XWzZeF1cFtc190U+gd9neHZKLH/2yJ5r8UvWIl98r/
-QAnGT4ZxRLOwfXabmgc=
-</SignatureValue>
-<KeyInfo>
-<X509Data>
-<X509Certificate>
-MIICQzCCAaygAwIBAgIGAT5UoKbTMA0GCSqGSIb3DQEBBQUAMIGEMQswCQYDVQQGEwJLUjEOMAwG
-A1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQKDA1UaXplbiBUZXN0IENBMSAwHgYD
-VQQLDBdUaXplbiBEZXZlbG9wZXIgVGVzdCBDQTEbMBkGA1UEAwwSVGl6ZW4gRGV2ZWxvcGVyIENB
-MB4XDTEyMTEwMTAwMDAwMFoXDTE5MDEwMTAwMDAwMFowETEPMA0GA1U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ji+QQlxQkPQOvBrmuF6Z90zFCprTtg2sRjTLCNoRd75+VCCHuKGcrD27t7hwAekusPrpz
-dsq5QoBMvNjGDM22lC45PJ4d86DEDY4erxeJ5aSQxqbfXK4pKe9NwxdkKuA8dTYZM1UcmhXs7YAL
-AgMBAAGjEDAOMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEACbr/OPNMJ+Ejrxfm/YjC
-iRPpjJLnwXS2IDtitbxot6bEdZkZvOFXOC0Ca4GT+jtvOcSlU7tM3Mdd1MrKe1kkoVd1vhCV8V4C
-K3/DPj8aN3rxfMfQitA6XMDcxzhsyMWz56OdifX50dvS/G/ad+kGhNhOOEKSE8zUyEDCGwqkfXk=
-</X509Certificate>
-</X509Data>
-</KeyInfo>
-<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties"><SignatureProperty Id="profile" Target="#AuthorSignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty><SignatureProperty Id="role" Target="#AuthorSignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-author"></dsp:Role></SignatureProperty><SignatureProperty Id="identifier" Target="#AuthorSignature"><dsp:Identifier></dsp:Identifier></SignatureProperty></SignatureProperties></Object>
-</Signature>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-invalid/config.xml b/tct-privacy-tests/signature-invalid/config.xml
deleted file mode 100644 (file)
index d6e8364..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<widget id="http://tizen.org/signature-invalid" xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"> 
-  <access origin="*"/>
-  <icon src="icon.png" height="123" width="123"/>
-  <content src="index.html"/>
-  <name>signature-invalid</name>
-  <tizen:application id="wrt5sin092.signatureinvalid" package="wrt5sin092" required_version="2.1"/>
-</widget>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-invalid/icon.png b/tct-privacy-tests/signature-invalid/icon.png
deleted file mode 100644 (file)
index 6bdebd1..0000000
Binary files a/tct-privacy-tests/signature-invalid/icon.png and /dev/null differ
diff --git a/tct-privacy-tests/signature-invalid/index.html b/tct-privacy-tests/signature-invalid/index.html
deleted file mode 100644 (file)
index 805087a..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-  
-Authors:
-        Yue, Jianhui <jianhuix.a.yue@intel.com>
-
--->
-
-<html>
-  <head>
-    <title>WRT Test: signature-invalid</title>
-    <link rel="author" title="Intel" href="http://www.intel.com" />
-    <link rel="help" href="" />
-    <meta name="flags" content="" />
-    <meta name="assert" content="Check if the WRT not allow the package that is signed with an invalid signature to be installed" />
-    <meta charset="utf-8">
-  </head>
-</head>
-<body>
- <p>1.Install signature-invalid.wgt<br>Expected:widget application is unable to install successfully</p>
-</body>
-</html>
-
diff --git a/tct-privacy-tests/signature-invalid/signature1.xml b/tct-privacy-tests/signature-invalid/signature1.xml
deleted file mode 100644 (file)
index 04f1d39..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="DistributorASignature">
-<SignedInfo>
-<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
-<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
-<Reference URI="config.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-DigestValue>KtAzZ5TG45ra/8g9TOU6lwz+oW2/mTpFHehTYaBf1Ag=</DigestValue>
-</Reference>
-<Reference URI="icon.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>wfwuPIJiNBXrBw5Nl4NE8B7X1QpT3UVtFoiOoAiJsnU=</DigestValue>
-</Reference>
-<Reference URI="index.html">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>zZPTI8C8F13xO21alAVhkh8koivSVJsU3r9RXe2VuLM=</DigestValue>
-</Reference>
-<Reference URI="#prop">
-<Transforms>
-<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
-</Transforms>
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>hY0iyFTYeCv6J8/tzTxWqgJpCXwjbT6gTSnzxXQrE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5fhxEcgnDMZGOp07YWeIFdUmx7eGQANtHqWm7jdbG2j0vS3kGCFgqqPift8a
-pos8llZq3N65mqfLvgjdanC/cP7gR7AC3oCiE9lOSeEYxU5I/UGDjjTRCa+eJfE3UmAz8sVbrWG/
-S5WLPBgd4IQpQ0tNiGd2NLyCqaZXL7U=
-</X509Certificate>
-</X509Data>
-</KeyInfo>
-<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties">
-<SignatureProperty Id="profile" Target="#DistributorASignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty>
-<SignatureProperty Id="role" Target="#DistributorASignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-distributor"></dsp:Role></SignatureProperty>
-<SignatureProperty Id="identifier" Target="#DistributorASignature"><dsp:Identifier></dsp:Identifier></SignatureProperty>
-</SignatureProperties></Object>
-</Signature>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-notexist/config.xml b/tct-privacy-tests/signature-notexist/config.xml
deleted file mode 100644 (file)
index a4ba7d3..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<widget id="http://tizen.org/signature-notexist" xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets"> 
-  <access origin="*"/>
-  <icon src="icon.png" height="123" width="123"/>
-  <content src="index.html"/>
-  <name>signature-notexist</name>
-  <tizen:application id="wrt5sin093.signaturenotexist" package="wrt5sin093" required_version="2.1"/>
-</widget>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-notexist/icon.png b/tct-privacy-tests/signature-notexist/icon.png
deleted file mode 100644 (file)
index 6bdebd1..0000000
Binary files a/tct-privacy-tests/signature-notexist/icon.png and /dev/null differ
diff --git a/tct-privacy-tests/signature-notexist/index.html b/tct-privacy-tests/signature-notexist/index.html
deleted file mode 100644 (file)
index e0d42ea..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-  
-Authors:
-        Yue, Jianhui <jianhuix.a.yue@intel.com>
-
--->
-
-<html>
-  <head>
-    <title>WRT Test: signature-notexist</title>
-    <link rel="author" title="Intel" href="http://www.intel.com" />
-    <link rel="help" href="" />
-    <meta name="flags" content="" />
-    <meta name="assert" content="Check if the WRT install the package that is't contain a signature file as a untrusted application" />
-    <meta charset="utf-8">
-  </head>
-</head>
-<body>
- <p>1.Install signature-notexist.wgt<br>Expected:widget application is unable to install successfully<br>2.Open "settings" select "manage applications" check the package message,<br>confirm the widget is a untrusted application<br>Expected: The "Domain" of widget is "Untrusted"</p>
-</body>
-</html>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-support/author-signature.xml b/tct-privacy-tests/signature-support/author-signature.xml
deleted file mode 100644 (file)
index f4039e7..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="AuthorSignature">
-<SignedInfo>
-<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
-<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
-<Reference URI="config.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>u+8pO0+EZftlpeL1Zu+zLIYTjmU35aXt4WmWqgza9zY=</DigestValue>
-</Reference>
-<Reference URI="index.html">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>JTUeGbUwaaYWqGUCQ6RB5xQk87uoP9ynQnDnKy4jq3M=</DigestValue>
-</Reference>
-<Reference URI="icon.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>kG1PZqPn8Kc/LI3dSEE77cDZCnQ0fy9j2u47O1Z2K9E=</DigestValue>
-</Reference>
-<Reference URI="#prop">
-<Transforms>
-<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
-</Transforms>
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>lpo8tUDs054eLlBQXiDPVDVKfw30ZZdtkRs1jd7H5K8=</DigestValue>
-</Reference>
-</SignedInfo>
-<SignatureValue>
-hORCSjDUrsCk8mHBCvS8qwrjBppiz9T+SQVSLiqIuRWGYgG/q6fQeUqMjgHkm+3jIMgAl5Uk4XFb
-7HOh/kV9VcsS7ZDOKH5RfUaqQ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plbiBUZXN0IENBMSUw
-IwYDVQQLDBxUaXplbiBUZXN0IERldmVsb3BlciBSb290IENBMSUwIwYDVQQDDBxUaXplbiBUZXN0
-IERldmVsb3BlciBSb290IENBMB4XDTEyMTAyOTEzMDEyMloXDTIyMTAyNzEzMDEyMlowgYQxCzAJ
-BgNVBAYTAktSMQ4wDAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAUBgNVBAoMDVRpemVu
-IFRlc3QgQ0ExIDAeBgNVBAsMF1RpemVuIERldmVsb3BlciBUZXN0IENBMRswGQYDVQQDDBJUaXpl
-biBEZXZlbG9wZXIgQ0EwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMyG0DSTHBgalQo1seDK
-xpCU61gji+QQlxQkPQOvBrmuF6Z90zFCprTtg2sRjTLCNoRd75+VCCHuKGcrD27t7hwAekusPrpz
-dsq5QoBMvNjGDM22lC45PJ4d86DEDY4erxeJ5aSQxqbfXK4pKe9NwxdkKuA8dTYZM1UcmhXs7YAL
-AgMBAAGjEDAOMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEACbr/OPNMJ+Ejrxfm/YjC
-iRPpjJLnwXS2IDtitbxot6bEdZkZvOFXOC0Ca4GT+jtvOcSlU7tM3Mdd1MrKe1kkoVd1vhCV8V4C
-K3/DPj8aN3rxfMfQitA6XMDcxzhsyMWz56OdifX50dvS/G/ad+kGhNhOOEKSE8zUyEDCGwqkfXk=
-</X509Certificate>
-</X509Data>
-</KeyInfo>
-<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties"><SignatureProperty Id="profile" Target="#AuthorSignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty><SignatureProperty Id="role" Target="#AuthorSignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-author"></dsp:Role></SignatureProperty><SignatureProperty Id="identifier" Target="#AuthorSignature"><dsp:Identifier></dsp:Identifier></SignatureProperty></SignatureProperties></Object>
-</Signature>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-support/config.xml b/tct-privacy-tests/signature-support/config.xml
deleted file mode 100644 (file)
index 121ddb2..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://tizen.org/signaturesupport" version="1.0.0" viewmodes="maximized">
-    <tizen:application id="wrt5siv094.signaturesupport" package="wrt5siv094" required_version="2.1"/>
-    <content src="index.html"/>
-    <icon src="icon.png"/>
-    <name>signaturesupport</name>
-</widget>
diff --git a/tct-privacy-tests/signature-support/icon.png b/tct-privacy-tests/signature-support/icon.png
deleted file mode 100644 (file)
index 6bdebd1..0000000
Binary files a/tct-privacy-tests/signature-support/icon.png and /dev/null differ
diff --git a/tct-privacy-tests/signature-support/index.html b/tct-privacy-tests/signature-support/index.html
deleted file mode 100644 (file)
index 011acb5..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-  
-Authors:
-        Yue, Jianhui <jianhuix.a.yue@intel.com>
-
--->
-<html>
- <head> 
-  <title>WRT Test: signature-support</title> 
-  <link rel="author" title="Intel" href="http://www.intel.com" /> 
-  <link rel="help" href="" /> 
-  <meta name="flags" content="" /> 
-  <meta name="assert" content="Check if the WRT install the package that is signed with a valid signature as a trusted application" /> 
-  <meta charset="utf-8" /> 
- </head>  
- <body> 
-  <p>1.Install signature-support.wgt<br />Expected: widget application is unable to install successfully<br />2.Open &quot;settings&quot; select &quot;manage applications&quot; check the package message,confirm the widget is a trusted application<br />Expected: The &quot;Domain&quot; of widget is &quot;Trusted&quot;</p>  
- </body>
-</html>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-support/signature1.xml b/tct-privacy-tests/signature-support/signature1.xml
deleted file mode 100644 (file)
index 611c4a8..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="DistributorSignature">
-<SignedInfo>
-<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
-<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
-<Reference URI="author-signature.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>FgAcjSw1CdW1l0mUqMLg5OrbnYYhiFwHsPO0IK6qIdg=</DigestValue>
-</Reference>
-<Reference URI="config.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>u+8pO0+EZftlpeL1Zu+zLIYTjmU35aXt4WmWqgza9zY=</DigestValue>
-</Reference>
-<Reference URI="index.html">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>JTUeGbUwaaYWqGUCQ6RB5xQk87uoP9ynQnDnKy4jq3M=</DigestValue>
-</Reference>
-<Reference URI="icon.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>kG1PZqPn8Kc/LI3dSEE77cDZCnQ0fy9j2u47O1Z2K9E=</DigestValue>
-</Reference>
-<Reference URI="#prop">
-<Transforms>
-<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
-</Transforms>
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>u/jU3U4Zm5ihTMSjKGlGYbWzDfRkGphPPHx3gJIYEJ4=</DigestValue>
-</Reference>
-</SignedInfo>
-<SignatureValue>
-FKuq4ZH8o0LbUqy4fpsfHKxf5xqXED7ZK1YuWcRSrltPVXfAG7+b4kw5MnrTZjBgpmDXhHx+/rDd
-HkZ7zyZdE37McJ+vHqflG9aweEGB4QVOgkVhb9RBEUF5fTekh0dwKt7hyrdlihu4oOzNo+w8wh+c
-YfLHjcQN5xg5Nt7S9bU=
-</SignatureValue>
-<KeyInfo>
-<X509Data>
-<X509Certificate>
-MIICtzCCAiACCQCX7BAlwjllkTANBgkqhkiG9w0BAQUFADCBnTELMAkGA1UEBhMCS1IxDjAMBgNV
-BAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6ZW4gVGVzdCBDQTEiMCAGA1UE
-CwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEyMDAGA1UEAwwpVGl6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TIyMTIx
-MTA1NDQyMFowgZ0xCzAJBgNVBAYTAktSMQ4wDAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24x
-FjAUBgNVBAoMDVRpemVuIFRlc3QgQ0ExIjAgBgNVBAsMGVRpemVuIERpc3RyaWJ1dG9yIFRlc3Qg
-Q0ExMjAwBgNVBAMMKVRpemVuIFBhcnRuZXItTWFudWZhY3R1cmVyIERpc3RyaWJ1dG9yIENBMIGf
-MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMni4Qmv96ww/De92kYhtzpas7viwyYoFTTuvcmayD
-FBuDoaHqrSDsrb9M7qrR4N9higg1mT8a9J8CUhPLKhlifK9OwyQsZS+8xVfPfogIJ3wumfjLl5zi
-nqpkSe2ernxOTU+PB5lWU8toKbnJO3+jchm14DjCQ4ZoqG26qbG5pQIDAQABoxAwDjAMBgNVHRME
-BTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBAA9lsDyArDR9balTfqrjN241nVqyLqPOP+MFRjGWrIlI
-yLDcw2/L9hxguD8XhgAanaQUzS06XM6BajDjcSiJrohjoMFkB09M+r5fVkrhkT29oABsKXO87+p8
-JbbbIfdwMUrAjXsrjMUzJ3J6fn86/dn/PcuMAkCgrD069IzpE8NM
-</X509Certificate>
-</X509Data>
-</KeyInfo>
-<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties"><SignatureProperty Id="profile" Target="#DistributorSignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty><SignatureProperty Id="role" Target="#DistributorSignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-distributor"></dsp:Role></SignatureProperty><SignatureProperty Id="identifier" Target="#DistributorSignature"><dsp:Identifier></dsp:Identifier></SignatureProperty></SignatureProperties></Object>
-</Signature>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-valid/author-signature.xml b/tct-privacy-tests/signature-valid/author-signature.xml
deleted file mode 100644 (file)
index 3f74273..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="AuthorSignature">
-<SignedInfo>
-<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
-<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
-<Reference URI="config.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>iXTJEzu1DyehN9VL/XCP51vGgvkE/r2psz31O4hw0PY=</DigestValue>
-</Reference>
-<Reference URI="index.html">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>+9KlsYjroTcjwxhUpVp3qfl051iDbOw0cKGUlvU+nRY=</DigestValue>
-</Reference>
-<Reference URI="icon.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>kG1PZqPn8Kc/LI3dSEE77cDZCnQ0fy9j2u47O1Z2K9E=</DigestValue>
-</Reference>
-<Reference URI="#prop">
-<Transforms>
-<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
-</Transforms>
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>lpo8tUDs054eLlBQXiDPVDVKfw30ZZdtkRs1jd7H5K8=</DigestValue>
-</Reference>
-</SignedInfo>
-<SignatureValue>
-CcywoceiKS5wKAKFik4jBErPxwE626tkucegdUEXsfbvBtJ/0C+aBXwEX+cIdpMyRrgjJu6vVn/Z
-PLcJhlGrIjZdpzxHHczNlspdtkxtPE6e8sIXHPa9j7BbfGcyO9C19vvTzt/9muEodT5G2NXpWuor
-rKOGfaVw/W7d/9CxmqU=
-</SignatureValue>
-<KeyInfo>
-<X509Data>
-<X509Certificate>
-MIICQzCCAaygAwIBAgIGAT5UoKbTMA0GCSqGSIb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gYQxCzAJ
-BgNVBAYTAktSMQ4wDAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAUBgNVBAoMDVRpemVu
-IFRlc3QgQ0ExIDAeBgNVBAsMF1RpemVuIERldmVsb3BlciBUZXN0IENBMRswGQYDVQQDDBJUaXpl
-biBEZXZlbG9wZXIgQ0EwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMyG0DSTHBgalQo1seDK
-xpCU61gji+QQlxQkPQOvBrmuF6Z90zFCprTtg2sRjTLCNoRd75+VCCHuKGcrD27t7hwAekusPrpz
-dsq5QoBMvNjGDM22lC45PJ4d86DEDY4erxeJ5aSQxqbfXK4pKe9NwxdkKuA8dTYZM1UcmhXs7YAL
-AgMBAAGjEDAOMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEACbr/OPNMJ+Ejrxfm/YjC
-iRPpjJLnwXS2IDtitbxot6bEdZkZvOFXOC0Ca4GT+jtvOcSlU7tM3Mdd1MrKe1kkoVd1vhCV8V4C
-K3/DPj8aN3rxfMfQitA6XMDcxzhsyMWz56OdifX50dvS/G/ad+kGhNhOOEKSE8zUyEDCGwqkfXk=
-</X509Certificate>
-</X509Data>
-</KeyInfo>
-<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties"><SignatureProperty Id="profile" Target="#AuthorSignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty><SignatureProperty Id="role" Target="#AuthorSignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-author"></dsp:Role></SignatureProperty><SignatureProperty Id="identifier" Target="#AuthorSignature"><dsp:Identifier></dsp:Identifier></SignatureProperty></SignatureProperties></Object>
-</Signature>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-valid/config.xml b/tct-privacy-tests/signature-valid/config.xml
deleted file mode 100644 (file)
index 5eb3617..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://tizen.org/signature-valid" version="1.0.0" viewmodes="maximized">
-    <tizen:application id="wrt5siv095.signaturevalid" package="wrt5siv095" required_version="2.1"/>
-    <content src="index.html"/>
-    <icon src="icon.png"/>
-    <name>signature-valid</name>
-</widget>
diff --git a/tct-privacy-tests/signature-valid/icon.png b/tct-privacy-tests/signature-valid/icon.png
deleted file mode 100644 (file)
index 6bdebd1..0000000
Binary files a/tct-privacy-tests/signature-valid/icon.png and /dev/null differ
diff --git a/tct-privacy-tests/signature-valid/index.html b/tct-privacy-tests/signature-valid/index.html
deleted file mode 100644 (file)
index 41f4eb8..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Yue, Jianhui <jianhuix.a.yue@intel.com>
-
--->
-<html>
- <head>
-  <title>WRT Test: signature-valid</title>
-  <link rel="author" title="Intel" href="http://www.intel.com" />
-  <link rel="help" href="" />
-  <meta name="flags" content="" />
-  <meta name="assert" content="Check if the WRT install the package that is signed with a valid signature as a trusted application" />
-  <meta charset="utf-8" />
- </head>
- <body>
-  <p>1.Install signature-valid.wgt<br />Expected: widget application is unable to install successfully<br />2.Open &quot;settings&quot; select &quot;manage applications&quot; check the package message,confirm the widget is a trusted application<br />Expected: The &quot;Domain&quot; of widget is &quot;Trusted&quot;</p>
- </body>
-</html>
\ No newline at end of file
diff --git a/tct-privacy-tests/signature-valid/signature1.xml b/tct-privacy-tests/signature-valid/signature1.xml
deleted file mode 100644 (file)
index 67e68c7..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="DistributorSignature">
-<SignedInfo>
-<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></CanonicalizationMethod>
-<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"></SignatureMethod>
-<Reference URI="author-signature.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>lp3FDoQzuvLy7qWb2e1qxGCBPsImPlNB7yy/r5duDWE=</DigestValue>
-</Reference>
-<Reference URI="config.xml">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>iXTJEzu1DyehN9VL/XCP51vGgvkE/r2psz31O4hw0PY=</DigestValue>
-</Reference>
-<Reference URI="index.html">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>+9KlsYjroTcjwxhUpVp3qfl051iDbOw0cKGUlvU+nRY=</DigestValue>
-</Reference>
-<Reference URI="icon.png">
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>kG1PZqPn8Kc/LI3dSEE77cDZCnQ0fy9j2u47O1Z2K9E=</DigestValue>
-</Reference>
-<Reference URI="#prop">
-<Transforms>
-<Transform Algorithm="http://www.w3.org/2006/12/xml-c14n11"></Transform>
-</Transforms>
-<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"></DigestMethod>
-<DigestValue>u/jU3U4Zm5ihTMSjKGlGYbWzDfRkGphPPHx3gJIYEJ4=</DigestValue>
-</Reference>
-</SignedInfo>
-<SignatureValue>
-m9XnPn2vfH8kc07rEc+FlO53kiG4qqYIs+j6iroU511KXigoHFXLbO003MX11VxR8tcBJdYX0edO
-G8Jnrms4VuxYWLTUSQ8kgWBSqcnJZjGcZiWFA32apSy5m/Ms2mDw8Rrssl6iVoLjR/C4DOSCiIGb
-ME17YAV5wZBjLaK5nrU=
-</SignatureValue>
-<KeyInfo>
-<X509Data>
-<X509Certificate>
-MIICtzCCAiACCQCX7BAlwjllkTANBgkqhkiG9w0BAQUFADCBnTELMAkGA1UEBhMCS1IxDjAMBgNV
-BAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6ZW4gVGVzdCBDQTEiMCAGA1UE
-CwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEyMDAGA1UEAwwpVGl6ZW4gUGFydG5lci1NYW51
-ZmFjdHVyZXIgRGlzdHJpYnV0b3IgQ0EwHhcNMTIxMjEzMDU0NDI3WhcNMjIxMjExMDU0NDI3WjCB
-oTELMAkGA1UEBhMCS1IxDjAMBgNVBAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwN
-VGl6ZW4gV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pemVuIFBhcnRuZXItTWFudWZhY3R1cmVyIERpc3RyaWJ1dG9yIENBMIGf
-MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMni4Qmv96ww/De92kYhtzpas7viwyYoFTTuvcmayD
-FBuDoaHqrSDsrb9M7qrR4N9higg1mT8a9J8CUhPLKhlifK9OwyQsZS+8xVfPfogIJ3wumfjLl5zi
-nqpkSe2ernxOTU+PB5lWU8toKbnJO3+jchm14DjCQ4ZoqG26qbG5pQIDAQABoxAwDjAMBgNVHRME
-BTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBAA9lsDyArDR9balTfqrjN241nVqyLqPOP+MFRjGWrIlI
-yLDcw2/L9hxguD8XhgAanaQUzS06XM6BajDjcSiJrohjoMFkB09M+r5fVkrhkT29oABsKXO87+p8
-JbbbIfdwMUrAjXsrjMUzJ3J6fn86/dn/PcuMAkCgrD069IzpE8NM
-</X509Certificate>
-</X509Data>
-</KeyInfo>
-<Object Id="prop"><SignatureProperties xmlns:dsp="http://www.w3.org/2009/xmldsig-properties"><SignatureProperty Id="profile" Target="#DistributorSignature"><dsp:Profile URI="http://www.w3.org/ns/widgets-digsig#profile"></dsp:Profile></SignatureProperty><SignatureProperty Id="role" Target="#DistributorSignature"><dsp:Role URI="http://www.w3.org/ns/widgets-digsig#role-distributor"></dsp:Role></SignatureProperty><SignatureProperty Id="identifier" Target="#DistributorSignature"><dsp:Identifier></dsp:Identifier></SignatureProperty></SignatureProperties></Object>
-</Signature>
\ No newline at end of file
index 8669bcc..1cb07cf 100644 (file)
@@ -23,6 +23,9 @@ make
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
+if [ -d "wgts" ]; then
+    cp -a wgts $RPM_BUILD_ROOT/opt/%name/
+fi
 
 cp -a $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name
 cd $RPM_BUILD_DIR
@@ -50,7 +53,7 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -70,12 +73,12 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
         echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
index cd2d147..8c9f47f 100644 (file)
@@ -30,4 +30,4 @@
 testdefdir = $(datadir)/tct-runtime-tests
 dist_testdef_DATA = tests.xml 
 docdir = /opt/tct-runtime-tests
-dist_doc_DATA = Changelog README *.wgt
+dist_doc_DATA = Changelog README
index c697571..5a70e84 100755 (executable)
@@ -85,16 +85,28 @@ function check_blackdir()
   return 0
 }
 
+# parse spec required name
+NAME=`grep "Name:" *.spec | awk '{print $2}'`
+if [ -z "$NAME" ];then
+        echo "Name not specified in spec file"
+        exit 1
+fi
+
 if [ $subtype == "wgt" ]; then
     echo "-->> Creating widgets >>--"
+    rm -rf ./wgts
+    mkdir -p ./wgts
     for app in $all_dirs; do
         check_blackdir $app
         if [ $? == 1 ]; then
-           echo "Got a black dir: $app"
+            echo "Got a black dir: $app"
             continue
         elif [ $(find $app|wc -l) -eq 1 ]; then
             echo "No files found in $app, skip it ..."
             continue
+        elif [ $app == "wgts" ]; then
+            echo "Skip wgts dir..."
+            continue
         else
             if [ -f $app.wgt ]; then
                 echo "Delete old packaged file"
@@ -102,14 +114,18 @@ if [ $subtype == "wgt" ]; then
             fi 
             cd $app
             echo "Start pack $app ..."
-                 zip -rq ../$app.wgt *
+            zip -rq ../wgts/$app.wgt *
             if [ $? -ne 0 ]; then
                 pack_fail='TRUE'
                 echo "Create $app.wgt fail, continue to pack others"
+            else
+                cd ../../signing
+                ./sign-widget.sh --config default.conf ../$NAME/wgts/$app.wgt
+                cd -
+                echo -e "Done\n"
             fi
             cd $suite_dir
-            echo -e "Done\n"
-             fi  
+        fi 
     done
     echo "-- Create widgets done --"
 fi
@@ -124,14 +140,6 @@ if [ $pack_fail != 'FALSE' ]; then
 fi
 
 #######################################################################################################
-# parse spec required name
-NAME=`grep "Name:" *.spec | awk '{print $2}'`
-if [ -z "$NAME" ];then
-        echo "Name not specified in spec file"
-        exit 1
-fi
-
-
 # parse spec required version
 VERSION=`grep "Version:" ${NAME}.spec | awk '{print $2}'`
 if [ -z "$VERSION" ];then
@@ -216,7 +224,7 @@ mv $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $PWD -f
 # clean
 echo "cleaning workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
 rm -rf $RPM_ROOT
-rm -rf *.wgt
+rm -rf wgts
 
 # validate
 echo "checking result... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
index d4c3427..50d6afa 100644 (file)
@@ -23,6 +23,9 @@ make
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
+if [ -d "wgts" ]; then
+    cp -a wgts $RPM_BUILD_ROOT/opt/%name/
+fi
 
 cp -a $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name
 cd $RPM_BUILD_DIR
@@ -50,7 +53,7 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -70,12 +73,12 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
         echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
index dce0fa7..4be84db 100644 (file)
@@ -30,4 +30,4 @@
 testdefdir = $(datadir)/tct-stability-tests
 dist_testdef_DATA = tests.xml 
 docdir = /opt/tct-stability-tests
-dist_doc_DATA = Changelog README *.wgt
+dist_doc_DATA = Changelog README
index c697571..5a70e84 100755 (executable)
@@ -85,16 +85,28 @@ function check_blackdir()
   return 0
 }
 
+# parse spec required name
+NAME=`grep "Name:" *.spec | awk '{print $2}'`
+if [ -z "$NAME" ];then
+        echo "Name not specified in spec file"
+        exit 1
+fi
+
 if [ $subtype == "wgt" ]; then
     echo "-->> Creating widgets >>--"
+    rm -rf ./wgts
+    mkdir -p ./wgts
     for app in $all_dirs; do
         check_blackdir $app
         if [ $? == 1 ]; then
-           echo "Got a black dir: $app"
+            echo "Got a black dir: $app"
             continue
         elif [ $(find $app|wc -l) -eq 1 ]; then
             echo "No files found in $app, skip it ..."
             continue
+        elif [ $app == "wgts" ]; then
+            echo "Skip wgts dir..."
+            continue
         else
             if [ -f $app.wgt ]; then
                 echo "Delete old packaged file"
@@ -102,14 +114,18 @@ if [ $subtype == "wgt" ]; then
             fi 
             cd $app
             echo "Start pack $app ..."
-                 zip -rq ../$app.wgt *
+            zip -rq ../wgts/$app.wgt *
             if [ $? -ne 0 ]; then
                 pack_fail='TRUE'
                 echo "Create $app.wgt fail, continue to pack others"
+            else
+                cd ../../signing
+                ./sign-widget.sh --config default.conf ../$NAME/wgts/$app.wgt
+                cd -
+                echo -e "Done\n"
             fi
             cd $suite_dir
-            echo -e "Done\n"
-             fi  
+        fi 
     done
     echo "-- Create widgets done --"
 fi
@@ -124,14 +140,6 @@ if [ $pack_fail != 'FALSE' ]; then
 fi
 
 #######################################################################################################
-# parse spec required name
-NAME=`grep "Name:" *.spec | awk '{print $2}'`
-if [ -z "$NAME" ];then
-        echo "Name not specified in spec file"
-        exit 1
-fi
-
-
 # parse spec required version
 VERSION=`grep "Version:" ${NAME}.spec | awk '{print $2}'`
 if [ -z "$VERSION" ];then
@@ -216,7 +224,7 @@ mv $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $PWD -f
 # clean
 echo "cleaning workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
 rm -rf $RPM_ROOT
-rm -rf *.wgt
+rm -rf wgts
 
 # validate
 echo "checking result... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
index 294a962..b59514f 100644 (file)
@@ -23,6 +23,9 @@ make
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
+if [ -d "wgts" ]; then
+    cp -a wgts $RPM_BUILD_ROOT/opt/%name/
+fi
 
 cp -a $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name
 cd $RPM_BUILD_DIR
@@ -50,7 +53,7 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -70,12 +73,12 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
        echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
index 78a1a93..72339ee 100644 (file)
@@ -30,4 +30,4 @@
 testdefdir = $(datadir)/tct-widget-tests
 dist_testdef_DATA = tests.xml
 docdir = /opt/tct-widget-tests
-dist_doc_DATA = Changelog README *.wgt
+dist_doc_DATA = Changelog README
index f93e2bc..5a70e84 100755 (executable)
@@ -45,7 +45,7 @@ while getopts t:s: o; do
         type=$OPTARG
         ;;
     s)
-    subtype=$OPTARG
+       subtype=$OPTARG
         ;;
     *)
         echo $USAGE
@@ -85,35 +85,51 @@ function check_blackdir()
   return 0
 }
 
+# parse spec required name
+NAME=`grep "Name:" *.spec | awk '{print $2}'`
+if [ -z "$NAME" ];then
+        echo "Name not specified in spec file"
+        exit 1
+fi
+
 if [ $subtype == "wgt" ]; then
     echo "-->> Creating widgets >>--"
+    rm -rf ./wgts
+    mkdir -p ./wgts
     for app in $all_dirs; do
         check_blackdir $app
         if [ $? == 1 ]; then
-        echo "Got a black dir: $app"
+            echo "Got a black dir: $app"
             continue
         elif [ $(find $app|wc -l) -eq 1 ]; then
             echo "No files found in $app, skip it ..."
             continue
+        elif [ $app == "wgts" ]; then
+            echo "Skip wgts dir..."
+            continue
         else
             if [ -f $app.wgt ]; then
                 echo "Delete old packaged file"
                 rm -rf $app.wgt
-            fi
+            fi 
             cd $app
             echo "Start pack $app ..."
-              zip -rq ../$app.wgt *
+            zip -rq ../wgts/$app.wgt *
             if [ $? -ne 0 ]; then
                 pack_fail='TRUE'
                 echo "Create $app.wgt fail, continue to pack others"
+            else
+                cd ../../signing
+                ./sign-widget.sh --config default.conf ../$NAME/wgts/$app.wgt
+                cd -
+                echo -e "Done\n"
             fi
             cd $suite_dir
-            echo -e "Done\n"
-           fi
+        fi 
     done
     echo "-- Create widgets done --"
 fi
-
+   
 if [ $subtype == "crx" ]; then
     echo "Reserved for crx format ..."
 fi
@@ -124,14 +140,6 @@ if [ $pack_fail != 'FALSE' ]; then
 fi
 
 #######################################################################################################
-# parse spec required name
-NAME=`grep "Name:" *.spec | awk '{print $2}'`
-if [ -z "$NAME" ];then
-        echo "Name not specified in spec file"
-        exit 1
-fi
-
-
 # parse spec required version
 VERSION=`grep "Version:" ${NAME}.spec | awk '{print $2}'`
 if [ -z "$VERSION" ];then
@@ -216,7 +224,7 @@ mv $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $PWD -f
 # clean
 echo "cleaning workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
 rm -rf $RPM_ROOT
-rm -rf *.wgt
+rm -rf wgts
 
 # validate
 echo "checking result... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
index 31c7e65..e67ac92 100644 (file)
@@ -23,6 +23,9 @@ make
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
+if [ -d "wgts" ]; then
+    cp -a wgts $RPM_BUILD_ROOT/opt/%name/
+fi
 
 cp -a $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name
 cd $RPM_BUILD_DIR
@@ -50,7 +53,7 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -70,12 +73,12 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
         echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn
index e3dc69a..3f14099 100644 (file)
@@ -30,4 +30,4 @@
 testdefdir = $(datadir)/tct-wrtui-tests
 dist_testdef_DATA = tests.xml 
 docdir = /opt/tct-wrtui-tests
-dist_doc_DATA = Changelog *.wgt
+dist_doc_DATA = Changelog
index c697571..5a70e84 100755 (executable)
@@ -85,16 +85,28 @@ function check_blackdir()
   return 0
 }
 
+# parse spec required name
+NAME=`grep "Name:" *.spec | awk '{print $2}'`
+if [ -z "$NAME" ];then
+        echo "Name not specified in spec file"
+        exit 1
+fi
+
 if [ $subtype == "wgt" ]; then
     echo "-->> Creating widgets >>--"
+    rm -rf ./wgts
+    mkdir -p ./wgts
     for app in $all_dirs; do
         check_blackdir $app
         if [ $? == 1 ]; then
-           echo "Got a black dir: $app"
+            echo "Got a black dir: $app"
             continue
         elif [ $(find $app|wc -l) -eq 1 ]; then
             echo "No files found in $app, skip it ..."
             continue
+        elif [ $app == "wgts" ]; then
+            echo "Skip wgts dir..."
+            continue
         else
             if [ -f $app.wgt ]; then
                 echo "Delete old packaged file"
@@ -102,14 +114,18 @@ if [ $subtype == "wgt" ]; then
             fi 
             cd $app
             echo "Start pack $app ..."
-                 zip -rq ../$app.wgt *
+            zip -rq ../wgts/$app.wgt *
             if [ $? -ne 0 ]; then
                 pack_fail='TRUE'
                 echo "Create $app.wgt fail, continue to pack others"
+            else
+                cd ../../signing
+                ./sign-widget.sh --config default.conf ../$NAME/wgts/$app.wgt
+                cd -
+                echo -e "Done\n"
             fi
             cd $suite_dir
-            echo -e "Done\n"
-             fi  
+        fi 
     done
     echo "-- Create widgets done --"
 fi
@@ -124,14 +140,6 @@ if [ $pack_fail != 'FALSE' ]; then
 fi
 
 #######################################################################################################
-# parse spec required name
-NAME=`grep "Name:" *.spec | awk '{print $2}'`
-if [ -z "$NAME" ];then
-        echo "Name not specified in spec file"
-        exit 1
-fi
-
-
 # parse spec required version
 VERSION=`grep "Version:" ${NAME}.spec | awk '{print $2}'`
 if [ -z "$VERSION" ];then
@@ -216,7 +224,7 @@ mv $RPM_ROOT/SOURCES/$NAME-$VERSION.$ARCHIVE_TYPE $PWD -f
 # clean
 echo "cleaning workspace... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
 rm -rf $RPM_ROOT
-rm -rf *.wgt
+rm -rf wgts
 
 # validate
 echo "checking result... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
index 4f785f0..788359f 100644 (file)
@@ -23,6 +23,9 @@ make
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
+if [ -d "wgts" ]; then
+    cp -a wgts $RPM_BUILD_ROOT/opt/%name/
+fi
 
 cp -a $RPM_BUILD_ROOT $RPM_BUILD_DIR/%name
 cd $RPM_BUILD_DIR
@@ -50,7 +53,7 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       echo "Start install package $i_pkg"
       [ -e $i_pkg ] && $wgt_installer -i $i_pkg
@@ -70,12 +73,12 @@ fi
 
 which $wgt_installer > /dev/null 2>&1
 if [ $? -eq 0 ]; then
-    wgt_list=`find /opt/%name -name "*.wgt"`
+    wgt_list=`find /opt/%name/wgts -name "*.wgt"`
     for i_pkg in $wgt_list; do
       i_pkg_names=`basename $i_pkg`
       i_pkg_name=${i_pkg_names%.*}
       echo "Uninstall package $i_pkg_name"
-      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $4 }'`
+      i_pkg_nns=`wrt-launcher -l | grep $i_pkg_name | awk '{ print $NF }'`
       for i_pkg_nn in $i_pkg_nns; do
         echo "Package Name is $i_pkg_nn"
         $wgt_installer -un $i_pkg_nn