Add make commands for tests

This adds the make commands required to build and run tests.
This commit is contained in:
AbdealiJK
2016-12-02 00:04:33 +05:30
committed by Tianqi Chen
parent b045ccd764
commit 1f2ad36bad
6 changed files with 84 additions and 0 deletions

8
tests/cpp/test_main.cc Normal file
View File

@@ -0,0 +1,8 @@
// Copyright by Contributors
#include <gtest/gtest.h>
int main(int argc, char ** argv) {
testing::InitGoogleTest(&argc, argv);
testing::FLAGS_gtest_death_test_style = "threadsafe";
return RUN_ALL_TESTS();
}