Skip to content

Commit deb55b5

Browse files
committed
Add unittest for generated messages.
1 parent ad719dd commit deb55b5

File tree

4 files changed

+353
-60
lines changed

4 files changed

+353
-60
lines changed

CMakeLists.txt

+12-11
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ catkin_package(
8484
# DEPENDS system_lib
8585
)
8686

87-
rosgo_setup()
87+
88+
8889

8990
###########
9091
## Build ##
@@ -116,20 +117,20 @@ include_directories(
116117

117118
add_dependencies(rosgo_tests_gengo std_msgs_gengo)
118119

119-
rosgo_add_executable(${PROJECT_NAME}_test_talker ${PROJECT_NAME}/test_talker
120-
DEPENDS rosgo_core_ros rosgo_tests_gengo)
120+
rosgo_add_executable(${PROJECT_NAME}/test_talker
121+
DEPENDS rosgo_core rosgo_tests_gengo)
121122

122-
rosgo_add_executable(${PROJECT_NAME}_test_listener ${PROJECT_NAME}/test_listener
123-
DEPENDS rosgo_core_ros rosgo_tests_gengo)
123+
rosgo_add_executable(${PROJECT_NAME}/test_listener
124+
DEPENDS rosgo_core rosgo_tests_gengo)
124125

125-
rosgo_add_executable(${PROJECT_NAME}_test_client ${PROJECT_NAME}/test_client
126-
DEPENDS rosgo_core_ros rosgo_tests_gengo)
126+
rosgo_add_executable(${PROJECT_NAME}/test_client
127+
DEPENDS rosgo_core rosgo_tests_gengo)
127128

128-
rosgo_add_executable(${PROJECT_NAME}_test_server ${PROJECT_NAME}/test_server
129-
DEPENDS rosgo_core_ros rosgo_tests_gengo)
129+
rosgo_add_executable(${PROJECT_NAME}/test_server
130+
DEPENDS rosgo_core rosgo_tests_gengo)
130131

131-
rosgo_add_executable(${PROJECT_NAME}_test_message ${PROJECT_NAME}/test_message
132-
DEPENDS rosgo_core_ros rosgo_tests_gengo)
132+
rosgo_add_test(${PROJECT_NAME}/test_message
133+
DEPENDS rosgo_core rosgo_tests_gengo)
133134

134135

135136
#############

msg/AllFieldTypes.msg

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,19 @@ string HOGE=hoge
55
Header h
66
byte b
77
int8 i8
8-
uint8 u8
98
int16 i16
10-
uint16 u16
119
int32 i32
12-
uint32 u32
1310
int64 i64
11+
uint8 u8
12+
uint16 u16
13+
uint32 u32
1414
uint64 u64
1515
float32 f32
1616
float64 f64
1717
time t
1818
duration d
1919
string s
2020
std_msgs/ColorRGBA c
21-
int32[] dyn_ary
22-
int32[2] fix_ary
21+
uint32[] dyn_ary
22+
uint32[2] fix_ary
23+
#std_msgs/ColorRGBA[] msg_ary

src/rosgo_tests/test_message/main.go

-44
This file was deleted.

0 commit comments

Comments
 (0)