[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Not a bug; rather a question
From: |
Thomas Dickey |
Subject: |
Re: Not a bug; rather a question |
Date: |
Wed, 13 Jan 2016 20:57:21 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Wed, Jan 13, 2016 at 05:45:02PM -0800, Michael Vensky wrote:
> I wanting to get some Python hooks into the ncurses data structures to allow
> for an expect/send type of test harness.
>
> We have a lot of apps that use ncurses. I want to fire them off then drive
> them with python and/or nose to support test driven development.
>
> I can make ncurses screens, but I can' really hook into ncurses application
> screens and read from them so as to be able to answer basic prompts with
> replies.
>
> Any suggestions as to where to start?
hmm - not really. There are perhaps two ways to test ncurses applications.
One would be with some front-end application such as "expect", which although
people _say_ it could be used, I don't recall seeing any credible example.
A while back (several years) someone got me to look at the X/Open test-driver,
but it was (a) complex and (b) fragile. I recall seeing some more recent
mention of it, but again, haven't seen any results.
The other would be back-end, by instrumenting the program. But I doubt
if you can do that.
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net
signature.asc
Description: Digital signature