Are there module existing for system test

T

Tammo Tjarks

I have looked around a little at rubyforge and RAA.
I would like to have something like unit tests also for system tests. What I
have in mind is, that I have a ruby-wrapper starting the programs "under
test" (e.g. Makefiles (but the whole system is running in unix with system
commands (not rake|rant)). I would like to check to somehow "monitor" what
is going on in the unix shell. This implies:
1. The wrapper should fake the system command or at least provide a
possibility to switch to "own" commands (could be done maybe by resetting
the PATH-Variable)
2. Track which commands are started inside the shell.

Is there hook to see which commands are executed inside a shell?
I think about using pty,Open3 or shell maybe.
With respect to that I have another question. When I start a process in
Open3.popen3 . How can I determine the working directory in that
subprocess?
 

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
474,273
Messages
2,571,364
Members
48,050
Latest member
Carson62C3

Latest Threads

Top