I have written a normal driver class to load and run all
the cppunit test suites - Initially i had the driver class
main.cpp in the same directory as the Test classes and i
was using a single make file (attached initialmakefile) to
create the executable mycpptest. It executed properly
and ran all the tests
~
ISSUE
As these tests will be scattered in multiple folders, I
removed the driver program to a different folder with a
separate makefile(attached splitmakefile_driver) and
started compiling all the tests to create lib (.so) files
with their own make files(attached splitmakefile_tests) .
This was with the assumption that all the individual test
classes that register using the command
CPPUNIT_TEST_SUITE_REGISTRATION( xyz); will be
available when the driver class tries to load the test
from registry.
However in this case, the driver does not load even a
single test and just exits successfully.
The Test Environment is Linux.
I have attached all the test files and the make files and
would appreciate any help in resolving this.
Another curious question is , how would the driver class
locate all the registered tests - does it inspect all the
available shared objects to see if they have registered a
test ?
Thanks
Anshuman (aastha@sapient.com)
Source and Make files