[test] Request related to BOOST_PRG_MON_CONFIRM

Hi, I'd like to request a way to inform the test system whether I want a success message or not. The Inspect tool makes a good example: if the user just invokes <inspect --help> I do not want a "no errors detected" to be displayed at the end. However, if I really run the inspection and there are no errors I'd like to have the message. Of course BOOST_PRG_MON_CONFIRM can't do that. We could choose a particular bit in the cpp_main return value to carry the desired piece of information, but that's not something I would be proud of. What's the best solution in the context of the test framework? -- [ Gennaro Prota, C++ developer for hire ]

"Gennaro Prota" <gennaro_prota@yahoo.com> wrote in message news:km3id29penetbssgc0om8gps7b5pokioe0@4ax.com...
Hi,
I'd like to request a way to inform the test system whether I want a success message or not. The Inspect tool makes a good example: if the user just invokes <inspect --help> I do not want a "no errors detected" to be displayed at the end. However, if I really run the inspection and there are no errors I'd like to have the message. Of course BOOST_PRG_MON_CONFIRM can't do that. We could choose a particular bit in the cpp_main return value to carry the desired piece of information, but that's not something I would be proud of. What's the best solution in the context of the test framework?
The UTF supports --report_level=no, which will cause no confirmation message to appear. You could also use unit_test::results_reporter::set_level( unit_test::NO_REPORT ) to update the report level programmatically. Gennadiy

On Fri, 11 Aug 2006 13:21:16 -0400, "Gennadiy Rozental" <gennadiy.rozental@thomson.com> wrote:
The UTF supports --report_level=no, which will cause no confirmation message to appear.
You could also use unit_test::results_reporter::set_level( unit_test::NO_REPORT ) to update the report level programmatically.
Thanks, I'll see if I can apply that. Likely to be my last contribution to Boost, and a little present to Beman :-) Wish I could thank him better. -- [ Gennaro Prota, C++ developer. For hire ]

On Fri, 11 Aug 2006 20:50:13 +0200, Gennaro Prota <gennaro_prota@yahoo.com> wrote:
On Fri, 11 Aug 2006 13:21:16 -0400, "Gennadiy Rozental" <gennadiy.rozental@thomson.com> wrote:
The UTF supports --report_level=no, which will cause no confirmation message to appear.
You could also use unit_test::results_reporter::set_level( unit_test::NO_REPORT ) to update the report level programmatically.
Thanks, I'll see if I can apply that. Likely to be my last contribution to Boost, and a little present to Beman :-) Wish I could thank him better.
Hmm, I must have been asleep when I wrote this. The Inspect tool uses the program execution monitor (which makes sense; it's not a unit test). So we are back to the starting point (or, rather, we have never moved from there). -- [ Gennaro Prota, C++ developer. For hire ]

"Gennaro Prota" <gennaro_prota@yahoo.com> wrote in message news:km3id29penetbssgc0om8gps7b5pokioe0@4ax.com...
Hi,
I'd like to request a way to inform the test system whether I want a success message or not. The Inspect tool makes a good example: if the user just invokes <inspect --help> I do not want a "no errors detected" to be displayed at the end. However, if I really run the inspection and there are no errors I'd like to have the message. Of course BOOST_PRG_MON_CONFIRM can't do that.
Why don't you set BOOST_PRG_MON_CONFIRM to "no" from within your code in case help was requested? Gennadiy

On Fri, 18 Aug 2006 00:19:53 -0400, "Gennadiy Rozental" <gennadiy.rozental@thomson.com> wrote:
Why don't you set BOOST_PRG_MON_CONFIRM to "no" from within your code in case help was requested?
Mainly because putenv() is not standard C++. -- [ Gennaro Prota. C++ developer, Library designer. ] [ For Hire http://gennaro-prota.50webs.com/ ]

"Gennaro Prota" <gennaro_prota@yahoo.com> wrote in message news:2jabe29pdfmnv23fos3m20ul2ct9ncdi35@4ax.com...
On Fri, 18 Aug 2006 00:19:53 -0400, "Gennadiy Rozental" <gennadiy.rozental@thomson.com> wrote:
Why don't you set BOOST_PRG_MON_CONFIRM to "no" from within your code in case help was requested?
Mainly because putenv() is not standard C++.
I believe putetv/setenv should cover all compilers/OS we care about. I don't really see what else could be done at the moment. Gennadiy
participants (2)
-
Gennadiy Rozental
-
Gennaro Prota