Thrift5272: cpp: add test for handling i8 type in printTo()
Compare output of printTo() with known expected strings.
Also fix some whitespacing, while at the files.
diff --git a/lib/cpp/test/CMakeLists.txt b/lib/cpp/test/CMakeLists.txt
index 5ad8d74..a73b3e6 100644
--- a/lib/cpp/test/CMakeLists.txt
+++ b/lib/cpp/test/CMakeLists.txt
@@ -47,6 +47,8 @@
gen-cpp/OneWayService.h
gen-cpp/TypedefTest_types.cpp
gen-cpp/TypedefTest_types.h
+ gen-cpp/Thrift5272_types.cpp
+ gen-cpp/Thrift5272_types.h
ThriftTest_extras.cpp
DebugProtoTest_extras.cpp
)
@@ -83,6 +85,7 @@
TServerTransportTest.cpp
ThrifttReadCheckTests.cpp
TUuidTest.cpp
+ Thrift5272.cpp
)
add_executable(UnitTests ${UnitTest_SOURCES})
@@ -369,6 +372,8 @@
#
# Common thrift code generation rules
#
+# files from /test
+#
add_custom_command(OUTPUT gen-cpp/AnnotationTest_constants.cpp
gen-cpp/AnnotationTest_constants.h
@@ -407,10 +412,16 @@
COMMAND ${THRIFT_COMPILER} --gen cpp ${PROJECT_SOURCE_DIR}/test/ThriftTest.thrift
)
+# files from /lib/cpp/test
+
add_custom_command(OUTPUT gen-cpp/OneWayService.cpp gen-cpp/OneWayTest_types.h gen-cpp/OneWayService.h
COMMAND ${THRIFT_COMPILER} --gen cpp ${CMAKE_CURRENT_SOURCE_DIR}/OneWayTest.thrift
)
+add_custom_command(OUTPUT gen-cpp/Thrift5272_types.cpp gen-cpp/Thrift5272_types.h
+ COMMAND ${THRIFT_COMPILER} --gen cpp ${CMAKE_CURRENT_SOURCE_DIR}/Thrift5272.thrift
+)
+
add_custom_command(OUTPUT gen-cpp/ChildService.cpp gen-cpp/ChildService.h gen-cpp/ParentService.cpp gen-cpp/ParentService.h gen-cpp/proc_types.cpp gen-cpp/proc_types.h
COMMAND ${THRIFT_COMPILER} --gen cpp:templates,cob_style ${CMAKE_CURRENT_SOURCE_DIR}/processor/proc.thrift
)