On 04/27/11 04:43 AM, Michal Pryc wrote:
Hi,
The webrev is available at:
http://cr.opensolaris.org/~migi/27_04_2011_automated_tests_18072/
Hi Michal, thanks for taking this on and giving us an advanced look at a
gui test suite that's coming.
This fixes the automated tests, which works with ldtp 2.x.
Please note that in the gate there is ldtp 1.x version, but we need to
open separate bug to ship 2.x. Those tests will not work with ldtp
1.x, that is why we do need to remove the ldtp 1.x after building the
gate (see below).
Which means that these changes won't land until we ship ldtp2.x, correct?
I am providing the steps to install ldtp 2.x and run the tests as
normal user. The tests will not work as different user then the
currently running GNOME desktop with A11Y enabled as the pyatspi
module will not be able to connect between those users, so please do
not su into root. All of the IPS images used for tests are user ones,
so all the tests will pass without need of running as root.
Given this, I'd like to see changes made so that the gui tests are not
part of the default set of tests to run. We know that it's necessary to
run some of the existing non-gui tests as root in order for them to
work. I'd like to see an option which enables the gui tests and disables
the other sets of tests from running.
1. Installing ldtp-2
$ pfexec su
$ cd ~/
$ wget http://download.freedesktop.org/ldtp/2.x/2.1.x/ldtp-2.1.1.tar.gz
$ gunzip ldtp-2.1.1.tar.gz
$ tar -xvf ldtp-2.1.1.tar
$ cd ldtp-2.1.1
### installed_files.txt can be used to uninstall the bits after the
### tests, please see below.
$ python2.6 setup.py install --record installed_files.txt
-------
2. After building the IPS gate please remove all of the ldtp from
there, so the proper one is picked up:
$ cd ips-gate/src
$ export
PATH=/usr/sbin:/opt/solstudioex/bin:/usr/ccs/bin:/usr/bin:/usr/gnu/bin:/usr/X11/bin:/sbin:/usr/sfw/bin
$ make clean
$ make install
$ rm -rf ../proto/root_i386/usr/lib/python2.6/vendor-packages/ldtp*
-------
3. Enable accessibility
gnome-panel menus:
System -> Preferences -> Assistive Technologies -> Enable
assistive technologies
Close and Log Out
I would hope that, in the final version, the test suite can
automatically enable assistive techs when run, then restore them to the
preexisting state after they're finished.
If that's impossible, then I assume the test suite will check to see if
they're enabled, and if not, stop immediately with a sensible error message.
-------
4. Run tests (as normal user - not root):
$ cd ips-gate/src/tests
$ ./run.py -o t_pm_*
--------------
Uninstalling ldtp-2
--------------
# If you wish to remove all of the ldtp-2 bits previously installed,
# please run the following command using the previously created
# installed_files.txt.
$ pfexec su
$ cd ~/ldtp-2.1.1/
$ rm $(cat installed_files.txt)
Other comments:
The copyrights are incorrect. They shouldn't be 2009, 2010, 2011,
instead it should be the first and last year. It looks like, 2009, 2011
will cover most of your files.
These tests look like a reasonable start at testing functionality. I
assume more tests are in the works/planned to deal with error
conditions, edge cases, etc?
Do I have to be logged in locally to the machine I'm running these test
cases on? What happens if I'm ssh'd in to a machine and run these tests?
I assume that if I don't have x forwarding enabled, it fails, but what
if I do have it enabled?
Thanks,
Brock
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss