On Thu, Mar 30, 2017 at 07:03:38PM +0530, Hrishikesh Menon wrote:
> Hi,
>
> Sorry to jut in to the conversation, but when you are using Linux (or any
> Unix based system), at least, extracting all test cases should be easy, as
> long as they are in the same folder (like they are now). I believe calling
> an ls from the system* , or maybe
>
> FILE* file = popen("ls", "r");
>
> using this code snippet, one can create a new file with the names of
> the tests, every time the parallelization program is run.
Hi Hrishikesh,
Thanks for the input. Unfortunately we will not be able to get away
with a simple solution like that this time. :(
We need to parse through each of the _test.cpp files to extract the
macros "BOOST_AUTO_TEST_CASE()" and "BOOST_AUTO_TEST_SUITE()" from each
file, then get the actual name of the test case and test suite from
that. On top of that, we have to do it in a platform-independent way
(or, at least as platform-independent as CMake is), so realistically
unless we can think of a better way, probably writing a CMake script to
generate the list will be the way to go.
Thanks,
Ryan
--
Ryan Curtin | "Moo."
[email protected] | - Eugene Belford
_______________________________________________
mlpack mailing list
[email protected]
http://knife.lugatgt.org/cgi-bin/mailman/listinfo/mlpack