main.cpp 597 B

123456789101112131415161718192021222324252627
  1. #include <gtest/gtest.h>
  2. #include "scope.h"
  3. #include "motor_sim_helper.h"
  4. // int main(void)
  5. // {
  6. // // SysFsmInit();
  7. // // for (int i = 0; i < 10000; i++)
  8. // // {
  9. // // SysFsmRun(SysFsmInMain);
  10. // // }
  11. // // SysFsmRun(SysFsmInTbc);
  12. // // SysFsmRun(SysFsmInTbs);
  13. // return 0;
  14. // }
  15. int main(int argc, char **argv)
  16. {
  17. // ::testing::GTEST_FLAG(output) = "xml:unittest.xml";
  18. ::testing::InitGoogleTest(&argc, argv);
  19. UdpScope::Init(56789);
  20. MotorSimHelper::StoreDefaultParam();
  21. auto res = RUN_ALL_TESTS();
  22. UdpScope::Deinit();
  23. return res;
  24. }