2015-07-03 22:21:17 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* Copyright (c) FIRST 2015. All Rights Reserved. */
|
|
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
2015-07-03 13:29:31 -07:00
|
|
|
#include "gtest/gtest.h"
|
|
|
|
|
|
2015-08-13 22:14:17 -07:00
|
|
|
#include "Log.h"
|
|
|
|
|
|
2015-07-03 13:29:31 -07:00
|
|
|
int main(int argc, char **argv)
|
|
|
|
|
{
|
2015-08-13 22:14:17 -07:00
|
|
|
nt::Logger::GetInstance().SetLogger(
|
|
|
|
|
[](unsigned int level, const char* file, unsigned int line,
|
|
|
|
|
const char* msg) {
|
|
|
|
|
std::fputs(msg, stderr);
|
|
|
|
|
std::fputc('\n', stderr);
|
|
|
|
|
});
|
|
|
|
|
nt::Logger::GetInstance().set_min_level(0);
|
2015-07-03 13:29:31 -07:00
|
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
|
|
|
int ret = RUN_ALL_TESTS();
|
|
|
|
|
return ret;
|
|
|
|
|
}
|