This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Is Guile up to the job of writing a DejaGnu replacement?



I have written a Guile module to act as a test framework for the GNUstep
libraries producing similar output to DejaGnu.

Having got an initial version working I thought that, with the 'expect'
features in Guile, it would be easy to add a few procedures to support
testing of standalone programs as well as linked libraries.

I wrote a procedure to run a program and use pipes to communicate with it
but found that the guile primitives I had used to set up the file descriptors
in the child process didn't actually exist - they were in the documentation
but not in the library!

What I need are ways to launch a program and have guile ,ports connected to
it's input and output.  I need the options to run the program on the end of
pipes or on a pseudo-terminal or (to completely replace DejaGNU) connect via
a serial port or network connection.

Do the primitives to do this actually exist in Guile anywhere?
Would I have to write them from scratch in C?
Or does anyone know of a free library I could link with to let me do this?

If there is no easy way to do this - I'll probably leave it for now - the
existing test framework does all I actually need.