"Creager, Robert S" <[EMAIL PROTECTED]> writes:

> I will re-run these test manually (the entire Tk grouping) with X-windows
> started...  Is there any way to determine at <perl Makefile.PL> time that
> the X server isn't available, or that connections are not allowed?
> 

This works for me:

    perl -MTk -e 'eval { tkinit }; if ($@) { warn "No X available" }'

Or start a virtual X11 framebuffer before doing the tests:

    Xvfb :121 &
    _XVFB_PID=$$!
    DISPLAY=:121
    ... testing ...
    echo Kill process $$_XVFB_PID
    kill -TERM $$_XVFB_PID

Regards,
        Slaven

-- 
Slaven Rezic - [EMAIL PROTECTED]

    tknotes - A knotes clone, written in Perl/Tk.
    http://ptktools.sourceforge.net/#tknotes

Reply via email to