doctest-alike for a unix shell?

P

Paddy

Hi,
Anyone know of something that can turn an interactive bash or tcsh
session into a test the
way doctest does?

- Cheers, Paddy.
 
P

Paddy

Thanks for the pointer to dejagnu, although it is not what I was after.

The question came about because I was scripting an interface to an
electronics design automation tool that comes with a TCL interface.
I was using a companion perl script called from the TCL to do most of
the more complex checking (I am still not allowed Python at work, sob).

I found myself testing the perl script by calling it repeatedly from
tcsh , with different options and different files and directories
created in its run directory that I knew it was sensitive to. I
scrolled back in my xterm window and thought that there before me was
most of my tests! If only their was doctest for tcsh, I could tell the
tool what my prompt strings were, cut-n-paste my shell session, and
Bobs yer uncle!

I guess doctest-alikes could be created for a lot of shell type
interfaces with distinct prompts.

- Paddy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top