boost.test: Run multiple tests
Hello, boost:test is a great tool. Now I have boost updated to v1.60 and can't run more than one tests at once. System is MinGW on Windows. Given suite_1 test_1_1 suite_1_2 test_1_2_1 and many more, all enabled by default, with v1.59 I could run these both test and exclude all others with --run_test=suite_1/test_1_1,suite_1/suite_1_2/test_1_2_1 respectively BOOST_TESTS_TO_RUN, but with v1.60 the result is "Test setup error: no test cases matching filter or all test cases were disabled". With --run_test=suite_1/test_1_1,suite1_2/test_1_2_1 only test_1_2_1 is executed. Same result with BOOST_TEST_RUN_FILTERS=suite_1/test_1_1,suite1_2/test_1_2_1 . With multiple --run_test= all is fine. But how do I execute multiple tests via variable? bye Udo -- Fahrradverkehr in Deutschland: http://radwege.udoline.de/ GPG: A245 F153 0636 6E34 E2F3 E1EB 817A B14D 3E7E 482E
Udo Steinbach
But how do I execute multiple tests via variable?
Indeed in 1.60 Runtime parameters framework was significantly reworked (and simplified). One thing that got "lost" is an ability to specify list parameters through single argument (as you found out you can use multiple arguments for that). And yes, this is no help for environment variable. While I am not quite sure why would you want to specify test cases to run through environment variable, I can consider workarounds if you file a ticket. Meanwhile I think the easiest (and better IMO) alternative is to use new Boost.Test feature: labels. Just level sets you are interested in and you can select them with a single argument/environment variable. Gennadiy
why would you want to specify test cases to run through environment variable
I run them through bjam "unit-test" with specific tests choosed for each round. So good would be if bjam had parameters to state test-parameters. Instead I now have to run alternating bjam and the test-program. Thats not sad but counterintuitive because of the new handling of ",".
file a ticket
oki doki -- Fahrradverkehr in Deutschland: http://radwege.udoline.de/ GPG: A245 F153 0636 6E34 E2F3 E1EB 817A B14D 3E7E 482E
participants (2)
-
Gennadiy Rozental
-
Udo Steinbach