commit ldtp for openSUSE:Factory
Hello community, here is the log from the commit of package ldtp for openSUSE:Factory checked in at Thu Mar 26 01:15:01 CET 2009. -------- --- ldtp/ldtp.changes 2009-02-10 19:57:28.000000000 +0100 +++ ldtp/ldtp.changes 2009-03-15 00:27:06.000000000 +0100 @@ -1,0 +2,22 @@ +Wed Mar 11 09:32:27 CET 2009 - mboman@suse.de + +- Update to version 1.5.1: + + Fixes bgo#574787, bgo#574789, bgo#574791, bgo#574793 + + Log all failures and take screenshot on each failure + + Create default log file in /tmp/ldtp-$USER + + Screenshot using pygtk, instead of ImageMagick import, when + possible + + Added new api - appundertest +- Remove glib-devel and gail-devel from BuildRequires +- Add gtk2-devel to BuildRequires +- Remove AutoReqProv. It's default +- Remove Requires for main package. It's automatic +- Remove version from Requires in ldtp-python package +- Remove CLAGS="$RPM_OPT_FLAGS". It's default +- Replace %{__make} install DESTDIR=$RPM_BUILD_ROOT with + %makeinstall +- Clean up files section +- Replace BuildRequires python-devel and Requires python with + %py_requires + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- ldtp-1.5.0.tar.bz2 New: ---- ldtp-1.5.1.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ldtp.spec ++++++ --- /var/tmp/diff_new_pack.j21871/_old 2009-03-26 01:12:08.000000000 +0100 +++ /var/tmp/diff_new_pack.j21871/_new 2009-03-26 01:12:08.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package ldtp (Version 1.5.0) +# spec file for package ldtp (Version 1.5.1) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -19,22 +19,19 @@ Name: ldtp -BuildRequires: at-spi-devel gail-devel glib-devel intltool libxml2-devel python python-devel -#%define prefix /usr +BuildRequires: at-spi-devel +BuildRequires: gtk2-devel +BuildRequires: intltool +BuildRequires: libxml2-devel License: GPL v2 or later; LGPL v2.1 or later Group: Productivity/Other -AutoReqProv: on -Requires: python -Version: 1.5.0 +Version: 1.5.1 Release: 1 Summary: Linux Desktop Testing Project (LDTP) Url: http://ldtp.freedesktop.org Source: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: libxml2 -Requires: at-spi >= 1.2.0 -Requires: glib2 >= 2.2.0 -Requires: python >= 2.3.0 +%py_requires %description GNU/Linux Desktop Testing Project (GNU/LDTP) is aimed at producing a @@ -72,7 +69,7 @@ License: LGPL v2.1 or later Summary: Linux Desktop Testing Project (LDTP) Group: Productivity/Other -Requires: python >= 2.3.0 +Requires: python %description -n ldtp-python GNU/Linux Desktop Testing Project (GNU/LDTP) is aimed at producing high @@ -113,11 +110,11 @@ %build %configure -%{__make} CFLAGS="$RPM_OPT_FLAGS" +make %{?jobs:-j%jobs} %install export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%makeinstall unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL %clean @@ -127,8 +124,7 @@ %defattr(-, root, root) %doc AUTHORS NEWS README COPYING %{_bindir}/ldtp* -%{_bindir}/ldtpcodegen -%{_bindir}/ldtpeditor +%exclude %{_bindir}/ldtprunner %{_datadir}/ldtp %files -n ldtp-python @@ -137,6 +133,25 @@ /usr/%{_lib}/python%{py_ver}/site-packages/* %changelog +* Wed Mar 11 2009 mboman@suse.de +- Update to version 1.5.1: + + Fixes bgo#574787, bgo#574789, bgo#574791, bgo#574793 + + Log all failures and take screenshot on each failure + + Create default log file in /tmp/ldtp-$USER + + Screenshot using pygtk, instead of ImageMagick import, when + possible + + Added new api - appundertest +- Remove glib-devel and gail-devel from BuildRequires +- Add gtk2-devel to BuildRequires +- Remove AutoReqProv. It's default +- Remove Requires for main package. It's automatic +- Remove version from Requires in ldtp-python package +- Remove CLAGS="$RPM_OPT_FLAGS". It's default +- Replace %%{__make} install DESTDIR=$RPM_BUILD_ROOT with + %%makeinstall +- Clean up files section +- Replace BuildRequires python-devel and Requires python with + %%py_requires * Tue Feb 10 2009 vuntz@novell.com - Update to version 1.5.0: + No NEWS file provided. ++++++ ldtp-1.5.0.tar.bz2 -> ldtp-1.5.1.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/aclocal.m4 new/ldtp-1.5.1/aclocal.m4 --- old/ldtp-1.5.0/aclocal.m4 2009-02-10 06:48:49.000000000 +0100 +++ new/ldtp-1.5.1/aclocal.m4 2009-03-10 18:22:34.000000000 +0100 @@ -1,4 +1,4 @@ -# generated automatically by aclocal 1.10.1 -*- Autoconf -*- +# generated automatically by aclocal 1.10.2 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. @@ -13,7 +13,7 @@ m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(AC_AUTOCONF_VERSION, [2.63],, +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, [m4_warning([this file was generated for autoconf 2.63. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. @@ -87,14 +87,16 @@ # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], -[if test -n "$$1"; then - pkg_cv_[]$1="$$1" - elif test -n "$PKG_CONFIG"; then - PKG_CHECK_EXISTS([$3], - [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], - [pkg_failed=yes]) - else - pkg_failed=untried +[if test -n "$PKG_CONFIG"; then + if test -n "$$1"; then + pkg_cv_[]$1="$$1" + else + PKG_CHECK_EXISTS([$3], + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], + [pkg_failed=yes]) + fi +else + pkg_failed=untried fi[]dnl ])# _PKG_CONFIG @@ -138,9 +140,9 @@ if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` else - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD @@ -175,7 +177,7 @@ fi[]dnl ])# PKG_CHECK_MODULES -# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -190,7 +192,7 @@ [am__api_version='1.10' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.10.1], [], +m4_if([$1], [1.10.2], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -204,12 +206,12 @@ # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.10.1])dnl +[AM_AUTOMAKE_VERSION([1.10.2])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- @@ -459,19 +461,28 @@ # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -#serial 3 +#serial 4 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do +[# Autoconf 2.62 quotes --file arguments for eval, but not when files +# are listed without --file. Let's play safe and only enable the eval +# if we detect the quoting. +case $CONFIG_FILES in +*\'*) eval set x "$CONFIG_FILES" ;; +*) set x $CONFIG_FILES ;; +esac +shift +for mf +do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. @@ -815,13 +826,13 @@ # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 3 +# serial 4 # _AM_MANGLE_OPTION(NAME) # ----------------------- @@ -838,7 +849,7 @@ # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/ChangeLog new/ldtp-1.5.1/ChangeLog --- old/ldtp-1.5.0/ChangeLog 2008-12-02 02:41:26.000000000 +0100 +++ new/ldtp-1.5.1/ChangeLog 2009-03-10 18:22:04.000000000 +0100 @@ -1,3 +1,14 @@ +2009-03-10 Nagappan Alagappan <nagappan@gmail.com> + + * configure.in: Bumped version to 1.5.1 + + * find-python-path.py (find_path): Added dist-packages as its + required for python2.6 on Ubuntu 9.04 + +2009-02-09 Nagappan A <nagappan@gmail.com> + + * configure.in: Bumped version to 1.5.0 + 2008-12-01 Nagappan A <anagappan@novell.com> * configure.in: Bumped version to 1.4.0. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/config.guess new/ldtp-1.5.1/config.guess --- old/ldtp-1.5.0/config.guess 2008-11-22 06:46:46.000000000 +0100 +++ new/ldtp-1.5.1/config.guess 2008-11-05 02:01:05.000000000 +0100 @@ -4,7 +4,7 @@ # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 # Free Software Foundation, Inc. -timestamp='2008-01-08' +timestamp='2008-01-23' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -139,16 +139,6 @@ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown -case "${UNAME_MACHINE}" in - i?86) - test -z "$VENDOR" && VENDOR=pc - ;; - *) - test -z "$VENDOR" && VENDOR=unknown - ;; -esac -test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse - # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in @@ -850,13 +840,13 @@ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-gnu else - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi + echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu @@ -865,16 +855,16 @@ echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) - echo frv-${VENDOR}-linux-gnu + echo frv-unknown-linux-gnu exit ;; ia64:Linux:*:*) - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:*) eval $set_cc_for_build @@ -897,7 +887,7 @@ s: ::g p }'`" - test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; } + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; mips64:Linux:*:*) eval $set_cc_for_build @@ -920,16 +910,16 @@ s: ::g p }'`" - test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; } + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) - echo or32-${VENDOR}-linux-gnu + echo or32-unknown-linux-gnu exit ;; ppc:Linux:*:*) - echo powerpc-${VENDOR}-linux-gnu + echo powerpc-unknown-linux-gnu exit ;; ppc64:Linux:*:*) - echo powerpc64-${VENDOR}-linux-gnu + echo powerpc64-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in @@ -943,39 +933,39 @@ esac objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC} + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;; - PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;; - *) echo hppa-${VENDOR}-linux-gnu ;; + PA7*) echo hppa1.1-unknown-linux-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; esac exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-${VENDOR}-linux-gnu + echo hppa64-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) - echo x86_64-${VENDOR}-linux-gnu + echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so @@ -990,18 +980,18 @@ p'` case "$ld_supported_targets" in elf32-i386) - TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux-gnu" + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" ;; a.out-i386-linux) - echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuaout" + echo "${UNAME_MACHINE}-pc-linux-gnuaout" exit ;; coff-i386) - echo "${UNAME_MACHINE}-${VENDOR}-linux-gnucoff" + echo "${UNAME_MACHINE}-pc-linux-gnucoff" exit ;; "") # Either a pre-BFD a.out linker (linux-gnuoldld) or # one that does not give us useful --help. - echo "${UNAME_MACHINE}-${VENDOR}-linux-gnuoldld" + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" exit ;; esac # Determine whether the default compiler is a.out or elf @@ -1035,7 +1025,7 @@ p }'`" test x"${LIBC}" != x && { - echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" + echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit } test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } @@ -1494,9 +1484,9 @@ the operating system you are using. It is advised that you download the most up to date version of the config scripts from - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.gues... + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess... and - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;h... If the version you run ($0) is already up to date, please send the following data and any information you think might be diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/configure new/ldtp-1.5.1/configure --- old/ldtp-1.5.0/configure 2009-02-10 06:48:51.000000000 +0100 +++ new/ldtp-1.5.1/configure 2009-03-10 18:22:39.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.63 for ldtp 1.5.0. +# Generated by GNU Autoconf 2.63 for ldtp 1.5.1. # # Report bugs to <ldtp-dev@lists.freedesktop.org>. # @@ -596,8 +596,8 @@ # Identity of this package. PACKAGE_NAME='ldtp' PACKAGE_TARNAME='ldtp' -PACKAGE_VERSION='1.5.0' -PACKAGE_STRING='ldtp 1.5.0' +PACKAGE_VERSION='1.5.1' +PACKAGE_STRING='ldtp 1.5.1' PACKAGE_BUGREPORT='ldtp-dev@lists.freedesktop.org' ac_subst_vars='LTLIBOBJS @@ -1292,7 +1292,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures ldtp 1.5.0 to adapt to many kinds of systems. +\`configure' configures ldtp 1.5.1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1363,7 +1363,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of ldtp 1.5.0:";; + short | recursive ) echo "Configuration of ldtp 1.5.1:";; esac cat <<\_ACEOF @@ -1470,7 +1470,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -ldtp configure 1.5.0 +ldtp configure 1.5.1 generated by GNU Autoconf 2.63 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, @@ -1484,7 +1484,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by ldtp $as_me 1.5.0, which was +It was created by ldtp $as_me 1.5.1, which was generated by GNU Autoconf 2.63. Invocation command line was $ $0 $@ @@ -2327,7 +2327,7 @@ # Define the identity of the package. PACKAGE='ldtp' - VERSION='1.5.0' + VERSION='1.5.1' cat >>confdefs.h <<_ACEOF @@ -4308,10 +4308,11 @@ { $as_echo "$as_me:$LINENO: checking for LIBXML2" >&5 $as_echo_n "checking for LIBXML2... " >&6; } -if test -n "$LIBXML2_CFLAGS"; then - pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ +if test -n "$PKG_CONFIG"; then + if test -n "$LIBXML2_CFLAGS"; then + pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS" + else + if test -n "$PKG_CONFIG" && \ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\"") >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5 ac_status=$? @@ -4321,13 +4322,15 @@ else pkg_failed=yes fi - else - pkg_failed=untried + fi +else + pkg_failed=untried fi -if test -n "$LIBXML2_LIBS"; then - pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ +if test -n "$PKG_CONFIG"; then + if test -n "$LIBXML2_LIBS"; then + pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS" + else + if test -n "$PKG_CONFIG" && \ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\"") >&5 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5 ac_status=$? @@ -4337,8 +4340,9 @@ else pkg_failed=yes fi - else - pkg_failed=untried + fi +else + pkg_failed=untried fi @@ -4351,9 +4355,9 @@ _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libxml-2.0 >= 2.0.0" 2>&1` + LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= 2.0.0"` else - LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors "libxml-2.0 >= 2.0.0" 2>&1` + LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.0.0"` fi # Put the nasty error message in config.log where it belongs echo "$LIBXML2_PKG_ERRORS" >&5 @@ -4420,10 +4424,11 @@ { $as_echo "$as_me:$LINENO: checking for GLIB2" >&5 $as_echo_n "checking for GLIB2... " >&6; } -if test -n "$GLIB2_CFLAGS"; then - pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ +if test -n "$PKG_CONFIG"; then + if test -n "$GLIB2_CFLAGS"; then + pkg_cv_GLIB2_CFLAGS="$GLIB2_CFLAGS" + else + if test -n "$PKG_CONFIG" && \ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0 gobject-2.0 >= 2.2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.0 gobject-2.0 >= 2.2.0") 2>&5 ac_status=$? @@ -4433,13 +4438,15 @@ else pkg_failed=yes fi - else - pkg_failed=untried + fi +else + pkg_failed=untried fi -if test -n "$GLIB2_LIBS"; then - pkg_cv_GLIB2_LIBS="$GLIB2_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ +if test -n "$PKG_CONFIG"; then + if test -n "$GLIB2_LIBS"; then + pkg_cv_GLIB2_LIBS="$GLIB2_LIBS" + else + if test -n "$PKG_CONFIG" && \ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.2.0 gobject-2.0 >= 2.2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.2.0 gobject-2.0 >= 2.2.0") 2>&5 ac_status=$? @@ -4449,8 +4456,9 @@ else pkg_failed=yes fi - else - pkg_failed=untried + fi +else + pkg_failed=untried fi @@ -4463,9 +4471,9 @@ _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.2.0 gobject-2.0 >= 2.2.0" 2>&1` + GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.2.0 gobject-2.0 >= 2.2.0"` else - GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.2.0 gobject-2.0 >= 2.2.0" 2>&1` + GLIB2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.2.0 gobject-2.0 >= 2.2.0"` fi # Put the nasty error message in config.log where it belongs echo "$GLIB2_PKG_ERRORS" >&5 @@ -4532,10 +4540,11 @@ { $as_echo "$as_me:$LINENO: checking for CSPI_1_0" >&5 $as_echo_n "checking for CSPI_1_0... " >&6; } -if test -n "$CSPI_1_0_CFLAGS"; then - pkg_cv_CSPI_1_0_CFLAGS="$CSPI_1_0_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ +if test -n "$PKG_CONFIG"; then + if test -n "$CSPI_1_0_CFLAGS"; then + pkg_cv_CSPI_1_0_CFLAGS="$CSPI_1_0_CFLAGS" + else + if test -n "$PKG_CONFIG" && \ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cspi-1.0 >= 1.2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "cspi-1.0 >= 1.2.0") 2>&5 ac_status=$? @@ -4545,13 +4554,15 @@ else pkg_failed=yes fi - else - pkg_failed=untried + fi +else + pkg_failed=untried fi -if test -n "$CSPI_1_0_LIBS"; then - pkg_cv_CSPI_1_0_LIBS="$CSPI_1_0_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ +if test -n "$PKG_CONFIG"; then + if test -n "$CSPI_1_0_LIBS"; then + pkg_cv_CSPI_1_0_LIBS="$CSPI_1_0_LIBS" + else + if test -n "$PKG_CONFIG" && \ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cspi-1.0 >= 1.2.0\"") >&5 ($PKG_CONFIG --exists --print-errors "cspi-1.0 >= 1.2.0") 2>&5 ac_status=$? @@ -4561,8 +4572,9 @@ else pkg_failed=yes fi - else - pkg_failed=untried + fi +else + pkg_failed=untried fi @@ -4575,9 +4587,9 @@ _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - CSPI_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cspi-1.0 >= 1.2.0" 2>&1` + CSPI_1_0_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cspi-1.0 >= 1.2.0"` else - CSPI_1_0_PKG_ERRORS=`$PKG_CONFIG --print-errors "cspi-1.0 >= 1.2.0" 2>&1` + CSPI_1_0_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cspi-1.0 >= 1.2.0"` fi # Put the nasty error message in config.log where it belongs echo "$CSPI_1_0_PKG_ERRORS" >&5 @@ -5352,7 +5364,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by ldtp $as_me 1.5.0, which was +This file was extended by ldtp $as_me 1.5.1, which was generated by GNU Autoconf 2.63. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -5415,7 +5427,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_version="\\ -ldtp config.status 1.5.0 +ldtp config.status 1.5.1 configured by $0, generated by GNU Autoconf 2.63, with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" @@ -6200,7 +6212,16 @@ case $ac_file$ac_mode in - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do + "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files +# are listed without --file. Let's play safe and only enable the eval +# if we detect the quoting. +case $CONFIG_FILES in +*\'*) eval set x "$CONFIG_FILES" ;; +*) set x $CONFIG_FILES ;; +esac +shift +for mf +do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/configure.in new/ldtp-1.5.1/configure.in --- old/ldtp-1.5.0/configure.in 2009-02-10 06:44:52.000000000 +0100 +++ new/ldtp-1.5.1/configure.in 2009-03-10 18:21:40.000000000 +0100 @@ -1,7 +1,7 @@ dnl ************************************************************* dnl Process this file with autoconf to produce a configure script dnl ************************************************************* -AC_INIT(ldtp, 1.5.0, ldtp-dev@lists.freedesktop.org) +AC_INIT(ldtp, 1.5.1, ldtp-dev@lists.freedesktop.org) AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/doc/Makefile.in new/ldtp-1.5.1/doc/Makefile.in --- old/ldtp-1.5.0/doc/Makefile.in 2009-02-10 06:48:52.000000000 +0100 +++ new/ldtp-1.5.1/doc/Makefile.in 2009-03-10 18:22:43.000000000 +0100 @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.10.1 from Makefile.am. +# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, @@ -159,8 +159,8 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/find-python-path.py new/ldtp-1.5.1/find-python-path.py --- old/ldtp-1.5.0/find-python-path.py 2008-04-25 05:34:49.000000000 +0200 +++ new/ldtp-1.5.1/find-python-path.py 2009-03-10 17:30:00.000000000 +0100 @@ -7,7 +7,8 @@ for path in sys.path: (head, tail) = split (path) # Forcing python path to be used as /usr/lib instead of /usr/local/lib - if tail == 'site-packages' and path.find ('local') == -1: + if (tail == 'site-packages' or tail == 'dist-packages') and \ + path.find ('local') == -1: base = basename (head) print path #print base + '/' + tail diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/icons/Makefile.in new/ldtp-1.5.1/icons/Makefile.in --- old/ldtp-1.5.0/icons/Makefile.in 2009-02-10 06:48:52.000000000 +0100 +++ new/ldtp-1.5.1/icons/Makefile.in 2009-03-10 18:22:44.000000000 +0100 @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.10.1 from Makefile.am. +# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, @@ -176,8 +176,8 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/INSTALL new/ldtp-1.5.1/INSTALL --- old/ldtp-1.5.0/INSTALL 2008-11-22 06:46:46.000000000 +0100 +++ new/ldtp-1.5.1/INSTALL 2009-02-12 16:34:05.000000000 +0100 @@ -2,15 +2,15 @@ ************************* Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, -2006, 2007 Free Software Foundation, Inc. +2006, 2007, 2008 Free Software Foundation, Inc. -This file is free documentation; the Free Software Foundation gives + This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== -Briefly, the shell commands `./configure; make; make install' should + Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. @@ -73,9 +73,9 @@ Compilers and Options ===================== -Some systems require unusual options for compilation or linking that the -`configure' script does not know about. Run `./configure --help' for -details on some of the pertinent environment variables. + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here @@ -88,7 +88,7 @@ Compiling For Multiple Architectures ==================================== -You can compile the package for more than one kind of computer at the + You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run @@ -100,10 +100,24 @@ installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple `-arch' options to the +compiler but only a single `-arch' option to the preprocessor. Like +this: + + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ + CPP="gcc -E" CXXCPP="g++ -E" + + This is not guaranteed to produce working output in all cases, you +may have to build one architecture at a time and combine the results +using the `lipo' tool if you have problems. + Installation Names ================== -By default, `make install' installs the package's commands under + By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX'. @@ -126,7 +140,7 @@ Optional Features ================= -Some packages pay attention to `--enable-FEATURE' options to + Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The @@ -138,14 +152,36 @@ you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. +Particular systems +================== + + On HP-UX, the default C compiler is not ANSI C compatible. If GNU +CC is not installed, it is recommended to use the following options in +order to use an ANSI C compiler: + + ./configure CC="cc -Ae" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `<wchar.h>' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try + + ./configure CC="cc" + +and if that doesn't work, try + + ./configure CC="cc -nodtk" + Specifying the System Type ========================== -There may be some features `configure' cannot figure out automatically, -but needs to determine by the type of machine the package will run on. -Usually, assuming the package is built to be run on the _same_ -architectures, `configure' can figure that out, but if it prints a -message saying it cannot guess the machine type, give it the + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: @@ -171,9 +207,9 @@ Sharing Defaults ================ -If you want to set default values for `configure' scripts to share, you -can create a site shell script called `config.site' that gives default -values for variables like `CC', `cache_file', and `prefix'. + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. @@ -182,7 +218,7 @@ Defining Variables ================== -Variables not defined in a site shell script can be set in the + Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set @@ -201,11 +237,19 @@ `configure' Invocation ====================== -`configure' recognizes the following options to control how it operates. + `configure' recognizes the following options to control how it +operates. `--help' `-h' - Print a summary of the options to `configure', and exit. + Print a summary of all of the options to `configure', and exit. + +`--help=short' +`--help=recursive' + Print a summary of the options unique to this package's + `configure', and exit. The `short' variant lists options used + only in the top level, while the `recursive' variant lists options + also present in any nested packages. `--version' `-V' @@ -232,6 +276,16 @@ Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. +`--prefix=DIR' + Use DIR as the installation prefix. *Note Installation Names:: + for more details, including other options available for fine-tuning + the installation locations. + +`--no-create' +`-n' + Run the configure checks, but stop before creating any output + files. + `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/Makefile.in new/ldtp-1.5.1/Makefile.in --- old/ldtp-1.5.0/Makefile.in 2009-02-10 06:48:53.000000000 +0100 +++ new/ldtp-1.5.1/Makefile.in 2009-03-10 18:22:45.000000000 +0100 @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.10.1 from Makefile.am. +# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, @@ -312,7 +312,7 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/NEWS new/ldtp-1.5.1/NEWS --- old/ldtp-1.5.0/NEWS 2008-08-27 09:27:39.000000000 +0200 +++ new/ldtp-1.5.1/NEWS 2009-03-10 18:57:58.000000000 +0100 @@ -1,4 +1,25 @@ +LDTP 1.5.1 released ["Download"] - Tuesday March 10 2009 +* Fixes b.g.o # 574787, 574789, 574791, 574793 + Bug 574791 – ldtputils.captureimage() ignores coordinate arguments + Bug 574793 – Use wnck to get window id instead of LTFX (digwin) + Bug 574787 – LDTP package is not installing correctly + Bug 574789 – getwindowlist (and others?) don't handle utf8 well +LDTP 1.5.0 released ["Download"] - Monday February 09 2009 +* Log all failures and take screenshot on each failure - b.g.o # 567589 +* Create default log file in /tmp/ldtp-$USER +* Screenshot using pygtk, instead of ImageMagick import, when possible +* Added new api - appundertest +LDTP 1.4.0 released ["Download"] - Monday December 01 2008 +* Added new APIs for VMware Workstation automation +* Initial work for LDTPv2 - LDTP engine in python +* Added code block specific to Access Company related environment +* Improved LDTP performance, by reducing the number of window information lookup +* Access company has contributed significant code to perform on multiple window without title LDTP 1.3.0 released - Wednesday August 27 2008 +* Shreyank Gupta <shreyankg at gmail.com> has contributed Object Oriented LDTP based generation of scripts in LDTP editor. +* Ubuntu QA team has officially announced [1], LDTP as their testing tool +* LDTP is also being used for VMware Workstation globalization testing, thanks to Nagappan Alagappan <nalagappan at vmware.com> +* VMware Player on Linux are automated using LDTP, thanks to Gaurav Sharma <gauravs at vmware.com> LDTP 1.2.0 released - Tuesday July 8 2008 LDTP 1.1.0 released - Tuesday April 29 2008 LDTP has been moved from CVS to http://bugs.freedesktop.org/show_bug.cgi?id=14596 GIT - Thursday April 24 2008 diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/python/ChangeLog new/ldtp-1.5.1/python/ChangeLog --- old/ldtp-1.5.0/python/ChangeLog 2009-02-10 05:00:32.000000000 +0100 +++ new/ldtp-1.5.1/python/ChangeLog 2009-03-02 16:31:55.000000000 +0100 @@ -1,3 +1,17 @@ +2009-03-02 Nagappan Alagappan <nagappan@gmail.com> + + * ldtp.py (getresponse): Added 1 second delay, when we get invalid + response or timeout. + + * ldtprunner: Based on tac <Junyuan.Tan at Sun.COM> suggestion, fixed + script file to use relevant path as ldtprunner XML file. + http://lists.freedesktop.org/archives/ldtp-dev/2009-February/000772.html + +2009-03-01 Eitan Isaacson <eitan@ascender.com> + + * ldtputils.py: Use wnck library to get the window id list, rather + than LTFX digwin. + 2009-02-09 Nagappan A <nagappan@gmail.com> * ldtp.py: Log all verification results as warnings in log file diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/python/ldtplib/ChangeLog new/ldtp-1.5.1/python/ldtplib/ChangeLog --- old/ldtp-1.5.0/python/ldtplib/ChangeLog 2009-02-05 04:54:47.000000000 +0100 +++ new/ldtp-1.5.1/python/ldtplib/ChangeLog 2009-03-02 16:25:15.000000000 +0100 @@ -1,3 +1,8 @@ +2009-03-02 Nagappan Alagappan <nagappan@gmail.com> + + * ldtpcommon.py (appmap): Updated ukngrip to unkgrip based + on Eitan Isaacson <eitan@ascender.com> suggestion. + 2009-02-04 Nagappan Alagappan <nagappan@gmail.com> * ldtplibutils.py (LdtpLogRecord): Fixed logging to file on python diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/python/ldtplib/ldtpcommon.py new/ldtp-1.5.1/python/ldtplib/ldtpcommon.py --- old/ldtp-1.5.0/python/ldtplib/ldtpcommon.py 2009-02-03 07:53:42.000000000 +0100 +++ new/ldtp-1.5.1/python/ldtplib/ldtpcommon.py 2009-03-02 15:50:59.000000000 +0100 @@ -476,7 +476,7 @@ if name is not None and name != '': name = re.sub (' ', '_', name) # print 'extended', accessible.getRoleName (), accessible.getRole (), '*', accessible.name, '*' - objectInfo = objInfo ('ukn', name, self.objectInst.unknown, parentName) + objectInfo = objInfo ('unk', name, self.objectInst.unknown, parentName) self.objectInst.instIndex = self.objectInst.unknown self.objectInst.unknown += 1 else: @@ -486,7 +486,7 @@ name = 'unknown' else: name = re.sub (' ', '_', roleName) - objectInfo = objInfo ('ukn', name, self.objectInst.unknown, parentName) + objectInfo = objInfo ('unk', name, self.objectInst.unknown, parentName) self.objectInst.instIndex = self.objectInst.unknown self.objectInst.unknown += 1 return objectInfo diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/python/ldtplib/Makefile.in new/ldtp-1.5.1/python/ldtplib/Makefile.in --- old/ldtp-1.5.0/python/ldtplib/Makefile.in 2009-02-10 06:48:53.000000000 +0100 +++ new/ldtp-1.5.1/python/ldtplib/Makefile.in 2009-03-10 18:22:44.000000000 +0100 @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.10.1 from Makefile.am. +# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, @@ -211,8 +211,8 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ @@ -346,7 +346,7 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/python/ldtp.py new/ldtp-1.5.1/python/ldtp.py --- old/ldtp-1.5.0/python/ldtp.py 2009-02-10 06:43:58.000000000 +0100 +++ new/ldtp-1.5.1/python/ldtp.py 2009-03-10 18:22:40.000000000 +0100 @@ -32,7 +32,7 @@ "Veerapuram Varadhan <v.varadhan@gmail.com>, "\ "Prashanth Mohan <prashmohan@gmail.com>, Venkateswaran S <wenkat.s@gmail.com>" # __maintainer__ = "Nagappan Alagappan <nagappan@gmail.com>" -__version__ = "1.5.0" +__version__ = "1.5.1" import os import re @@ -267,6 +267,7 @@ if timeOut is False: # don't timeout, so don't increase the count ! continue + time.sleep (1) # If timeout, let us retry for _ldtpGuiTimeout times count += 1 continue diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/python/ldtprunner new/ldtp-1.5.1/python/ldtprunner --- old/ldtp-1.5.0/python/ldtprunner 2009-02-10 06:48:25.000000000 +0100 +++ new/ldtp-1.5.1/python/ldtprunner 2009-03-10 18:22:51.000000000 +0100 @@ -30,7 +30,7 @@ __author__ = "Nagappan Alagappan <nagappan@gmail.com>" # __maintainer__ = "Nagappan Alagappan <nagappan@gmail.com>" -__version__ = "1.5.0" +__version__ = "1.5.1" import os import re @@ -67,18 +67,21 @@ if options.port != None: os.environ['LDTP_SERVER_PORT'] = options.port +xmlFileName = os.path.abspath (args [0]) +baseDir = xmlFileName [:xmlFileName.rfind ('/') + 1] + try: - dom = xml.dom.minidom.parse (args[0]) + dom = xml.dom.minidom.parse (xmlFileName) except xml.parsers.expat.ExpatError, msg: - print 'XML Error: ' + str (msg) + print 'XML Error: %s' % msg.value sys.exit (1) except IOError: - print 'XML \"' + args[0] + '\" file not found' + print 'XML "%s" file not found' % xmlFileName sys.exit (1) scriptLevelTimeinfo = False -class TESTCASESTATE(object): +class TESTCASESTATE (object): TCS_ENTERING = 1 TCS_RUNNING = 2 TCS_EXITING = 3 @@ -415,8 +418,8 @@ scriptPassCount = 0 totalScripts = len (scripts) for scriptelements in scripts: - scriptname = '' - scriptdata = '' + scriptFileName = '' + scriptDataFileName = '' testcasename = None try: name = scriptelements.getElementsByTagName ('name')[0] @@ -424,10 +427,10 @@ # print 'Script file entry not present - skipping' ldtp.log ('Script file entry not present - skipping', 'warning') continue - scriptname = getText (name.childNodes) + scriptFileName = getText (name.childNodes) try: data = scriptelements.getElementsByTagName ('data')[0] - scriptdata = getText (data.childNodes) + scriptDataFileName = getText (data.childNodes) except IndexError: ldtp.log ('Data file maynot be present') try: @@ -436,14 +439,16 @@ except IndexError: ldtp.log ('testcase name maynot be present') scriptglobal = dict ({'datafilename' : ''}) - if scriptdata != '': - ldtp.log (scriptname, 'scriptstart') - ldtp.log (scriptdata, 'datafilename') - scriptglobal = dict ({'datafilename' : scriptdata}) + if scriptDataFileName != '': + ldtp.log (scriptFileName, 'scriptstart') + if os.path.exists (scriptDataFileName) == False: + scriptDataFileName = "%s/%s" % (baseDir, scriptDataFileName) + ldtp.log (scriptDataFileName, 'datafilename') + scriptglobal = dict ({'datafilename' : scriptDataFileName}) else: - ldtp.log (scriptname, 'scriptstart') + ldtp.log (scriptFileName, 'scriptstart') ldtp.log ('data xml tag missing', 'info') - # print 'Executing script: ' + scriptname + ' - ' + scriptdata + # print 'Executing script: ' + scriptFileName + ' - ' + scriptDataFileName try: appmapfile = scriptelements.getElementsByTagName ('appmapfile')[0] appmapfilename = getText (appmapfile.childNodes) @@ -471,8 +476,10 @@ try: if testcasename is not None: ldtp.log (testcasename, 'teststart') - scriptname = ldtputils.getFullPath (scriptname) - execfile (scriptname, scriptglobal) + scriptName = scriptFileName = ldtputils.getFullPath (scriptFileName) + if os.path.exists (scriptName) == False: + scriptName = "%s/%s" % (baseDir, scriptName) + execfile (scriptName, scriptglobal) time.sleep (1) if scriptLevelTimeinfo: ldtp.log ('start="%s" elapsed="%s"' % (str (_startLocalTime), @@ -512,15 +519,15 @@ if testcasename is not None: ldtp.log (testcasename, 'fail') ldtp.log (testcasename, 'testend') - ldtp.log (scriptname, 'scriptend') + ldtp.log (scriptFileName, 'scriptend') break except IOError: if testcasename is not None: ldtp.log (testcasename, 'fail') ldtp.log (testcasename, 'testend') g_prj_exception = True - ldtp.log ('Script \"' + scriptname + '\" not found', 'error') - ldtp.log (scriptname, 'scriptend') + ldtp.log ('Script \"' + scriptFileName + '\" not found', 'error') + ldtp.log (scriptFileName, 'scriptend') break except KeyboardInterrupt: if testcasename is not None: @@ -531,7 +538,7 @@ getElapsedTime (time.time (), _startTime)), 'timeinfo') - ldtp.log (scriptname, 'scriptend') + ldtp.log (scriptFileName, 'scriptend') raise except: g_prj_exception = True @@ -547,9 +554,9 @@ getElapsedTime (time.time (), _startTime)), 'timeinfo') - ldtp.log (scriptname, 'scriptend') + ldtp.log (scriptFileName, 'scriptend') break - ldtp.log (scriptname, 'scriptend') + ldtp.log (scriptFileName, 'scriptend') return scriptPassCount, totalScripts def enable_accessibility (): diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/python/ldtputils.py new/ldtp-1.5.1/python/ldtputils.py --- old/ldtp-1.5.0/python/ldtputils.py 2009-02-10 06:46:22.000000000 +0100 +++ new/ldtp-1.5.1/python/ldtputils.py 2009-03-01 19:18:25.000000000 +0100 @@ -32,6 +32,7 @@ import re import sys import time +import wnck import string import commands import tempfile @@ -64,9 +65,9 @@ return d def getFullPath (path): - if path[0] == "~": + if path [0] == "~": path = os.path.expanduser (path) - elif path[0] == ".": + elif path [0] == ".": path = os.path.abspath (path) return path @@ -103,23 +104,6 @@ ldtp.log ('Input file does not exist', 'error') raise ldtp.LdtpExecutionError ('Input file does not exist') -def winname_to_winid (winname): - fp = os.popen ('digwin -c') - lines = fp.readlines () - fp.close () - winid = '' - for i in lines: - if re.search (winname, i, re.I): - winid = i - break - if winid == '': - ldtp.log ('%s - window doesnot exist' % winname, 'error') - raise ldtp.LdtpExecutionError, '%s - window doesnot exist' % winname - winid = string.split (winid, ' ')[0] - winid = string.split (winid, '(')[1] - winid = string.split (winid, ')')[0] - return winid - def imagecapture (winName = None, outFile = None, resolution1 = None, resolution2 = None, x = 0, y = 0): # winname == None, let us capture the entire screen @@ -127,15 +111,15 @@ # /tmp and it will be returned winid = None if winName: - status = commands.getstatusoutput ('which digwin') - if status [0] != 0: - ldtp.log ('To capture invidual window, you need to install digwin of LTFX', - 'error') - raise ldtp.LdtpExecutionError ('To capture invidual window,' + \ - ' you need to install digwin of LTFX') - else: - winid = winname_to_winid (winName) - winid = '0x' + winid + screen = wnck.screen_get_default() + # Process pending gtk+ events so that wnck can find out about + # existing windows. + while gtk.events_pending(): + gtk.main_iteration() + for window in screen.get_windows(): + if winName == window.get_name(): + winid = window.get_xid() + break if outFile == None: fp = tempfile.NamedTemporaryFile () tmpFile = fp.name + '.png' @@ -147,10 +131,13 @@ # Based on http://ubuntuforums.org/showthread.php?t=448160 window = gtk.gdk.get_default_root_window () size = window.get_size () - pb = gtk.gdk.Pixbuf (gtk.gdk.COLORSPACE_RGB, - False, 8, size [0], size [1]) + pb = gtk.gdk.Pixbuf (gtk.gdk.COLORSPACE_RGB, False, 8, + resolution1 or size [0], + resolution2 or size [1]) pb = pb.get_from_drawable (window, window.get_colormap (), - 0, 0, 0, 0, size [0], size [1]) + x, y, 0, 0, + resolution1 or size [0], + resolution2 or size [1]) if pb: pb.save (tmpFile, "png") # based on http://faq.pygtk.org/index.py?req=show&file=faq08.004.htp diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/python/Makefile.in new/ldtp-1.5.1/python/Makefile.in --- old/ldtp-1.5.0/python/Makefile.in 2009-02-10 06:48:52.000000000 +0100 +++ new/ldtp-1.5.1/python/Makefile.in 2009-03-10 18:22:44.000000000 +0100 @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.10.1 from Makefile.am. +# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, @@ -220,8 +220,8 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ @@ -408,7 +408,7 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/src/ChangeLog new/ldtp-1.5.1/src/ChangeLog --- old/ldtp-1.5.0/src/ChangeLog 2009-02-10 06:31:22.000000000 +0100 +++ new/ldtp-1.5.1/src/ChangeLog 2009-03-10 18:55:38.000000000 +0100 @@ -1,3 +1,13 @@ +2009-03-10 Michael Terry <michael.terry@canonical.com> + + * client-handler.c (generate_response_packet): Bug 574789 – + getwindowlist (and others?) don't handle utf8 well. + +2009-03-02 Nagappan Alagappan <nagappan@gmail.com> + + * remap.c (filter_appmap_data): Updated ukngrip to unkgrip based + on Eitan Isaacson <eitan@ascender.com> suggestion. + 2009-02-09 Nagappan A <nagappan@gmail.com> * client-handler.c (handle_request): Fixed SPI leak. diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/src/client-handler.c new/ldtp-1.5.1/src/client-handler.c --- old/ldtp-1.5.0/src/client-handler.c 2009-02-10 06:30:08.000000000 +0100 +++ new/ldtp-1.5.1/src/client-handler.c 2009-03-10 18:51:42.000000000 +0100 @@ -143,9 +143,9 @@ g_print ("resp_len = %d\n", resp_len); if (cctxt->req->request_id) - resp_len += g_utf8_strlen ((gchar *)cctxt->req->request_id, -1); + resp_len += strlen ((gchar *)cctxt->req->request_id); if (cctxt->resp->resp_status) - resp_len += g_utf8_strlen (ldtp_error_get_message (cctxt->resp->resp_status), -1); + resp_len += strlen (ldtp_error_get_message (cctxt->resp->resp_status)); memset (buf, 0x00, 16); sprintf (buf, "%d", cctxt->resp->resp_status); @@ -727,8 +727,7 @@ cctxt->resp->data = NULL; if (tmp) { cctxt->resp->data = tmp; - cctxt->resp->data_len = g_utf8_strlen (cctxt->resp->data, - -1); + cctxt->resp->data_len = strlen (cctxt->resp->data); g_print ("LIST: %s - Data length: %ld\n", cctxt->resp->data, cctxt->resp->data_len); } else { @@ -839,7 +838,7 @@ &standard_output, NULL, NULL, &error)) { sleep (wait); cctxt->resp->data = standard_output; - cctxt->resp->data_len = g_utf8_strlen (cctxt->resp->data, -1); + cctxt->resp->data_len = strlen (cctxt->resp->data); } else { if (error) @@ -1118,8 +1117,7 @@ if (tmp) { g_free (data); cctxt->resp->data = tmp; - cctxt->resp->data_len = g_utf8_strlen (cctxt->resp->data, - -1); + cctxt->resp->data_len = strlen (cctxt->resp->data); g_print ("LIST: %s - Data length: %ld\n", cctxt->resp->data, cctxt->resp->data_len); } else { @@ -1162,7 +1160,7 @@ g_free (data); cctxt->resp->data = tmp; g_print ("LIST: %s\n", cctxt->resp->data); - cctxt->resp->data_len = g_utf8_strlen (cctxt->resp->data, -1); + cctxt->resp->data_len = strlen (cctxt->resp->data); } else { *err = LDTP_ERROR_UNABLE_TO_GET_WINDOW_LIST; g_print ("%s\n", ldtp_error_get_message (*err)); @@ -1415,7 +1413,7 @@ g_free (data); cctxt->resp->data = tmp; g_print ("LIST: %s\n", cctxt->resp->data); - cctxt->resp->data_len = g_utf8_strlen (cctxt->resp->data, -1); + cctxt->resp->data_len = strlen (cctxt->resp->data); } else { *err = LDTP_ERROR_UNABLE_TO_GET_OBJECT_LIST; g_print ("%s\n", ldtp_error_get_message (*err)); @@ -1497,7 +1495,7 @@ return; } cctxt->resp->data = g_strdup (obj_property); - cctxt->resp->data_len = g_utf8_strlen (obj_property, -1); + cctxt->resp->data_len = strlen (obj_property); return; } case LDTP_CMD_GENERATEMD5: { @@ -1526,7 +1524,7 @@ g_free (buffer); cctxt->resp->data = md5; - cctxt->resp->data_len = g_utf8_strlen (cctxt->resp->data, -1); + cctxt->resp->data_len = strlen (cctxt->resp->data); #else *err = LDTP_ERROR_COMMAND_NOT_SUPPORTED; #endif @@ -1556,7 +1554,7 @@ encoded = g_base64_encode (buffer, len); cctxt->resp->data = encoded; - cctxt->resp->data_len = g_utf8_strlen (cctxt->resp->data, -1); + cctxt->resp->data_len = strlen (cctxt->resp->data); g_free (buffer); #else diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/src/Makefile.in new/ldtp-1.5.1/src/Makefile.in --- old/ldtp-1.5.0/src/Makefile.in 2009-02-10 06:48:53.000000000 +0100 +++ new/ldtp-1.5.1/src/Makefile.in 2009-03-10 18:22:44.000000000 +0100 @@ -1,4 +1,4 @@ -# Makefile.in generated by automake 1.10.1 from Makefile.am. +# Makefile.in generated by automake 1.10.2 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, @@ -261,8 +261,8 @@ @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ @@ -378,7 +378,7 @@ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ - $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/src/push-button.c new/ldtp-1.5.1/src/push-button.c --- old/ldtp-1.5.0/src/push-button.c 2008-11-12 03:14:33.000000000 +0100 +++ new/ldtp-1.5.1/src/push-button.c 2009-03-02 15:51:00.000000000 +0100 @@ -83,8 +83,7 @@ } if (flag == TRUE) { return LDTP_ERROR_SUCCESS; - } - else { + } else { LDTPErrorCode error; error = LDTP_ERROR_CLICK_FAILED; log_msg (LDTP_LOG_CAUSE, ldtp_error_get_message (error), log_fp); diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/ldtp-1.5.0/src/remap.c new/ldtp-1.5.1/src/remap.c --- old/ldtp-1.5.0/src/remap.c 2009-01-31 21:15:52.000000000 +0100 +++ new/ldtp-1.5.1/src/remap.c 2009-03-02 15:51:00.000000000 +0100 @@ -356,7 +356,7 @@ (g_ascii_strcasecmp (obj_info->object_type, "separator") == 0 || g_ascii_strcasecmp (obj_info->object_type, "table_cell") == 0)) return 0; - if (label && g_ascii_strcasecmp (label, "ukngrip") == 0) + if (label && g_ascii_strcasecmp (label, "unkgrip") == 0) return 0; if (obj_info->object_type && g_ascii_strcasecmp (obj_info->object_type, "menu_item") == 0) { Accessible *parent = NULL; @@ -727,7 +727,7 @@ cal_event++; } else { - obj_info->prefix = g_strdup ("ukn"); + obj_info->prefix = g_strdup ("unk"); obj_info->instance_index = unknown; unknown++; obj_info->object_type = g_strdup (name); @@ -735,7 +735,7 @@ SPI_freeString (name); } else { - obj_info->prefix = g_strdup ("ukn"); + obj_info->prefix = g_strdup ("unk"); obj_info->instance_index = unknown; unknown++; obj_info->object_type = g_strdup ("unknown"); @@ -743,7 +743,7 @@ } else { char *name; - obj_info->prefix = g_strdup ("ukn"); + obj_info->prefix = g_strdup ("unk"); obj_info->instance_index = unknown; unknown++; name = Accessible_getRoleName (accessible); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de