Cdroid/tests/porting/testmain.cc

24 lines
495 B
C++
Raw Normal View History

2021-06-24 10:12:55 +08:00
#include <gtest/gtest.h>
2024-10-16 13:41:28 +08:00
#include <porting/cdtypes.h>
#include <porting/cdlog.h>
#include <porting/cdgraph.h>
2021-06-24 10:12:55 +08:00
#include <math.h>
class HALEnvironment: public testing::Environment{
public:
void SetUp(){
GFXInit();
};
void TearDown(){
//sleep(5);
}
};
int main(int argc, char*argv[])
{
LogParseModules(argc,(const char**)argv);
testing::AddGlobalTestEnvironment(new HALEnvironment);
testing::InitGoogleTest(&argc,argv);
return RUN_ALL_TESTS();
}