Updated build files
authorjiehua.xiong <jiehuax.xiong@intel.com>
Thu, 22 Aug 2013 07:23:15 +0000 (15:23 +0800)
committerjiehua.xiong <jiehuax.xiong@intel.com>
Thu, 22 Aug 2013 07:23:15 +0000 (15:23 +0800)
Change-Id: I2f106db3a8ad66206af6d90d0b90a048458edee7

Makefile.am
configure.ac
packaging/tct-webapi.spec

index 88f09ece1335b9a0d9825363878b0be6c6154836..d69e90712eab2f4dcb6131a3938564de9933a479 100644 (file)
@@ -99,6 +99,7 @@ tct-fileapi-w3c-tests \
 tct-filesystemapi-w3c-tests \
 tct-filewriterapi-w3c-tests \
 tct-geoallow-w3c-tests \
+tct-geodeny-w3c-tests \
 tct-gumallow-w3c-tests \
 tct-indexeddb-w3c-tests \
 tct-mediacapture-w3c-tests \
index 671b9743b3d2b9aedf99933eda3f785c427d6004..41c524b2420828ba595386f8ae38b41972f5dd84 100644 (file)
@@ -105,6 +105,7 @@ AC_CONFIG_SUBDIRS([
     tct-filesystemapi-w3c-tests
     tct-filewriterapi-w3c-tests
     tct-geoallow-w3c-tests
+    tct-geodeny-w3c-tests
     tct-gumallow-w3c-tests
     tct-indexeddb-w3c-tests
     tct-mediacapture-w3c-tests
index 77df1cef45a38c229efcdde3e68c628c40b42dec..6cc0546756838d532278b131d2eba291a8649da9 100755 (executable)
@@ -861,6 +861,18 @@ BuildRequires: hash-signer
 %description -n tct-geoallow-w3c-tests
 This is webapi w3c geoallow test suite package
 
+%package -n tct-geodeny-w3c-tests
+Summary: Webapi w3c geodeny test suite
+Version: 2.3.6
+Release: 1
+License: BSD
+Group: test/tct/webapi
+BuildRequires: zip
+BuildRequires: hash-signer
+
+%description -n tct-geodeny-w3c-tests
+This is webapi w3c geodeny test suite package
+
 %package -n tct-gumallow-w3c-tests
 Summary: Webapi w3c gumallow test suite
 Version: 2.3.6
@@ -1217,6 +1229,7 @@ sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "1" "tct-security-tcs-tests"
 sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "1" "tct-geoallow-w3c-tests"
 sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "1" "tct-gumallow-w3c-tests"
 sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "1" "tct-deviceorientation-w3c-tests"
+sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "0" "tct-geodeny-w3c-tests"
 sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "0" "tct-2dtransforms-css3-tests"
 sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "0" "tct-3dtransforms-css3-tests"
 sh inst.sh $RPM_BUILD_ROOT $RPM_BUILD_DIR %name "0" "tct-animations-css3-tests"
@@ -1870,8 +1883,10 @@ rm -rf /opt/unpacked_crx/$SUB_PKG_NAME
 /opt/tct-content-tizen-tests
 /usr/share/tct-content-tizen-tests
 /opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_audio_default.mp3
+/opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_audio_no_tag.mp3
 /opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_audio_lyrics.mp3
 /opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_video.mp4
+/opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_video_tagged.mp4
 /opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_image_default.jpg
 /opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_image_geolocation.jpg
 /opt/usr/media/tct-content-tizen-tests/tct-content-tizen-tests_image_orientation_1.jpg
@@ -5054,6 +5069,58 @@ fi
 
 rm -rf /opt/unpacked_crx/$SUB_PKG_NAME
 
+%files -n tct-geodeny-w3c-tests
+/opt/tct-geodeny-w3c-tests
+/usr/share/tct-geodeny-w3c-tests
+
+%post -n tct-geodeny-w3c-tests
+SUB_PKG_NAME=tct-geodeny-w3c-tests
+wgt_installer="wrt-installer"
+
+type $wgt_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+    [ -e /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt ] && $wgt_installer -i /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt
+    if [ $? -eq 0 ]; then
+        echo "Install /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt to /opt/usr/apps/`wrt-launcher -l 2> /dev/null | grep $SUB_PKG_NAME | tail -n 1 | awk '{ print $NF }'` done"
+        echo "$(wrt-launcher -l | grep $SUB_PKG_NAME | awk '{ print $(NF-1) }') sdbd rw" | smackload
+    else
+        echo "Install /opt/$SUB_PKG_NAME/$SUB_PKG_NAME.wgt fail ..."
+    fi
+    sync
+fi
+
+%postun -n tct-geodeny-w3c-tests
+SUB_PKG_NAME=tct-geodeny-w3c-tests
+wgt_installer="wrt-installer"
+
+type $wgt_installer > /dev/null 2>&1
+if [ $? -eq 0 ]; then
+    package_id=`wrt-launcher -l 2> /dev/null | grep $SUB_PKG_NAME | tail -n 1 | awk '{ print $NF }'`
+    if [ -n "$(ps -ef | grep $package_id | grep -v grep | awk '{print $2}')" ]; then
+        for i in $(ps -ef | grep $package_id | grep -v grep | awk '{print $2}')
+        do
+            kill -9 $i
+            if [ "$?" -ne 0 ]; then
+                echo "Kill the processes of $SUB_PKG_NAME fail ..."
+            else
+                echo "Kill the processes of $SUB_PKG_NAME done"
+            fi
+        done
+    fi
+
+    if [ -n "$package_id" ]; then
+        $wgt_installer -un $package_id
+        if [ "$?" -ne 0 ]; then
+                echo "Uninstall $SUB_PKG_NAME fail ..."
+        else
+                echo "Uninstall $SUB_PKG_NAME done"
+        fi
+        sync
+    fi
+fi
+
+rm -rf /opt/unpacked_crx/$SUB_PKG_NAME
+
 %files -n tct-gumallow-w3c-tests
 /opt/tct-gumallow-w3c-tests
 /usr/share/tct-gumallow-w3c-tests