Commit 836e3a3f authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Add test framework.

parent 41d6d26f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

find_package (Threads)

add_subdirectory(tests)

add_subdirectory(prrt)
add_library(PRRT defines.h prrt/socket.c prrt/block.c prrt/block.h prrt/packet.c prrt/packet.h prrt/processes/feedback_receiver.c prrt/processes/feedback_receiver.h prrt/processes/data_transmitter.c prrt/processes/data_transmitter.h prrt/coding_params.c prrt/coding_params.h prrt/vdmcode/block_code.c prrt/vdmcode/block_code.h prrt/coding_params.c prrt/coding_params.h prrt/collections/in_buffer.c prrt/collections/in_buffer.h prrt/stores/forward_packet_table.c prrt/stores/forward_packet_table.h)
add_library(UTIL defines.h util/common.c util/common.h util/list.c util/list.h)

tests/CMakeLists.txt

0 → 100644
+11 −0
Original line number Diff line number Diff line
cmake_minimum_required(VERSION 2.8)
project(prrt_tests)

add_subdirectory(lib/gtest-1.7.0)
enable_testing()
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})

add_executable(runPRRTTests basic_check.cpp)

target_link_libraries(runPRRTTests gtest gtest_main)
target_link_libraries(runPRRTTests PRRT)
 No newline at end of file

tests/basic_check.cpp

0 → 100644
+5 −0
Original line number Diff line number Diff line
#include <gtest/gtest.h>

TEST(FirstTest, HandlesBasic) {

}
 No newline at end of file