Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2006-08-04 20:55:24


"Paulo J. Matos" <pocmatos_at_[hidden]> wrote in message
news:11b141710608031126j4a7dd5a7h6b63a051d00339e_at_mail.gmail.com...
> Hi all,
>
> Is there support in Boost for testing program output, which depends
> exclusively in its arguments?
>
> Briefly, my program is not-interactive and its result (to stdout)
> depends uniquely on its input argument. Is there anything in Boost
> that can help me test my program this way?
>
> I've been using the Unit Testing Framework for unit tests and for the
> tests I've mentioned I've only found dejagnu up until now. Another
> solution would be bash-scripts that would run the program and check
> output, but that's not nice enough for me.
>
> Anything in Boost I might use? If not, are there any other suggestions?

you could always use some kind of "system" or "exec" call to invoke these
programs from within your test module and check for appropriate output using
regular Boost.Test tools.

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net