Test.cc 432 B

1234567891011121314151617181920212223242526
  1. #include "Test.h"
  2. #include <Logging.h>
  3. int main(int /*argc*/, char** /*argv*/)
  4. {
  5. Logging::OpenLog();
  6. Logging::SetLogMask(Logging::Severity::Info);
  7. if (
  8. Timer::Test::TestMetronome() &&
  9. Timer::Test::TestTimer() &&
  10. Timer::Test::TestTrigger()
  11. )
  12. {
  13. Logging::Log(Logging::Severity::Info, "Pass");
  14. Logging::CloseLog();
  15. return 0;
  16. }
  17. Logging::Log(Logging::Severity::Info, "Error");
  18. Logging::CloseLog();
  19. return -1;
  20. }