diff --git a/worker/api/cpp/.gitignore b/worker/api/cpp/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..cd62d2c27193b6609bd946addf2c5ef64a26fb42 --- /dev/null +++ b/worker/api/cpp/.gitignore @@ -0,0 +1,10 @@ +Testing +.cproject +.project +CMakeFiles +CMakeCache.txt +cmake_install.cmake +.settings +CTestTestfile.cmake +test-HIDRA2 +Makefile diff --git a/worker/api/cpp/CMakeLists.txt b/worker/api/cpp/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..0721e7583b8a411335302efb1678483adceaae77 --- /dev/null +++ b/worker/api/cpp/CMakeLists.txt @@ -0,0 +1,20 @@ +cmake_minimum_required(VERSION 3.5) +set(CMAKE_CXX_STANDARD 11) + +project(HIDRA2) +project(${PROJECT_NAME} C CXX) + +enable_testing() + +set(TEST_SOURCE_FILES unittests/test-suite.cpp) + +include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR}) +add_executable(test-${PROJECT_NAME} ${TEST_SOURCE_FILES}) + +target_link_libraries(test-${PROJECT_NAME} gtest gtest_main pthread) + +#target_link_libraries(test-${PROJECT_NAME} cpp-producer) + +add_test(NAME unittests COMMAND test-${PROJECT_NAME}) + +#astyle(test-${PROJECT_NAME} ${TEST_SOURCE_FILES}) \ No newline at end of file diff --git a/worker/api/cpp/unittests/test-suite.cpp b/worker/api/cpp/unittests/test-suite.cpp new file mode 100644 index 0000000000000000000000000000000000000000..b9e99d8fe8259527f006f1a5fae203ffa4b9c211 --- /dev/null +++ b/worker/api/cpp/unittests/test-suite.cpp @@ -0,0 +1,26 @@ +/* + * File: TestSuite + * Author: yakubov + * + * Created on Nov 22, 2017, 4:44:43 PM + */ + +#include <gtest/gtest.h> + +class TestWorkerAPI : public testing::Test { +protected: + + void SetUp() { + // Setup ... + } + + void TearDown() { + // Teardown ... + } + +}; + +TEST_F(TestWorkerAPI, testConnect) { + FAIL(); +} +