Add Tests

This commit is contained in:
2020-06-10 10:16:28 +02:00
parent e7d247ca42
commit 709df81110
9 changed files with 335 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
#include "Test.h"
#include <Logging.h>
int main(int /*argc*/, char** /*argv*/)
{
Logging::OpenLog();
Logging::SetLogMask(Logging::Severity::Info);
if (
Timer::Test::TestMetronome() &&
Timer::Test::TestTimer() &&
Timer::Test::TestTrigger()
)
{
Logging::Log(Logging::Severity::Info, "Pass");
Logging::CloseLog();
return 0;
}
Logging::Log(Logging::Severity::Info, "Error");
Logging::CloseLog();
return -1;
}