ros2 / rmw_iceoryx

rmw implementation for iceoryx
Apache License 2.0
143 stars 27 forks source link

ROS2 communication test failed. #53

Open ZhenshengLee opened 2 years ago

ZhenshengLee commented 2 years ago

Recently I used test_communication from system_tests to test rmw_iceoryx, here is the result.

The following tests FAILED:
     15 - test_messages_c__rmw_iceoryx_cpp (Timeout)
     27 - test_publisher_subscriber_cpp__rmw_iceoryx_cpp__WStrings (Failed)
     30 - test_serialize__rmw_iceoryx_cpp (Failed)
     36 - flake8 (Failed)
ZhenshengLee commented 2 years ago

According to #30 this test's failing can be accepted because there is a unique serialization method rather than cdr, am I right? @Karsten1987

test 30
      Start 30: test_serialize__rmw_iceoryx_cpp

30: Test command: /usr/bin/python3 "-u" "/opt/ros/foxy/share/ament_cmake_test/cmake/run_test.py" "/home/zs/zs_ws/ga_ros2/colcon/test/test_communication/test_serialize__rmw_iceoryx_cpp.gtest.xml" "--package-name" "test_communication" "--output-file" "/home/zs/zs_ws/ga_ros2/colcon/build/test_communication/ament_cmake_gtest/test_serialize__rmw_iceoryx_cpp.txt" "--env" "RCL_ASSERT_RMW_ID_MATCHES=rmw_iceoryx_cpp" "RMW_IMPLEMENTATION=rmw_iceoryx_cpp" "--command" "/home/zs/zs_ws/ga_ros2/colcon/build/test_communication/test_serialize__rmw_iceoryx_cpp" "--gtest_output=xml:/home/zs/zs_ws/ga_ros2/colcon/test/test_communication/test_serialize__rmw_iceoryx_cpp.gtest.xml"
30: Test timeout computed to be: 30
30: -- run_test.py: extra environment variables:
30:  - RCL_ASSERT_RMW_ID_MATCHES=rmw_iceoryx_cpp
30:  - RMW_IMPLEMENTATION=rmw_iceoryx_cpp
30: -- run_test.py: invoking following command in '/home/zs/zs_ws/ga_ros2/colcon/build/test_communication':
30:  - /home/zs/zs_ws/ga_ros2/colcon/build/test_communication/test_serialize__rmw_iceoryx_cpp --gtest_output=xml:/home/zs/zs_ws/ga_ros2/colcon/test/test_communication/test_serialize__rmw_iceoryx_cpp.gtest.xml
30: Running main() from /opt/ros/foxy/src/gtest_vendor/src/gtest_main.cc
30: [==========] Running 3 tests from 1 test case.
30: [----------] Global test environment set-up.
30: [----------] 3 tests from TestMessageSerialization
30: [ RUN      ] TestMessageSerialization.de_serialize_c
30: /home/zs/zs_ws/ga_ros2/ga_deps/system_tests/test_communication/test/test_message_serialization.cpp:117: Failure
30: Expected equality of these values:
30:   52u
30:     Which is: 52
30:   serialized_message_c.buffer_length
30:     Which is: 48
30: serialized data length: 48
30: serialized message c
30: 01 ff 6b 00 00 00 80 3f 00 00 00 00 00 00 00 40 03 04 05 00 06 00 00 00 07 00 00 00 08 00 00 00 09 00 00 00 00 00 00 00 0a 00 00 00 00 00 00 00 
30: [  FAILED  ] TestMessageSerialization.de_serialize_c (0 ms)
30: [ RUN      ] TestMessageSerialization.de_serialize_cpp
30: /home/zs/zs_ws/ga_ros2/ga_deps/system_tests/test_communication/test/test_message_serialization.cpp:163: Failure
30: Expected equality of these values:
30:   52u
30:     Which is: 52
30:   serialized_message_cpp.buffer_length
30:     Which is: 48
30: serialized message cpp
30: 01 ff 6b 00 00 00 80 3f 00 00 00 00 00 00 00 40 03 04 05 00 06 00 00 30 07 00 00 00 08 00 00 00 09 00 00 00 00 00 00 00 0a 00 00 00 00 00 00 00 
30: [  FAILED  ] TestMessageSerialization.de_serialize_cpp (1 ms)
30: [ RUN      ] TestMessageSerialization.cdr_integrity
30: -- run_test.py: return code -11
30: -- run_test.py: generate result file '/home/zs/zs_ws/ga_ros2/colcon/test/test_communication/test_serialize__rmw_iceoryx_cpp.gtest.xml' with failed test
30: -- run_test.py: verify result file '/home/zs/zs_ws/ga_ros2/colcon/test/test_communication/test_serialize__rmw_iceoryx_cpp.gtest.xml'
30/40 Test #30: test_serialize__rmw_iceoryx_cpp .......................................***Failed    0.18 sec