Skip to content

Instantly share code, notes, and snippets.

@lisitsyn
Created February 23, 2018 11:04
Show Gist options
  • Save lisitsyn/9f69efa966c7a9b1b099643b5ff51ceb to your computer and use it in GitHub Desktop.
Save lisitsyn/9f69efa966c7a9b1b099643b5ff51ceb to your computer and use it in GitHub Desktop.
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <shogun/base/init.h>
#include <shogun/io/SGIO.h>
using namespace shogun;
int main(int argc, char** argv)
{
::testing::InitGoogleTest(&argc, argv);
::testing::InitGoogleMock(&argc, argv);
init_shogun_with_defaults();
sg_io->set_loglevel(MSG_DEBUG);
int ret = RUN_ALL_TESTS();
exit_shogun();
return ret;
}
default:
g++ -I../../../src -I../../../build/src main.cc Any_unittest.cc -L../../../third_party/libs/gmock/ -lgmock -lpthread -ggdb -g -L../../../build/src/shogun -lshogun
./a.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment