7 #include <cppunit/CompilerOutputter.h> 8 #include <cppunit/extensions/TestFactoryRegistry.h> 9 #include <cppunit/ui/text/TestRunner.h> 10 #include <cppunit/extensions/HelperMacros.h> 19 int main(
int argc,
char* argv[]) {
20 std::cout <<
"Attention! All wheels of the youBot will move during the test. \nThe youBot should NOT stand on the ground and the wheels should be in the air! \nAlso the arm will move please be carefull!" << std::endl;
23 while (input !=
'y' && input !=
'n') {
24 std::cout <<
"Are all wheels off the ground? [n/y]" << std::endl;
30 Logger::logginLevel =
trace;
32 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
33 CppUnit::TextUi::TestRunner runner;
34 runner.addTest( suite );
35 runner.setOutputter(
new CppUnit::CompilerOutputter( &runner.result(), std::cerr ) );
37 bool wasSucessful = runner.run();
40 return wasSucessful ? 0 : 1;
A unit test for the youBot base.
int main(int argc, char *argv[])
A unit test for the youBot arm.
A unit test for the base kinematics.
CPPUNIT_TEST_SUITE_REGISTRATION(YouBotBaseTestWithoutThread)
A unit test for one youbot joint communicating without a thread.
A unit test for the youBot gripper.
A unit test for the youBot arm.