[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Testing GUI programs



On Thu, 16 Apr 2015 13:11:13 +0200, Ole Streicher wrote:

> I have a package (saods9) with a graphical user interface (Tk), and I
> want to make some basic build-time and CI tests. The program can be
> controlled from the command line; however it needs a running X server to
> start.
> 
> I could depend on xvfb, and do a
> 
> Xvfb &
> xpid=$!
> DISPLAY=:0 ... do the tests
> kill $xpid
> 
> but maybe there is a canonical or better way?

xvfb-run

Cf. https://codesearch.debian.net/perpackage-results/xvfb-run/2/page_0

E.g. a perl package:

https://sources.debian.net/src/libtk-objeditor-perl/2.008-1/debian/rules/
https://sources.debian.net/src/libtk-objeditor-perl/2.008-1/debian/control/


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   BOFH excuse #95:  Pentium FDIV bug 


Reply to: