Boost logo

Boost Users :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2007-02-14 04:02:51


"Paez, Juan" <jpaez_at_[hidden]> wrote in message
news:017630AA6DF2DF4EBC1DD4454F8EE2970A02398A_at_rsana-ex-hq1.NA.RSA.NET...
> Thanks for your answer.
>
> I am using boost 1.33.1.
>
> What I want to do is the following:
> If create a test suite named test_suite_1.h, I want to be able to send
> the logs to a particular file of parameters that I am reading at run
> time.
> At that moment I want to be able to set my log file with the filename I
> passed by parameter.

This is really what needs to go into suite level fixture. Right now you
could just try to create a test case in every test suite that does only what
you need and add it as first one.

> Thanks,
>
> Juan
>
> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Gennadiy
> Rozental
> Sent: Friday, February 09, 2007 4:46 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] using unit_test_log
>
>> "Paez, Juan" <jpaez_at_[hidden]> wrote in message
>>
> news:017630AA6DF2DF4EBC1DD4454F8EE2970A0238F8_at_rsana-ex-hq1.NA.RSA.NET...
>> Hello,
>>
>> I new using boost. I am trying to setup a set of test cases to test
> some
>> api. I would like to be able to use the logging facilities that boost
>> provides through the
>> unit_test_log class. I understand that from the command line you can
> set
>> the logging parameters. However, I want to be able to set those
> parameters
>> from
>> inside the my program executing the test cases.
>
> Yes. It's possible.
>
>> any ideas? Specifically, I want to be able to send the log output to
>> specific files (the files change depending on the test suite I am
>> running), the format, level, etc.
>
> What version of Boost r u planning to use? Do you want log from
> different
> test suites go to the different files? Why want you split your test
> module
> in two and each has it's own dedicated log file?
>
> Gennadiy
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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