celestia/test/common/catch_main.cpp

18 lines
306 B
C++

#define CATCH_CONFIG_RUNNER
#include <catch.hpp>
#include <celutil/logger.h>
int main(int argc, char* argv[])
{
// setup
celestia::util::CreateLogger();
// run catch
int result = Catch::Session().run(argc, argv);
// cleanup
celestia::util::DestroyLogger();
return result;
}