Squashed commit of the following:
commit
68198703ab394c60eba2755b3e06158e726f103f
Author: davis mcpherson <davis.mcpherson@gmail.com>
Date: Thu Oct 29 21:15:43 2015 -0400
update cmake build file to work with add_cpputest macro
reanme test_tcp to test
ips_stream_reassemble.cc
ips_stream_size.cc
)
-
-if (BUILD_UNIT_TESTS)
- add_subdirectory(test_tcp)
-endif (BUILD_UNIT_TESTS)
-
-
--- /dev/null
+include_directories( ../../../network_inspectors )
+add_library( stream_tcp_test
+ ../tcp_normalizer.cc
+ ../tcp_normalizers.cc
+ ../../../protocols/tcp_options.cc
+ ../../../main/snort_debug.cc
+)
+
+add_cpputest( tcp_normalizer_test stream_tcp_test )
+++ /dev/null
-enable_testing()
-add_executable( tcp_normalizer_test
- tcp_normalizer_test.cc
- ../tcp_normalizer.cc
- ../tcp_normalizers.cc
- ../../../protocols/tcp_options.cc
- ../../../main/snort_debug.cc
-)
-target_link_libraries(tcp_normalizer_test ${LIBS})
-target_link_libraries(tcp_normalizer_test CppUTest )
-target_link_libraries(tcp_normalizer_test CppUTestExt )
-add_test(tcp_normalizer_test ${CMAKE_CURRENT_BINARY_DIR}/tcp_normalizer_test)