TestSuite.cpp
Go to the documentation of this file.
7 #include <cppunit/CompilerOutputter.h>
8 #include <cppunit/extensions/TestFactoryRegistry.h>
9 #include <cppunit/ui/text/TestRunner.h>
10 #include <cppunit/extensions/HelperMacros.h>
11 
18 
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;
21  char input = 0;
22 
23  while (input != 'y' && input != 'n') {
24  std::cout << "Are all wheels off the ground? [n/y]" << std::endl;
25  input = getchar();
26  if (input == 'n') {
27  return 0;
28  }
29  }
30  Logger::logginLevel = trace;
31 
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();
38 
40  return wasSucessful ? 0 : 1;
41 }
42 
43 
A unit test for the youBot base.
int main(int argc, char *argv[])
Definition: TestSuite.cpp:19
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.


youbot_driver
Author(s): Jan Paulus
autogenerated on Mon Jun 10 2019 15:46:25