<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 43: CppUnit driver class not loading registered tests</title><link href="https://sourceforge.net/p/cppunit/support-requests/43/" rel="alternate"/><link href="https://sourceforge.net/p/cppunit/support-requests/43/feed.atom" rel="self"/><id>https://sourceforge.net/p/cppunit/support-requests/43/</id><updated>2004-11-25T16:27:29Z</updated><subtitle>Recent changes to 43: CppUnit driver class not loading registered tests</subtitle><entry><title>CppUnit driver class not loading registered tests</title><link href="https://sourceforge.net/p/cppunit/support-requests/43/" rel="alternate"/><published>2004-11-25T16:27:29Z</published><updated>2004-11-25T16:27:29Z</updated><author><name>aastha123</name><uri>https://sourceforge.net/u/aastha123/</uri></author><id>https://sourceforge.net57679a97b4fd2ff702f86410a4a601d6ddda090a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have written a normal driver class to load and run all &lt;br /&gt;
the cppunit test suites - Initially i had the driver class &lt;br /&gt;
main.cpp in the same directory as the Test classes and i &lt;br /&gt;
was using a single make file (attached initialmakefile) to &lt;br /&gt;
create the executable mycpptest. It executed properly &lt;br /&gt;
and ran all the tests&lt;br /&gt;
~                                                           &lt;br /&gt;
ISSUE&lt;br /&gt;
As these tests will be scattered in multiple folders, I &lt;br /&gt;
removed the driver program to a different folder with a &lt;br /&gt;
separate makefile(attached splitmakefile_driver) and &lt;br /&gt;
started compiling all the tests to create lib (.so) files &lt;br /&gt;
with their own make files(attached splitmakefile_tests) . &lt;br /&gt;
This was with the assumption that all the individual test &lt;br /&gt;
classes that register using the command &lt;br /&gt;
CPPUNIT_TEST_SUITE_REGISTRATION( xyz); will be &lt;br /&gt;
available when the driver class tries to load the test &lt;br /&gt;
from registry.&lt;/p&gt;
&lt;p&gt;However in this case, the driver does not load even a &lt;br /&gt;
single test and just exits successfully.&lt;/p&gt;
&lt;p&gt;The Test Environment is Linux.&lt;/p&gt;
&lt;p&gt;I have attached all the test files and the make files and &lt;br /&gt;
would appreciate any help in resolving this.&lt;/p&gt;
&lt;p&gt;Another curious question is , how would the driver class &lt;br /&gt;
locate all the registered tests -  does it inspect all the &lt;br /&gt;
available shared objects to see if they have registered a &lt;br /&gt;
test ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;br /&gt;
Anshuman (aastha@sapient.com)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>