Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-11 Thread Tommaso Cucinotta
Il 12/02/2011 00:01, Tommaso Cucinotta ha scritto: /* Name of package */ #define PACKAGE "lyx-2.0" Is it also the name of the lyx executable ? So, in this case, it gets called src/lyx-2.0.0svn, or src/lyx-, right ? never mind, I tried compiling with that option, the executable name remai

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-10 Thread Enrico Forestieri
On Thu, Feb 10, 2011 at 11:44:13PM +0100, Tommaso Cucinotta wrote: > Il 09/02/2011 09:52, Enrico Forestieri ha scritto: > >On Tue, Feb 08, 2011 at 10:53:34PM +0100, Pavel Sanda wrote: > >>having cs_CZ locales setup on system level sometimes locales does not work > >>either when make install is not

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-10 Thread Tommaso Cucinotta
Il 09/02/2011 09:52, Enrico Forestieri ha scritto: On Tue, Feb 08, 2011 at 10:53:34PM +0100, Pavel Sanda wrote: having cs_CZ locales setup on system level sometimes locales does not work either when make install is not done or something like that... i'm not able to give exact recipy and frankly

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-09 Thread Stephan Witt
Am 09.02.2011 um 00:30 schrieb Tommaso Cucinotta: > Il 08/02/2011 22:41, Jean-Marc Lasgouttes ha scritto: >> Le 08/02/11 19:55, Tommaso Cucinotta a écrit : >>> AFAICS, LyX installs with all the locales in e.g. >>> /usr/local/lyx-trunk/share/locale/, >>> so it should be able to run in whatever lang

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-09 Thread Enrico Forestieri
On Tue, Feb 08, 2011 at 10:53:34PM +0100, Pavel Sanda wrote: > having cs_CZ locales setup on system level sometimes locales does not work > either when make install is not done or something like that... i'm not able to > give exact recipy and frankly even wont to touch it :) If you run lyx in plac

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-08 Thread Tommaso Cucinotta
Il 08/02/2011 22:41, Jean-Marc Lasgouttes ha scritto: Le 08/02/11 19:55, Tommaso Cucinotta a écrit : AFAICS, LyX installs with all the locales in e.g. /usr/local/lyx-trunk/share/locale/, so it should be able to run in whatever language I like. The only exception may be availability of additional

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-08 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: > Le 08/02/11 19:55, Tommaso Cucinotta a écrit : >> AFAICS, LyX installs with all the locales in e.g. >> /usr/local/lyx-trunk/share/locale/, >> so it should be able to run in whatever language I like. The only >> exception may >> be availability of additional fonts that

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-08 Thread Jean-Marc Lasgouttes
Le 08/02/11 19:55, Tommaso Cucinotta a écrit : AFAICS, LyX installs with all the locales in e.g. /usr/local/lyx-trunk/share/locale/, so it should be able to run in whatever language I like. The only exception may be availability of additional fonts that I may need (e.g., starting it in Chinese...

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-08 Thread Pavel Sanda
Tommaso Cucinotta wrote: > If it doesn't bother you too much, can you please try changing the LANG > line from: > > Lang it_IT.utf8 > > to > > Lang it_IT.UTF-8 > > and check whether anything changes ? no it doesn't work. pavel

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-08 Thread Tommaso Cucinotta
Il 08/02/2011 01:38, Pavel Sanda ha scritto: Tommaso Cucinotta wrote: As you may have noticed from the commits and description in the README, I added a few customization options to run-tests.sh: export XVKBD_DELAY=100 (or higher if needed) export XVKBD_HACKED=yes (skip this line if you pr

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-08 Thread Tommaso Cucinotta
Il 08/02/2011 01:38, Pavel Sanda ha scritto: everything from findadv-05 furthert collapses, because of italian ui i guess. I just gave it a short run over an English platform, and now I understand what you're saying (GUI popping up in English, with a warning message on the console saying the l

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-07 Thread Pavel Sanda
Tommaso Cucinotta wrote: > As you may have noticed from the commits and description > in the README, I added a few customization options to > run-tests.sh: > > export XVKBD_DELAY=100 (or higher if needed) > export XVKBD_HACKED=yes (skip this line if you prefer the standard xvkbd > on your syst

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-07 Thread Tommaso Cucinotta
Il 01/02/2011 11:22, Pavel Sanda ha scritto: 3D menu effects of some WM collide with delay time needed for next char or similar. As you may have noticed from the commits and description in the README, I added a few customization options to run-tests.sh: export XVKBD_DELAY=100 (or higher if n

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-02 Thread Pavel Sanda
Tommaso Cucinotta wrote: > If you have a few mins, I'd like to know whether this is working > in your environment or not. the result on the current tree: Initializing testing environment . . . Running test cases . . . findadv-01: Ok find

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-02 Thread Tommaso Cucinotta
Il 01/02/2011 12:15, Pavel Sanda ha scritto: secondly, there are -userdir and -sysdir option in lyx binary itself, so using some specific user dir location... I tried to make a few improvements (svn up, please): -) added the patched xvkbd inside the autotests/ folder, in order to try to avoi

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-01 Thread Pavel Sanda
Tommaso Cucinotta wrote: > I also was thinking that another reproducibility issue is due to the > configuration of LyX. If you have in your home folder any custom > options, or scripts, or extended commands or modified key bindings > or whatever else, then some tests might fail. For example, I gues

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-01 Thread Tommaso Cucinotta
Il 01/02/2011 11:22, Pavel Sanda ha scritto: Tommaso Cucinotta wrote: possibilities. Just need to fix what else is needed in order to have the test run properly on a non-Italian machine (I have to find an English installation somewhere and try). you dont know what box are you opening :) there a

Re: r37364 - lyx-devel/trunk/development/autotests

2011-02-01 Thread Pavel Sanda
Tommaso Cucinotta wrote: > possibilities. Just need to fix what else is needed in order to have the > test run properly on a non-Italian machine (I have to find an English > installation somewhere and try). you dont know what box are you opening :) there are many strange issues which affect whet

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Tommaso Cucinotta
Please, find attached a patch for xvkbd-3.2 that: -) adds the "no_root" option that avoids commands to go to the root window when no match is found -) adds the "-instance" option to match an application instance name, in addition or alternative to the "-window" that spans over names, classes an

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Tommaso Cucinotta
Il 01/02/2011 01:44, Pavel Sanda ha scritto: if autotest are to be used by wider audience then we should not depend on switches to other languages (unless we are testing exactly this). Just thinking aloud: I design my test cases by exploiting the italian set-up, and I'd like that, if you try tho

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Pavel Sanda
Tommaso Cucinotta wrote: > Il 01/02/2011 01:21, Pavel Sanda ha scritto: >> Pavel Sanda wrote: >>> it does not affect 5,6 which still fails. >> part of the problems come to the fact that you hardcode keybindings for >> lang it_IT.utf8 and script doesn't not change UI lang here at all... > If I don't

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Tommaso Cucinotta
Il 01/02/2011 01:21, Pavel Sanda ha scritto: Pavel Sanda wrote: it does not affect 5,6 which still fails. part of the problems come to the fact that you hardcode keybindings for lang it_IT.utf8 and script doesn't not change UI lang here at all... If I don't set Lang, then perhaps it is "E&xtend

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Pavel Sanda
Pavel Sanda wrote: > it does not affect 5,6 which still fails. part of the problems come to the fact that you hardcode keybindings for lang it_IT.utf8 and script doesn't not change UI lang here at all... pavel

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Pavel Sanda
> Il 31/01/2011 23:52, Pavel Sanda ha scritto: >> >>> -) case 04: seems like the typed characters managed to create a document >>> whose LaTeX export contains "x\textasciicircum 2"instead of "$x^2$". >>> Guess: the "[C-m]" sequence (KK: \Cm), activating the math-mode, got >>> lost someway while sen

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Pavel Sanda
Tommaso Cucinotta wrote: > here we start having fun: can you please send me the (compressed) contents sent privately >> actually at the end i also see stray "nnn" pushed to the console. > also, these "^[fn" that you get don't seem regular to me. Some keys here those ^[fn got there before l

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Tommaso Cucinotta
Il 31/01/2011 21:36, Pavel Sanda ha scritto: Running test cases . . . findadv-01: ^[fnOk findadv-02: ^[fnOk findadv-03: ^[fnFAILED findadv-04: ^[fnOk

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Pavel Sanda
Tommaso Cucinotta wrote: > Il 31/01/2011 21:50, Pavel Sanda ha scritto: >> >> when i try to run single test then i need to manually remove >> test2.lyx and test.lyx to get ok. > strange: "./run-tests.sh mytest-in.txt" should remove any "mytest" folder > as first step. aha i run directly single-te

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Tommaso Cucinotta
Il 31/01/2011 21:50, Pavel Sanda ha scritto: when i try to run single test then i need to manually remove test2.lyx and test.lyx to get ok. strange: "./run-tests.sh mytest-in.txt" should remove any "mytest" folder as first step. T.

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Pavel Sanda
Pavel Sanda wrote: > > Tommaso Cucinotta wrote: > > > I've just run the autotest/ stuff after having started X with xinit and > > > from within an xterm. > > > It worked as expected here (Ubuntu 10.10). > > > > after your last commit it starts to work here (though not having icewm). > > monkey is

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Pavel Sanda
Tommaso Cucinotta wrote: > I've just run the autotest/ stuff after having started X with xinit and > from within an xterm. > It worked as expected here (Ubuntu 10.10). after your last commit it starts to work here (though not having icewm). monkey is now happily bashing my keyboard. however the r

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-31 Thread Pavel Sanda
> Tommaso Cucinotta wrote: > > I've just run the autotest/ stuff after having started X with xinit and > > from within an xterm. > > It worked as expected here (Ubuntu 10.10). > > after your last commit it starts to work here (though not having icewm). > monkey is now happily bashing my keyboard.

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-29 Thread Tommaso Cucinotta
Il 29/01/2011 21:36, Pavel Sanda ha scritto: tomm...@lyx.org wrote: Author: tommaso Date: Sat Jan 29 15:42:53 2011 New Revision: 37364 URL: http://www.lyx.org/trac/changeset/37364 Log: Added basic automated testing capability, based on the MonKey Test (keytest.py) by McCabe-Dansted. As of now,

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-29 Thread Tommaso Cucinotta
Il 29/01/2011 21:36, Pavel Sanda ha scritto: tomm...@lyx.org wrote: Author: tommaso Date: Sat Jan 29 15:42:53 2011 New Revision: 37364 URL: http://www.lyx.org/trac/changeset/37364 Log: Added basic automated testing capability, based on the MonKey Test (keytest.py) by McCabe-Dansted. As of now,

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-29 Thread Tommaso Cucinotta
Il 29/01/2011 21:36, Pavel Sanda ha scritto: doesn't work here. after while i found that readme should specify that xvkbd and wmctrl are needed but even after installing nothing happens. in the original keystest/setup.sh there is: sudo apt-get install xclip xvkbd wmctrl xvfb libqt4-dbg icewm

Re: r37364 - lyx-devel/trunk/development/autotests

2011-01-29 Thread Pavel Sanda
tomm...@lyx.org wrote: > Author: tommaso > Date: Sat Jan 29 15:42:53 2011 > New Revision: 37364 > URL: http://www.lyx.org/trac/changeset/37364 > > Log: > Added basic automated testing capability, based on the MonKey Test > (keytest.py) by McCabe-Dansted. > As of now, I plan to add a few regressio