----------------------------------------------
License
----------------------------------------------
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:
        Zhang, GeX <gex.zhang@intel.com>



----------------------------------------------
Introduction
----------------------------------------------
This test suite is for W3C Widget Packing and XML Configuration specification testing:

http://www.w3.org/TR/2011/REC-widgets-20110927/


----------------------------------------------
Test Environment
----------------------------------------------
1. Pre-install Testkit-Lite package on Host(ubuntu12.04 and ubuntu12.10).
   sudo apt-get install python-pip
   sudo pip install requests
   sudo dpkg -i testkit-lite-<version>.deb
2. Push "testkit-stub" into test machine.
   sdb root on
   sdb push testkit-stub /usr/bin
   sdb shell chmod +x /usr/bin/testkit-stub
3. Run the cases as "normal" user.


----------------------------------------------
Build and Run
----------------------------------------------
(Suppose you only get the source code which has been set up on your test machine.
 If you have obtained tct-widget01-w3c-tests ZIP packages, you can directly go to step 3 on the test machine)

Steps:
1. Prepare for building by running the following command:
   cd tct-widget01-w3c-tests

2. Build ZIP package by running the following command:
   ./pack.sh

3. Unzip the package on the test machine by running the following command:
   unzip -o tct-widget01-w3c-tests-<version>.zip -d /opt/usr/media/tct

4. Install the package on the test machine by running the following command:
   /opt/usr/media/tct/opt/tct-widget01-w3c-tests/inst.sh

5. Run test cases by running the following command on host:
   testkit-lite -f device:/opt/usr/media/tct/opt/tct-widget01-w3c-tests/tests.xml -e "WRTLauncher" -o tct-widget01-w3c-tests.results.xml
