tct_2.3.1_release 85/48285/1
authorjh0219.han <jh0219.han@samsung.com>
Thu, 17 Sep 2015 06:26:11 +0000 (15:26 +0900)
committerjh0219.han <jh0219.han@samsung.com>
Thu, 17 Sep 2015 06:26:11 +0000 (15:26 +0900)
Change-Id: If14b61c8e7a24bf4694cc917933fc1c047de30e7

12 files changed:
LICENSE [new file with mode: 0755]
Makefile.am [new file with mode: 0755]
README [new file with mode: 0755]
autogen [new file with mode: 0755]
configure.ac [new file with mode: 0755]
dist_2.3.sh [new file with mode: 0755]
doc/Coding_Style_Guide_CheatSheet.docx [new file with mode: 0755]
doc/Coding_Style_Guide_CheatSheet.pdf [new file with mode: 0755]
doc/Web_Test_Suite_Developer_Guide.docx [new file with mode: 0755]
doc/Web_Test_Suite_Developer_Guide.pdf [new file with mode: 0755]
inst.sh [new file with mode: 0755]
packall.sh [new file with mode: 0755]

diff --git a/LICENSE b/LICENSE
new file mode 100755 (executable)
index 0000000..68870ce
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,25 @@
+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.
+
diff --git a/Makefile.am b/Makefile.am
new file mode 100755 (executable)
index 0000000..040cbf3
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = mobile
diff --git a/README b/README
new file mode 100755 (executable)
index 0000000..edc1cea
--- /dev/null
+++ b/README
@@ -0,0 +1,78 @@
+1. How to build from source
+
+1.1. Package installation
+    Check that the following packages are installed on the target platform. 
+     (Install them if they are not installed yet.)
+     gcc, make, zip, automake, autoconf
+
+1.2. Get signing tool to sign Tizen Device API related WGT.
+    Get signing tool and put it under tools/ folder
+     # mkdir -p /path/to/webapi/tools
+     # cp -ar /path/to/signing /path/to/webapi/tools/
+
+1.3. Package test suite in one of the 2 ways:
+    (1) Clone the repo, and build packages using packall.sh
+     # ./packall.sh -t wgt
+     Then tct-xxx-tests zip packages will be generated under each suite folder.
+
+    (2) Enter into each test suite folder, and then run the following command:
+     # /pack.sh -t wgt
+     Then a tct-xxx-tests zip package will be generated.
+
+2. How to install test suite
+    To install a test suite, run the following command:
+     # rpm -ivh tct-xxx-tests.rpm
+     (tct-xxx-tests.rpm is the package generated in step 1.2.)
+
+3. How to run WebAPI test suite
+    You can use either of the following methods to run a WebAPI test suite.
+
+3.1 Run with WRTLauncher 
+    # WRTLauncher tct-xxx-tests
+    All test cases within tct-xxx-tests are executed. 
+    
+    Or
+
+3.2 Run test suite on different platforms
+    Please refer to the document "doc/Guide_to_Run_WebAPI_Test_Suite.pdf"
+
+    Or
+
+3.3 Run with Testkit-Lite
+    Testkit is an open source project, which aims to provide a 
+    generic test framework. For more information about Testkit, 
+    refer to https://tizendev.org/gerrit/ -> test/testkit
+    Testkit-Lite installation is required before you use 
+    it to run a WebAPI test suite.
+    Download Testkit-Lite from https://download.tizendev.org/live/Tizen:/Test/
+    and install it to target platform by following guidelines below.
+    
+    To run test cases:
+    To run test cases, execute the following command:
+    #testkit-lite -e "WRTLauncher tct-xxx-tests" -f /usr/share/tct-xxx-tests/tests.xml -o ~/tct-xxx-tests.result.xml 
+    Test result is archived at ~/tct-xxx-tests.result.xml. 
+    Alternatively, you can save the test result to other files by "-o" option.
+    
+    Testlit-Lite provides rich options. For further information, 
+    refer to the guilde in its code repo https://tizendev.org/gerrit/ -> test/testkit
+    
+    If you want to run only manual test cases, execute the following command:
+    #testkit-lite -e "WRTLauncher tct-xxx-tests" -f /usr/share/tct-xxx-tests/tests.xml -o ~/tct-xxx-tests.result.xml -M
+    The manual harness is loaded as below:
+    
+    Note: All manual cases within tests.xml will be listed in Select Box by case ID. 
+    (1) Click the "Run" button to load the test case scripts file
+        (If the scripts file is empty, the "Run" button will be disabled.)
+    (2) Select test result (PASS or FAIL) for the manual test cases. 
+    (3) Click the "<<Prev" button to submit the test result of current test case and to switch to previous cases.
+    (4) Click the "Next>>" button to submit the test result of current test case and switch to next cases.
+    (5) Click the "Submit" button to submit the test result of current test case.
+
+4. Known issue:
+    (1) Sometimes testkit-lite will hang while launching test widget, you need restart the test.
+
+5. LICENSE
+
+Except as noted in COPYING and/or NOTICE files, or as headed with license info,
+test suite source code uses a BSD-style license that can be found in the
+LICENSE file.
diff --git a/autogen b/autogen
new file mode 100755 (executable)
index 0000000..633fd89
--- /dev/null
+++ b/autogen
@@ -0,0 +1,33 @@
+#!/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>
+#
+
+autoreconf --install
+automake --add-missing --copy >/dev/null 2>&1
diff --git a/configure.ac b/configure.ac
new file mode 100755 (executable)
index 0000000..216a84e
--- /dev/null
@@ -0,0 +1,40 @@
+##
+# 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>
+#          Zhiqiang Zhang <zhiqiang.zhang@intel.com>
+#          Jiehua Xiong <jiehuax.xiong@intel.com>
+#
+
+AC_INIT([webapi], [2.3.1], [zhiqiang.zhang@intel.com])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+
+AC_CONFIG_FILES([Makefile])
+AC_CONFIG_SUBDIRS([
+    mobile
+])
+AC_OUTPUT
diff --git a/dist_2.3.sh b/dist_2.3.sh
new file mode 100755 (executable)
index 0000000..0ee4c90
--- /dev/null
@@ -0,0 +1,227 @@
+COMMON_SUITE="tct-2dtransforms-css3-tests
+tct-3dtransforms-css3-tests
+tct-alarm-tizen-tests
+tct-animations-css3-tests
+tct-animationtiming-w3c-tests
+tct-application-tizen-tests
+tct-appwgt-wrt-tests
+tct-archive-tizen-tests
+tct-audio-html5-tests
+tct-badge-tizen-tests
+tct-batterystatus-w3c-tests
+tct-bluetooth-tizen-tests
+tct-canvas-html5-tests
+tct-capability-tests
+tct-colors-css3-tests
+tct-content-tizen-tests
+tct-cors-w3c-tests
+tct-csp-w3c-tests
+tct-deviceorientation-w3c-tests
+tct-dnd-html5-tests
+tct-download-tizen-tests
+tct-exif-tizen-tests
+tct-ext02-wrt-tests
+tct-flexiblebox-css3-tests
+tct-fonts-css3-tests
+tct-gumallow-w3c-tests
+tct-geoallow-w3c-tests
+tct-geodeny-w3c-tests
+tct-humanactivitymonitor-tizen-tests
+tct-jsenhance-html5-tests
+tct-maxLength-wrt-tests
+tct-mediakey-tizen-tests
+tct-messageport-tizen-tests
+tct-mediacapture-w3c-tests
+tct-nfc-tizen-tests
+tct-notification-tizen-tests
+tct-package-tizen-tests
+tct-pm-wrt-tests
+tct-power-tizen-tests
+tct-privilege-tizen-tests
+tct-push-tizen-tests
+tct-rt01-wrt-tests
+tct-rt02-wrt-tests
+tct-sandbox-html5-tests
+tct-secureelement-tizen-tests
+tct-security-tcs-tests
+tct-selectorslevel1-w3c-tests
+tct-selectorslevel2-w3c-tests
+tct-sensor-tizen-tests
+tct-sessionhistory-html5-tests
+tct-sound-tizen-tests
+tct-speech-w3c-tests
+tct-sp01-wrt-tests
+tct-sp02-wrt-tests
+tct-stab-wrt-tests
+tct-svg-html5-tests
+tct-systemsetting-tizen-tests
+tct-testconfig
+tct-text-css3-tests
+tct-time-tizen-tests
+tct-tizen-tizen-tests
+tct-transitions-css3-tests
+tct-typedarrays-nonw3c-tests
+tct-ui-css3-tests
+tct-webgl-nonw3c-tests
+tct-webstorage-w3c-tests
+tct-wgtapi01-w3c-tests
+tct-wgtapi02-w3c-tests
+tct-widgetpolicy-w3c-tests
+tct-touchevent-w3c-tests
+tct-vibration-w3c-tests"
+
+MOBILE_SUITE="tct-account-tizen-tests
+tct-appcache-html5-tests
+tct-appcontrol-tizen-tests
+tct-backgrounds-css3-tests
+tct-behavior-tests
+tct-bookmark-tizen-tests
+tct-browserstate-html5-tests
+tct-calendar-tizen-tests
+tct-callhistory-tizen-tests
+tct-contact-tizen-tests
+tct-datacontrol-tizen-tests
+tct-ext01-wrt-tests
+tct-extra-html5-tests
+tct-fileapi-w3c-tests
+tct-filesystem-tizen-tests
+tct-filesystemapi-w3c-tests
+tct-filewriterapi-w3c-tests
+tct-fmradio-tizen-tests
+tct-forms-html5-tests
+tct-fullscreen-nonw3c-tests
+tct-indexeddb-w3c-tests
+tct-namespace-tizen-tests
+tct-mediaqueries-css3-tests
+tct-messaging-email-tizen-tests
+tct-messaging-mms-tizen-tests
+tct-messaging-sms-tizen-tests
+tct-multicolumn-css3-tests
+tct-navigationtiming-w3c-tests
+tct-networkbearerselection-tizen-tests
+tct-notification-w3c-tests
+tct-pagevisibility-w3c-tests
+tct-privilege-wrt-tests
+tct-sap-tizen-tests
+tct-screenorientation-w3c-tests
+tct-sse-w3c-tests
+tct-systeminfo-tizen-tests
+tct-ui01-wrt-tests
+tct-video-html5-tests
+tct-webaudio-w3c-tests
+tct-webdatabase-w3c-tests
+tct-webmessaging-w3c-tests
+tct-websetting-tizen-tests
+tct-websocket-w3c-tests
+tct-webuifw-tests01
+tct-webuifw-tests02
+tct-webuifw-tests03
+tct-webuifw-tests04
+tct-webuifw-tests05
+tct-webuifw-tests06
+tct-widget01-w3c-tests
+tct-widget02-w3c-tests
+tct-workers-w3c-tests
+tct-xmlhttprequest-w3c-tests"
+
+WEARABLE_SUITE="tct-backgrounds-css3-tests
+tct-behavior-tests
+tct-camera-nonw3c-tests
+tct-ext01-wrt-tests
+tct-extra-html5-tests
+tct-fileapi-w3c-tests
+tct-filesystem-tizen-tests
+tct-forms-html5-tests
+tct-indexeddb-w3c-tests
+tct-irled-webapis-tests
+tct-namespace-tizen-tests
+tct-mediaqueries-css3-tests
+tct-pagevisibility-w3c-tests
+tct-privilege-wrt-tests
+tct-systeminfo-tizen-tests
+tct-ui01-wrt-tests
+tct-video-html5-tests
+tct-webmessaging-w3c-tests
+tct-websocket-w3c-tests
+tct-webuifw-tests
+tct-widget01-w3c-tests
+tct-widget02-w3c-tests
+tct-workers-w3c-tests
+tct-xmlhttprequest-w3c-tests"
+#parse params
+usage="Usage: ./pack.sh [-t <package type: wgt | apk | crx | xpk>]
+[-t wgt] option was set as default."
+
+if [[ $1 == "-h" || $1 == "--help" ]]; then
+    echo $usage
+    exit 1
+fi
+
+type="wgt"
+while getopts t: o
+do
+    case "$o" in
+    t) type=$OPTARG;;
+    *) echo $usage
+       exit 1;;
+    esac
+done
+
+if [[ $type == "wgt" || $type == "apk" || $type == "crx" || $type == "xpk" ]];then
+    echo "Create package with $type and raw source"
+else 
+    echo "Sorry,$type is not support... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+    echo "$usage"
+    exit 1
+fi
+
+root_dir=$PWD
+dist_dir=$PWD/../dist/web-tct_2.3.1_r1
+
+if [ ! -d "$dist_dir" ]; then
+mkdir  $dist_dir
+mkdir  $dist_dir/package
+mkdir  $dist_dir/package/common
+mkdir  $dist_dir/package/mobile
+mkdir  $dist_dir/package/wearable
+mkdir  $dist_dir/package/pkg_infos
+fi
+
+
+
+
+
+if [[ $1 == "delete" ]]; then
+       rm -f $dist_dir/package/common/*.zip
+               rm -f $dist_dir/package/mobile/*.zip
+               rm -f $dist_dir/package/wearable/*.zip
+               cd $root_dir
+fi
+
+if [[ $1 == "common" || $1 == "all" || $1 == "2.3" ]]; then
+       for suite in $COMMON_SUITE;do
+       cd ./common/$suite
+       ./pack.sh -t $type
+       mv -f ./$suite-*.zip $dist_dir/package/common/
+       cd $root_dir
+       done
+fi
+
+if [[ $1 == "mobile" || $1 == "all" || $1 == "2.3" ]]; then
+    for suite in $MOBILE_SUITE;do
+        cd ./mobile/$suite
+        ./pack.sh -t $type
+        mv -f ./$suite-*.zip $dist_dir/package/mobile/
+        cd $root_dir
+    done
+fi
+
+if [[ $1 == "wearable" || $1 == "all" || $1 == "2.3" ]]; then
+    for suite in $WEARABLE_SUITE;do
+        cd ./wearable/$suite
+        ./pack.sh -t $type
+        mv -f ./$suite-*.zip $dist_dir/package/wearable/
+        cd $root_dir
+    done
+fi
+
diff --git a/doc/Coding_Style_Guide_CheatSheet.docx b/doc/Coding_Style_Guide_CheatSheet.docx
new file mode 100755 (executable)
index 0000000..413f0c4
Binary files /dev/null and b/doc/Coding_Style_Guide_CheatSheet.docx differ
diff --git a/doc/Coding_Style_Guide_CheatSheet.pdf b/doc/Coding_Style_Guide_CheatSheet.pdf
new file mode 100755 (executable)
index 0000000..ef5f75c
Binary files /dev/null and b/doc/Coding_Style_Guide_CheatSheet.pdf differ
diff --git a/doc/Web_Test_Suite_Developer_Guide.docx b/doc/Web_Test_Suite_Developer_Guide.docx
new file mode 100755 (executable)
index 0000000..ec98853
Binary files /dev/null and b/doc/Web_Test_Suite_Developer_Guide.docx differ
diff --git a/doc/Web_Test_Suite_Developer_Guide.pdf b/doc/Web_Test_Suite_Developer_Guide.pdf
new file mode 100755 (executable)
index 0000000..c7f73ab
Binary files /dev/null and b/doc/Web_Test_Suite_Developer_Guide.pdf differ
diff --git a/inst.sh b/inst.sh
new file mode 100755 (executable)
index 0000000..59a6bf1
--- /dev/null
+++ b/inst.sh
@@ -0,0 +1,65 @@
+#!/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=$5
+prefix=/opt/usr/media/tct
+
+mkdir -p $BUILD_DIR/$SUB_PKG_NAME/opt
+cp -ar $BUILD_ROOT/$prefix/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/icon.png       $BUILD_DIR/$SUB_PKG_NAME
+cp -af $BUILD_DIR/$VERSION/$SUB_PKG_NAME/config.xml.wgt   $BUILD_DIR/$SUB_PKG_NAME/config.xml
+
+cd $BUILD_DIR/$SUB_PKG_NAME
+
+cat > index.html << EOF
+<!doctype html>
+<head>
+    <meta http-equiv="Refresh" content="1; url=opt/$SUB_PKG_NAME/webrunner/index.html?testsuite=$prefix/opt/$SUB_PKG_NAME/tests.xml">
+</head>
+EOF
+
+mkdir -p $BUILD_ROOT/opt/$SUB_PKG_NAME
+
+rm -f `find * -name *.wgt`
+
+zip -rq $BUILD_ROOT/$prefix/opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt *
+
+if [ $4 -eq 1 ];then
+hash-signer.sh -ad -p platform $BUILD_ROOT/$prefix/opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt
+fi
+
+cd -
+
+rm -rf $BUILD_DIR/$SUB_PKG_NAME
diff --git a/packall.sh b/packall.sh
new file mode 100755 (executable)
index 0000000..b072491
--- /dev/null
@@ -0,0 +1,212 @@
+COMMON_SUITE="tct-2dtransforms-css3-tests
+tct-3dtransforms-css3-tests
+tct-alarm-tizen-tests
+tct-animations-css3-tests
+tct-animationtiming-w3c-tests
+tct-application-tizen-tests
+tct-appwgt-wrt-tests
+tct-archive-tizen-tests
+tct-audio-html5-tests
+tct-badge-tizen-tests
+tct-bluetooth-tizen-tests
+tct-canvas-html5-tests
+tct-capability-tests
+tct-colors-css3-tests
+tct-content-tizen-tests
+tct-cors-w3c-tests
+tct-csp-w3c-tests
+tct-download-tizen-tests
+tct-dynamicbox-wrt-tests
+tct-exif-tizen-tests
+tct-ext02-wrt-tests
+tct-flexiblebox-css3-tests
+tct-fonts-css3-tests
+tct-forms-html5-tests
+tct-gumallow-w3c-tests
+tct-geoallow-w3c-tests
+tct-geodeny-w3c-tests
+tct-humanactivitymonitor-tizen-tests
+tct-jsenhance-html5-tests
+tct-mediakey-tizen-tests
+tct-messageport-tizen-tests
+tct-notification-tizen-tests
+tct-package-tizen-tests
+tct-pm-wrt-tests
+tct-power-tizen-tests
+tct-privilege-tizen-tests
+tct-push-tizen-tests
+tct-rt01-wrt-tests
+tct-rt02-wrt-tests
+tct-sandbox-html5-tests
+tct-security-tcs-tests
+tct-selectorslevel1-w3c-tests
+tct-selectorslevel2-w3c-tests
+tct-sensor-tizen-tests
+tct-sessionhistory-html5-tests
+tct-sound-tizen-tests
+tct-speech-w3c-tests
+tct-sp01-wrt-tests
+tct-sp02-wrt-tests
+tct-stab-wrt-tests
+tct-svg-html5-tests
+tct-systemsetting-tizen-tests
+tct-text-css3-tests
+tct-time-tizen-tests
+tct-tizen-tizen-tests
+tct-transitions-css3-tests
+tct-typedarrays-nonw3c-tests
+tct-ui-css3-tests
+tct-webgl-nonw3c-tests
+tct-webstorage-w3c-tests
+tct-wgtapi01-w3c-tests
+tct-wgtapi02-w3c-tests
+tct-widgetpolicy-w3c-tests"
+
+MOBILE_SUITE="tct-account-tizen-tests
+tct-appcache-html5-tests
+tct-appcontrol-tizen-tests
+tct-backgrounds-css3-tests
+tct-batterystatus-w3c-tests
+tct-behavior-tests
+tct-bookmark-tizen-tests
+tct-browserstate-html5-tests
+tct-calendar-tizen-tests
+tct-callhistory-tizen-tests
+tct-contact-tizen-tests
+tct-dnd-html5-tests
+tct-datacontrol-tizen-tests
+tct-datasync-tizen-tests
+tct-deviceorientation-w3c-tests
+tct-ext01-wrt-tests
+tct-extra-html5-tests
+tct-fileapi-w3c-tests
+tct-filesystem-tizen-tests
+tct-filesystemapi-w3c-tests
+tct-filewriterapi-w3c-tests
+tct-fmradio-tizen-tests
+tct-fullscreen-nonw3c-tests
+tct-indexeddb-w3c-tests
+tct-namespace-tizen-tests
+tct-mediacapture-w3c-tests
+tct-mediaqueries-css3-tests
+tct-messaging-email-tizen-tests
+tct-messaging-mms-tizen-tests
+tct-messaging-sms-tizen-tests
+tct-multicolumn-css3-tests
+tct-navigationtiming-w3c-tests
+tct-networkbearerselection-tizen-tests
+tct-nfc-tizen-tests
+tct-notification-w3c-tests
+tct-pagevisibility-w3c-tests
+tct-sap-tizen-tests
+tct-screenorientation-w3c-tests
+tct-secureelement-tizen-tests
+tct-sse-w3c-tests
+tct-systeminfo-tizen-tests
+tct-testconfig
+tct-touchevent-w3c-tests
+tct-ui01-wrt-tests
+tct-vibration-w3c-tests
+tct-video-html5-tests
+tct-webaudio-w3c-tests
+tct-webdatabase-w3c-tests
+tct-webmessaging-w3c-tests
+tct-websetting-tizen-tests
+tct-websocket-w3c-tests
+tct-webuifw-tests01
+tct-webuifw-tests02
+tct-webuifw-tests03
+tct-webuifw-tests04
+tct-webuifw-tests05
+tct-webuifw-tests06
+tct-widget01-w3c-tests
+tct-widget02-w3c-tests
+tct-workers-w3c-tests
+tct-xmlhttprequest-w3c-tests"
+
+WEARABLE_SUITE="tct-backgrounds-css3-tests
+tct-batterystatus-w3c-tests
+tct-behavior-tests
+tct-camera-nonw3c-tests
+tct-deviceorientation-w3c-tests
+tct-ext01-wrt-tests
+tct-extra-html5-tests
+tct-fileapi-w3c-tests
+tct-filesystem-tizen-tests
+tct-indexeddb-w3c-tests
+tct-irled-webapis-tests
+tct-namespace-tizen-tests
+tct-mediaqueries-css3-tests
+tct-pagevisibility-w3c-tests
+tct-systeminfo-tizen-tests
+tct-testconfig
+tct-touchevent-w3c-tests
+tct-ui01-wrt-tests
+tct-vibration-w3c-tests
+tct-video-html5-tests
+tct-webmessaging-w3c-tests
+tct-websocket-w3c-tests
+tct-webuifw-tests
+tct-widget01-w3c-tests
+tct-widget02-w3c-tests
+tct-workers-w3c-tests
+tct-xmlhttprequest-w3c-tests"
+#parse params
+usage="Usage: ./packall.sh [-t <package type: wgt | apk | crx | xpk>] [mobile | wearable]
+[-t wgt] option was set as default."
+
+if [[ $1 == "-h" || $1 == "--help" ]]; then
+    echo $usage
+    exit 1
+fi
+
+type="wgt"
+while getopts t: o
+do
+    case "$o" in
+    t) type=$OPTARG;;
+    *) echo $usage
+       exit 1;;
+    esac
+done
+
+if [[ $type == "wgt" || $type == "apk" || $type == "crx" || $type == "xpk" ]];then
+    echo "Create package with $type and raw source"
+else
+    echo "Sorry,$type is not support... >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
+    echo "$usage"
+    exit 1
+fi
+
+root_dir=$PWD
+dist_dir=$PWD/packages
+rm -rf $dist_dir
+mkdir packages
+
+mkdir $dist_dir/common
+for suite in $COMMON_SUITE;do
+    cd $root_dir/common/$suite
+    ./pack.sh -t $type
+    mv -f ./$suite-*.zip $dist_dir/common/
+    cd $root_dir
+done
+
+if [[ $1 == "mobile" || $1 == "m" ]]; then
+    mkdir $dist_dir/mobile
+    for suite in $MOBILE_SUITE;do
+        cd $root_dir/mobile/$suite
+        ./pack.sh -t $type
+        mv -f ./$suite-*.zip $dist_dir/mobile/
+        cd $root_dir
+    done
+fi
+
+if [[ $1 == "wearable" || $1 == "w" ]]; then
+    mkdir $dist_dir/wearable
+    for suite in $WEARABLE_SUITE;do
+        cd $root_dir/wearable/$suite
+        ./pack.sh -t $type
+        mv -f ./$suite-*.zip $dist_dir/wearable/
+        cd $root_dir
+    done
+fi