2 #include <UnitTest++.h>
3 #include <TestReporterStdout.h>
6 #include <OSGBaseInitFunctions.h>
10 TestNameEquals(const std::string
&testName
)
15 bool operator()(const UnitTest::Test
* const test
) const
17 return (_testName
== test
->m_details
.testName
);
20 std::string _testName
;
23 int main(int argc
, char *argv
[])
25 OSG::osgInit(argc
, argv
);
31 TestNameEquals
pred(argv
[1]);
32 UnitTest::TestReporterStdout rep
;
33 UnitTest::TestRunner
runner(rep
);
35 retVal
= runner
.RunTestsIf(
36 UnitTest::Test::GetTestList(), NULL
, pred
, 0);
40 retVal
= UnitTest::RunAllTests();