From: jiehua.xiong Date: Thu, 22 Aug 2013 07:23:15 +0000 (+0800) Subject: Updated build files X-Git-Tag: 2.2.1_release~236^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46236e2302aa4fa19ef420f68a39148775f9316c;p=test%2Ftct%2Fweb%2Fapi.git Updated build files Change-Id: I2f106db3a8ad66206af6d90d0b90a048458edee7 --- diff --git a/Makefile.am b/Makefile.am index 88f09ece1..d69e90712 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/configure.ac b/configure.ac index 671b9743b..41c524b24 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/packaging/tct-webapi.spec b/packaging/tct-webapi.spec index 77df1cef4..6cc054675 100755 --- a/packaging/tct-webapi.spec +++ b/packaging/tct-webapi.spec @@ -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