Hi,
The webrev is available at:
http://cr.opensolaris.org/~migi/27_04_2011_automated_tests_18072/
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).
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.
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
-------
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)
--
best
Michal Pryc
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss