ros-industrial / industrial_core

ROS-Industrial core communication packages (http://wiki.ros.org/industrial_core)
156 stars 181 forks source link

Addresses test failures documented in #41 #160

Closed shaun-edwards closed 7 years ago

shaun-edwards commented 7 years ago

Changed test port numbers to unused range in linux. utest_message now uses port range defined by macros (addresses failure to init server socket).

I believe this has become more of an issue because tests are now executed in parallel. In the pasts, tests were executed in a single thread and there wasn't a chance of tests fighting over the same port number.

shaun-edwards commented 7 years ago

@jrgnicho, could you review?

shaun-edwards commented 7 years ago

@VictorLamoine, this is currently holding me up. If you could review that would be helpful.

VictorLamoine commented 7 years ago

Everything looks fine, Travis tests are passing and I tested locally too.

utest_float64 and utest_udp does not seems to be run (ar they disabled?)

Local log:

[==========] Running 25 tests from 10 test cases.
[----------] Global test environment set-up.
[----------] 4 tests from ByteArraySuite
[==========] Running 25 tests from 10 test cases.
[==========] Running 25 tests from 10 test cases.
[ RUN      ] ByteArraySuite.init
[==========] Running 25 tests from 10 test cases.
[----------] Global test environment set-up.
[----------] Global test environment set-up.
[----------] Global test environment set-up.
[----------] 4 tests from ByteArraySuite
[----------] 4 tests from ByteArraySuite
[----------] 4 tests from ByteArraySuite
[ RUN      ] ByteArraySuite.init
[ RUN      ] ByteArraySuite.init
[ RUN      ] ByteArraySuite.init
               ByteArray.MaxSize==INT_MAX.  Skipping TOO_BIG tests
[       OK ] ByteArraySuite.init (0 ms)
[ RUN      ] ByteArraySuite.loading
               ByteArray.MaxSize==INT_MAX.  Skipping TOO_BIG tests
               ByteArray.MaxSize==INT_MAX.  Skipping TOO_BIG tests
               ByteArray.MaxSize==INT_MAX.  Skipping TOO_BIG tests
[       OK ] ByteArraySuite.loading (0 ms)
[       OK ] ByteArraySuite.init (0 ms)
[ RUN      ] ByteArraySuite.byteSwapping
[       OK ] ByteArraySuite.init (0 ms)
[ RUN      ] ByteArraySuite.loading
[       OK ] ByteArraySuite.byteSwapping (0 ms)
[ RUN      ] ByteArraySuite.loading
[ RUN      ] ByteArraySuite.copy
[       OK ] ByteArraySuite.init (0 ms)
[ RUN      ] ByteArraySuite.loading
               ByteArray.MaxSize==INT_MAX.  Skipping TOO_BIG tests
[       OK ] ByteArraySuite.copy (0 ms)
[----------] 4 tests from ByteArraySuite (0 ms total)

[       OK ] ByteArraySuite.loading (0 ms)
[       OK ] ByteArraySuite.loading (0 ms)
[ RUN      ] ByteArraySuite.byteSwapping
[ RUN      ] ByteArraySuite.byteSwapping
[----------] 2 tests from SocketSuite
[       OK ] ByteArraySuite.byteSwapping (0 ms)
[ RUN      ] SocketSuite.read
[ RUN      ] ByteArraySuite.copy
[       OK ] ByteArraySuite.byteSwapping (0 ms)
[ RUN      ] ByteArraySuite.copy
[       OK ] ByteArraySuite.loading (1 ms)
[ RUN      ] ByteArraySuite.byteSwapping
               ByteArray.MaxSize==INT_MAX.  Skipping TOO_BIG tests
               ByteArray.MaxSize==INT_MAX.  Skipping TOO_BIG tests
[       OK ] ByteArraySuite.copy (1 ms)
[       OK ] ByteArraySuite.copy (1 ms)
[       OK ] ByteArraySuite.byteSwapping (0 ms)
[ RUN      ] ByteArraySuite.copy
[----------] 4 tests from ByteArraySuite (1 ms total)

[----------] 4 tests from ByteArraySuite (1 ms total)

[----------] 2 tests from SocketSuite
[----------] 2 tests from SocketSuite
[ RUN      ] SocketSuite.read
[ RUN      ] SocketSuite.read
               ByteArray.MaxSize==INT_MAX.  Skipping TOO_BIG tests
[ INFO] [1483606168.461056048]: Server socket successfully initialized
[       OK ] ByteArraySuite.copy (0 ms)
[----------] 4 tests from ByteArraySuite (1 ms total)

[ INFO] [1483606168.461082018]: Socket in listen mode
[----------] 2 tests from SocketSuite
[ RUN      ] SocketSuite.read
[ INFO] [1483606168.461106650]: Server socket successfully initialized
[ INFO] [1483606168.461109808]: Server socket successfully initialized
[ INFO] [1483606168.461144185]: Socket in listen mode
[ INFO] [1483606168.461149280]: Server socket successfully initialized
[ INFO] [1483606168.461179901]: Socket in listen mode
[ INFO] [1483606168.461207235]: Connected to server
[ INFO] [1483606168.461227688]: Client socket accepted
[ INFO] [1483606168.461249332]: UDP client connected
[ INFO] [1483606168.461260554]: Connected to server
[ INFO] [1483606168.461281011]: Connected to server
[ INFO] [1483606168.461283656]: Client socket accepted
[ INFO] [1483606168.461303578]: Client socket accepted
[==========] Running 2 tests from 1 test case.
[----------] Global test environment set-up.
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 2 tests from IndustrialUtilsSuite
[ RUN      ] IndustrialUtilsSuite.vector_within_range
[----------] 1 test from IndustrialUtilsSuite
[ RUN      ] IndustrialUtilsSuite.vector_compare
[ERROR] [1483606168.464588663]: isWithinRange::lhs size: 1 does not match rhs size: 0
[ERROR] [1483606168.464610741]: isWithinRange::lhs size: 2 does not match rhs size: 1
[       OK ] IndustrialUtilsSuite.vector_compare (0 ms)
[----------] 1 test from IndustrialUtilsSuite (0 ms total)

[----------] Global test environment tear-down
[       OK ] IndustrialUtilsSuite.vector_within_range (0 ms)
[ RUN      ] IndustrialUtilsSuite.map_within_range
[ERROR] [1483606168.464678588]: isWithinRange::Key vectors are not similar
[       OK ] IndustrialUtilsSuite.map_within_range (0 ms)
[----------] 2 tests from IndustrialUtilsSuite (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (0 ms total)
[  PASSED  ] 1 test.
[==========] 2 tests from 1 test case ran. (0 ms total)
[  PASSED  ] 2 tests.
-- run_tests.py: verify result "/home/victor/catkin_indus_core/build/test_results/industrial_robot_client/gtest-utest_robot_client.xml"
-- run_tests.py: verify result "/home/victor/catkin_indus_core/build/test_results/industrial_utils/gtest-utest_inds_utils.xml"
[100%] Built target _run_tests_industrial_utils_gtest_utest_inds_utils
[100%] Built target _run_tests_industrial_robot_client_gtest_utest_robot_client
Scanning dependencies of target _run_tests_industrial_utils_gtest
Scanning dependencies of target _run_tests_industrial_robot_client_gtest
[100%] Built target _run_tests_industrial_utils_gtest
[100%] Built target _run_tests_industrial_robot_client_gtest
Scanning dependencies of target _run_tests_industrial_robot_client
Scanning dependencies of target _run_tests_industrial_utils
[100%] Built target _run_tests_industrial_robot_client
[100%] Built target _run_tests_industrial_utils
checking *.launch in directory /home/victor/catkin_indus_core/src/industrial_core/industrial_robot_simulator/launch
checking /home/victor/catkin_indus_core/src/industrial_core/industrial_robot_simulator/launch/robot_interface_simulator.launch
...writing test results to /home/victor/catkin_indus_core/build/test_results/industrial_robot_simulator/roslaunch-check_launch.xml
passed
-- run_tests.py: verify result "/home/victor/catkin_indus_core/build/test_results/industrial_robot_simulator/roslaunch-check_launch.xml"
[100%] Built target _run_tests_industrial_robot_simulator_roslaunch-check_launch
Scanning dependencies of target _run_tests_industrial_robot_simulator_roslaunch-check
[100%] Built target _run_tests_industrial_robot_simulator_roslaunch-check
Scanning dependencies of target _run_tests_industrial_robot_simulator
[100%] Built target _run_tests_industrial_robot_simulator
[       OK ] SocketSuite.read (2000 ms)
[       OK ] SocketSuite.read (2000 ms)
[       OK ] SocketSuite.read (2001 ms)
[ RUN      ] SocketSuite.splitPackets
[ RUN      ] SocketSuite.splitPackets
[ RUN      ] SocketSuite.splitPackets
[       OK ] SocketSuite.read (2000 ms)
[ RUN      ] SocketSuite.splitPackets
[ INFO] [1483606170.461616422]: Server socket successfully initialized
[ INFO] [1483606170.461616371]: Server socket successfully initialized
[ INFO] [1483606170.461617373]: Server socket successfully initialized
[ INFO] [1483606170.461634119]: Socket in listen mode
[ INFO] [1483606170.461636984]: Socket in listen mode
[ INFO] [1483606170.461635207]: Server socket successfully initialized
[ INFO] [1483606170.461657000]: Socket in listen mode
[ INFO] [1483606170.461732412]: Connected to server
[ INFO] [1483606170.461732353]: Connected to server
[ INFO] [1483606170.461753833]: Connected to server
[ INFO] [1483606170.461763423]: UDP client connected
[ INFO] [1483606170.461767338]: Client socket accepted
[ INFO] [1483606170.461788788]: Client socket accepted
[ INFO] [1483606170.461797070]: Client socket accepted
[       OK ] SocketSuite.splitPackets (1 ms)
[----------] 2 tests from SocketSuite (2001 ms total)

[----------] 1 test from SimpleMessageSuite
[ RUN      ] SimpleMessageSuite.init
[ WARN] [1483606170.462875053]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.462895443]: Byte array copy not performed, buffer to copy is empty
[       OK ] SocketSuite.splitPackets (1 ms)
[----------] 2 tests from SocketSuite (2001 ms total)

[       OK ] SocketSuite.splitPackets (1 ms)
[----------] 1 test from SimpleMessageSuite
[ RUN      ] SimpleMessageSuite.init
[ WARN] [1483606170.462926915]: Byte array copy not performed, buffer to copy is empty
[----------] 2 tests from SocketSuite (2001 ms total)

[       OK ] SocketSuite.splitPackets (1 ms)
[----------] 1 test from SimpleMessageSuite
[ RUN      ] SimpleMessageSuite.init
[ WARN] [1483606170.462950657]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.462955369]: Byte array copy not performed, buffer to copy is empty
[----------] 2 tests from SocketSuite (2002 ms total)

[ WARN] [1483606170.462965295]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.462969340]: Byte array copy not performed, buffer to copy is empty
[----------] 1 test from SimpleMessageSuite
[ RUN      ] SimpleMessageSuite.init
[ WARN] [1483606170.462977944]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.462982608]: Invalid message type: 0
[ WARN] [1483606170.462982497]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.462987596]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.462997811]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.462997160]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463002511]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463007638]: Invalid message type: 0
[ WARN] [1483606170.463011315]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463016443]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463015691]: Invalid reply. Comm type: 2, Reply type: 1
[ WARN] [1483606170.463013883]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463018926]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463025836]: Invalid reply. Comm type: 2, Reply type: 1
[ WARN] [1483606170.463031515]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463032990]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463034246]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463040985]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463044380]: Invalid reply. Comm type: 2, Reply type: 2
[ WARN] [1483606170.463045403]: Invalid message type: 0
[ WARN] [1483606170.463046487]: Invalid reply. Comm type: 2, Reply type: 2
[       OK ] SimpleMessageSuite.init (1 ms)
[ WARN] [1483606170.463058204]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463057726]: Byte array copy not performed, buffer to copy is empty
[----------] 1 test from SimpleMessageSuite (1 ms total)

[----------] 2 tests from PingMessageSuite
[       OK ] SimpleMessageSuite.init (1 ms)
[ RUN      ] PingMessageSuite.init
[ WARN] [1483606170.463070779]: Invalid reply. Comm type: 2, Reply type: 1
[ WARN] [1483606170.463073864]: Byte array copy not performed, buffer to copy is empty
[----------] 1 test from SimpleMessageSuite (1 ms total)

[ WARN] [1483606170.463087063]: Byte array copy not performed, buffer to copy is empty
[----------] 2 tests from PingMessageSuite
[ WARN] [1483606170.463090927]: Byte array copy not performed, buffer to copy is empty
[ RUN      ] PingMessageSuite.init
[ERROR] [1483606170.463091723]: Failed to initialize message, wrong type: 0, expected 1
[ WARN] [1483606170.463098203]: Invalid reply. Comm type: 2, Reply type: 2
[ WARN] [1483606170.463108875]: Invalid message type: 0
[ WARN] [1483606170.463110957]: Byte array copy not performed, buffer to copy is empty
[       OK ] SimpleMessageSuite.init (1 ms)
[----------] 1 test from SimpleMessageSuite (1 ms total)

[       OK ] PingMessageSuite.init (0 ms)
[ WARN] [1483606170.463125124]: Byte array copy not performed, buffer to copy is empty
[ RUN      ] PingMessageSuite.toMessage
[ERROR] [1483606170.463121040]: Failed to initialize message, wrong type: 0, expected 1
[----------] 2 tests from PingMessageSuite
[ RUN      ] PingMessageSuite.init
[ WARN] [1483606170.463141309]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463141798]: Invalid reply. Comm type: 2, Reply type: 1
[ WARN] [1483606170.463151784]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463150493]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463158209]: Byte array copy not performed, buffer to copy is empty
[       OK ] PingMessageSuite.toMessage (0 ms)
[ERROR] [1483606170.463157999]: Failed to initialize message, wrong type: 0, expected 1
[----------] 2 tests from PingMessageSuite (0 ms total)

[       OK ] PingMessageSuite.init (0 ms)
[----------] 1 test from PingHandlerSuite
[ RUN      ] PingHandlerSuite.init
[ WARN] [1483606170.463172842]: Invalid reply. Comm type: 2, Reply type: 2
[ RUN      ] PingMessageSuite.toMessage
[ WARN] [1483606170.463181731]: Byte array copy not performed, buffer to copy is empty
[ERROR] [1483606170.463190260]: Message connection is NULL
[       OK ] PingMessageSuite.init (0 ms)
[       OK ] SimpleMessageSuite.init (1 ms)
[ RUN      ] PingMessageSuite.toMessage
[       OK ] PingHandlerSuite.init (0 ms)
[ WARN] [1483606170.463198552]: Byte array copy not performed, buffer to copy is empty
[----------] 1 test from PingHandlerSuite (0 ms total)

[----------] 1 test from SimpleMessageSuite (1 ms total)

[----------] 2 tests from MessageManagerSuite
[ RUN      ] MessageManagerSuite.init
[----------] 2 tests from PingMessageSuite
[ WARN] [1483606170.463217399]: Byte array copy not performed, buffer to copy is empty
[ WARN] [1483606170.463219876]: Byte array copy not performed, buffer to copy is empty
[ RUN      ] PingMessageSuite.init
[ INFO] [1483606170.463228515]: Initializing message manager with default comms fault handler
[ WARN] [1483606170.463234428]: Byte array copy not performed, buffer to copy is empty
[       OK ] PingMessageSuite.toMessage (0 ms)
[ INFO] [1483606170.463239851]: Default communications fault handler successfully initialized
[       OK ] PingMessageSuite.toMessage (0 ms)
[----------] 2 tests from PingMessageSuite (0 ms total)

[ INFO] [1483606170.463250315]: Initializing message manager
[----------] 2 tests from PingMessageSuite (0 ms total)

[ERROR] [1483606170.463252377]: Failed to initialize message, wrong type: 0, expected 1
[----------] 1 test from PingHandlerSuite
[----------] 1 test from PingHandlerSuite
[ RUN      ] PingHandlerSuite.init
[ INFO] [1483606170.463264546]: Added message handler for message type: 1
[ RUN      ] PingHandlerSuite.init
[ INFO] [1483606170.463275598]: Initializing message manager with default comms fault handler
[ WARN] [1483606170.463276591]: Byte array copy not performed, buffer to copy is empty
[ERROR] [1483606170.463284325]: NULL connection passed into manager init
[ERROR] [1483606170.463290121]: Message connection is NULL
[ERROR] [1483606170.463287661]: Message connection is NULL
[       OK ] MessageManagerSuite.init (0 ms)
[       OK ] PingMessageSuite.init (0 ms)
[ RUN      ] MessageManagerSuite.addHandler
[ RUN      ] PingMessageSuite.toMessage
[       OK ] PingHandlerSuite.init (0 ms)
[       OK ] PingHandlerSuite.init (0 ms)
[ INFO] [1483606170.463308007]: Initializing message manager with default comms fault handler
[----------] 1 test from PingHandlerSuite (0 ms total)

[----------] 2 tests from MessageManagerSuite
[----------] 1 test from PingHandlerSuite (0 ms total)

[ INFO] [1483606170.463317769]: Default communications fault handler successfully initialized
[ RUN      ] MessageManagerSuite.init
[----------] 2 tests from MessageManagerSuite
[ WARN] [1483606170.463325245]: Byte array copy not performed, buffer to copy is empty
[ INFO] [1483606170.463328889]: Initializing message manager
[ RUN      ] MessageManagerSuite.init
[ INFO] [1483606170.463337724]: Initializing message manager with default comms fault handler
[ INFO] [1483606170.463339931]: Added message handler for message type: 1
[ WARN] [1483606170.463346066]: Byte array copy not performed, buffer to copy is empty
[ERROR] [1483606170.463349238]: NULL handler not added
[ INFO] [1483606170.463353306]: Default communications fault handler successfully initialized
[ INFO] [1483606170.463355166]: Initializing message manager with default comms fault handler
[ERROR] [1483606170.463360255]: Failed to add handler for: 1, handler already exists
[       OK ] PingMessageSuite.toMessage (0 ms)
[ INFO] [1483606170.463363527]: Initializing message manager
[       OK ] MessageManagerSuite.addHandler (0 ms)
[----------] 2 tests from PingMessageSuite (0 ms total)

[----------] 2 tests from MessageManagerSuite (0 ms total)

[ INFO] [1483606170.463375126]: Default communications fault handler successfully initialized
[----------] 4 tests from JointMessage
[----------] 1 test from PingHandlerSuite
[ INFO] [1483606170.463383226]: Added message handler for message type: 1
[ RUN      ] JointMessage.init
[ RUN      ] PingHandlerSuite.init
[ INFO] [1483606170.463394368]: Initializing message manager
[ INFO] [1483606170.463397247]: Initializing message manager with default comms fault handler
[ERROR] [1483606170.463404533]: Joint index: 10, is greater than size: 10
[ERROR] [1483606170.463409148]: NULL connection passed into manager init
[       OK ] JointMessage.init (0 ms)
[ RUN      ] JointMessage.equal
[ INFO] [1483606170.463415608]: Added message handler for message type: 1
[ERROR] [1483606170.463415415]: Message connection is NULL
[       OK ] MessageManagerSuite.init (0 ms)
[       OK ] JointMessage.equal (0 ms)
[ RUN      ] MessageManagerSuite.addHandler
[ RUN      ] JointMessage.toMessage
[       OK ] PingHandlerSuite.init (0 ms)
[ INFO] [1483606170.463430898]: Initializing message manager with default comms fault handler
[ INFO] [1483606170.463437553]: Initializing message manager with default comms fault handler
[       OK ] JointMessage.toMessage (0 ms)
[----------] 1 test from PingHandlerSuite (0 ms total)

[ RUN      ] JointMessage.Comms
[ INFO] [1483606170.463445983]: Default communications fault handler successfully initialized
[----------] 2 tests from MessageManagerSuite
[ERROR] [1483606170.463448600]: NULL connection passed into manager init
[ RUN      ] MessageManagerSuite.init
[ INFO] [1483606170.463453725]: Initializing message manager
[ INFO] [1483606170.463464056]: Added message handler for message type: 1
[       OK ] MessageManagerSuite.init (0 ms)
[ RUN      ] MessageManagerSuite.addHandler
[ERROR] [1483606170.463474181]: NULL handler not added
[ INFO] [1483606170.463478761]: Initializing message manager with default comms fault handler
[ERROR] [1483606170.463483686]: Failed to add handler for: 1, handler already exists
[ INFO] [1483606170.463488836]: Initializing message manager with default comms fault handler
[ INFO] [1483606170.463489823]: Server socket successfully initialized
[       OK ] MessageManagerSuite.addHandler (0 ms)
[----------] 2 tests from MessageManagerSuite (0 ms total)

[ INFO] [1483606170.463502452]: Socket in listen mode
[ INFO] [1483606170.463500610]: Default communications fault handler successfully initialized
[----------] 4 tests from JointMessage
[ INFO] [1483606170.463503549]: Default communications fault handler successfully initialized
[ RUN      ] JointMessage.init
[ INFO] [1483606170.463521184]: Initializing message manager
[ INFO] [1483606170.463523031]: Initializing message manager
[ERROR] [1483606170.463531455]: Joint index: 10, is greater than size: 10
[ INFO] [1483606170.463536722]: Added message handler for message type: 1
[       OK ] JointMessage.init (0 ms)
[ RUN      ] JointMessage.equal
[ INFO] [1483606170.463545335]: Added message handler for message type: 1
[ INFO] [1483606170.463547908]: Connected to server
[       OK ] JointMessage.equal (0 ms)
[ERROR] [1483606170.463554428]: NULL handler not added
[ RUN      ] JointMessage.toMessage
[ INFO] [1483606170.463561252]: Client socket accepted
[ INFO] [1483606170.463561412]: Initializing message manager with default comms fault handler
[       OK ] JointMessage.toMessage (0 ms)
[ RUN      ] JointMessage.Comms
[ERROR] [1483606170.463572965]: Failed to add handler for: 1, handler already exists
[ERROR] [1483606170.463578425]: NULL connection passed into manager init
[       OK ] MessageManagerSuite.addHandler (0 ms)
[----------] 2 tests from MessageManagerSuite (0 ms total)

[       OK ] MessageManagerSuite.init (0 ms)
[ RUN      ] MessageManagerSuite.addHandler
[----------] 4 tests from JointMessage
[ RUN      ] JointMessage.init
[ INFO] [1483606170.463705821]: Server socket successfully initialized
[ INFO] [1483606170.463710181]: Initializing message manager with default comms fault handler
[ INFO] [1483606170.463737414]: Socket in listen mode
[ERROR] [1483606170.463746268]: Joint index: 10, is greater than size: 10
[ INFO] [1483606170.463753674]: Default communications fault handler successfully initialized
[       OK ] JointMessage.init (0 ms)
[ INFO] [1483606170.463792423]: Initializing message manager
[ RUN      ] JointMessage.equal
[       OK ] JointMessage.Comms (0 ms)
[       OK ] JointMessage.equal (0 ms)
[ INFO] [1483606170.463830908]: Added message handler for message type: 1
[ RUN      ] JointMessage.toMessage
[----------] 4 tests from JointMessage (0 ms total)

[----------] 3 tests from JointTrajPt
[ RUN      ] JointTrajPt.equal
[ INFO] [1483606170.463878604]: Connected to server
[ERROR] [1483606170.463884853]: NULL handler not added
[       OK ] JointMessage.toMessage (0 ms)
[ RUN      ] JointMessage.Comms
[ INFO] [1483606170.463912952]: Client socket accepted
[       OK ] JointTrajPt.equal (0 ms)
[ RUN      ] JointTrajPt.toMessage
[ERROR] [1483606170.463931773]: Failed to add handler for: 1, handler already exists
[       OK ] JointTrajPt.toMessage (0 ms)
[ RUN      ] JointTrajPt.Comms
[       OK ] MessageManagerSuite.addHandler (0 ms)
[----------] 2 tests from MessageManagerSuite (0 ms total)

[----------] 4 tests from JointMessage
[ RUN      ] JointMessage.init
[ INFO] [1483606170.464055018]: Server socket successfully initialized
[ INFO] [1483606170.464083087]: Socket in listen mode
[ INFO] [1483606170.464092040]: Server socket successfully initialized
[ERROR] [1483606170.464092047]: Joint index: 10, is greater than size: 10
[       OK ] JointMessage.init (0 ms)
[ RUN      ] JointMessage.equal
[ INFO] [1483606170.464149027]: Socket in listen mode
[ INFO] [1483606170.464186742]: Connected to server
[       OK ] JointMessage.equal (0 ms)
[       OK ] JointMessage.Comms (1 ms)
[ RUN      ] JointMessage.toMessage
[ INFO] [1483606170.464216916]: Client socket accepted
[----------] 4 tests from JointMessage (1 ms total)

[----------] 3 tests from JointTrajPt
[ RUN      ] JointTrajPt.equal
[       OK ] JointMessage.toMessage (0 ms)
[ RUN      ] JointMessage.Comms
[       OK ] JointTrajPt.equal (0 ms)
[ RUN      ] JointTrajPt.toMessage
[       OK ] JointTrajPt.toMessage (0 ms)
[ RUN      ] JointTrajPt.Comms
[ INFO] [1483606170.464397052]: Connected to server
[ INFO] [1483606170.464421499]: Server socket successfully initialized
[       OK ] JointTrajPt.Comms (1 ms)
[ INFO] [1483606170.464449764]: Socket in listen mode
[----------] 3 tests from JointTrajPt (1 ms total)

[ INFO] [1483606170.464446262]: Server socket successfully initialized
[----------] 1 test from JointTraj
[ INFO] [1483606170.464465334]: Client socket accepted
[ RUN      ] JointTraj.equal
[ INFO] [1483606170.464500415]: Socket in listen mode
[ INFO] [1483606170.464554494]: Connected to server
[ INFO] [1483606170.464585538]: Client socket accepted
[ INFO] [1483606170.464667485]: Connected to server
[ INFO] [1483606170.464726826]: Client socket accepted
[       OK ] JointTrajPt.Comms (0 ms)
[----------] 3 tests from JointTrajPt (0 ms total)

[----------] 1 test from JointTraj
[ RUN      ] JointTraj.equal
[       OK ] JointMessage.Comms (1 ms)
[----------] 4 tests from JointMessage (1 ms total)

[----------] 3 tests from JointTrajPt
[ RUN      ] JointTrajPt.equal
[       OK ] JointTrajPt.equal (1 ms)
[ RUN      ] JointTrajPt.toMessage
[       OK ] JointTraj.equal (1 ms)
[----------] 1 test from JointTraj (1 ms total)

[       OK ] JointTrajPt.toMessage (0 ms)
[----------] 5 tests from RobotStatus
[ RUN      ] JointTrajPt.Comms
[ RUN      ] RobotStatus.enumerations
[       OK ] RobotStatus.enumerations (0 ms)
[ RUN      ] RobotStatus.init
[       OK ] JointMessage.Comms (1 ms)
[       OK ] RobotStatus.init (0 ms)
[ RUN      ] RobotStatus.equal
[----------] 4 tests from JointMessage (1 ms total)

[       OK ] RobotStatus.equal (0 ms)
[ RUN      ] RobotStatus.toMessage
[----------] 3 tests from JointTrajPt
[ RUN      ] JointTrajPt.equal
[       OK ] RobotStatus.toMessage (0 ms)
[ RUN      ] RobotStatus.Comms
[ INFO] [1483606170.465267592]: Server socket successfully initialized
[       OK ] JointTrajPt.equal (0 ms)
[ RUN      ] JointTrajPt.toMessage
[ INFO] [1483606170.465315306]: Socket in listen mode
[ INFO] [1483606170.465355684]: Server socket successfully initialized
[       OK ] JointTrajPt.toMessage (0 ms)
[ RUN      ] JointTrajPt.Comms
[ INFO] [1483606170.465384366]: Socket in listen mode
[ INFO] [1483606170.465486426]: Connected to server
[       OK ] JointTraj.equal (1 ms)
[----------] 1 test from JointTraj (1 ms total)

[ INFO] [1483606170.465518760]: Client socket accepted
[----------] 5 tests from RobotStatus
[ INFO] [1483606170.465517149]: Connected to server
[ RUN      ] RobotStatus.enumerations
[ INFO] [1483606170.465536830]: Server socket successfully initialized
[       OK ] RobotStatus.enumerations (0 ms)
[ RUN      ] RobotStatus.init
[ INFO] [1483606170.465580379]: Client socket accepted
[ INFO] [1483606170.465582239]: Socket in listen mode
[       OK ] RobotStatus.init (0 ms)
[ RUN      ] RobotStatus.equal
[       OK ] RobotStatus.equal (0 ms)
[ RUN      ] RobotStatus.toMessage
[       OK ] RobotStatus.toMessage (0 ms)
[ RUN      ] RobotStatus.Comms
[       OK ] RobotStatus.Comms (0 ms)
[----------] 5 tests from RobotStatus (0 ms total)

[ INFO] [1483606170.465746134]: Connected to server
[----------] Global test environment tear-down
[ INFO] [1483606170.465773271]: Server socket successfully initialized
[ INFO] [1483606170.465804697]: Client socket accepted
[ INFO] [1483606170.465808263]: Socket in listen mode
[ INFO] [1483606170.465920527]: Connected to server
[       OK ] JointTrajPt.Comms (0 ms)
[ INFO] [1483606170.465959136]: Client socket accepted
[----------] 3 tests from JointTrajPt (1 ms total)

[----------] 1 test from JointTraj
[ RUN      ] JointTraj.equal
[       OK ] JointTrajPt.Comms (1 ms)
[       OK ] RobotStatus.Comms (1 ms)
[----------] 5 tests from RobotStatus (1 ms total)

[----------] 3 tests from JointTrajPt (1 ms total)

[----------] Global test environment tear-down
[----------] 1 test from JointTraj
[ RUN      ] JointTraj.equal
[       OK ] JointTraj.equal (0 ms)
[----------] 1 test from JointTraj (0 ms total)

[----------] 5 tests from RobotStatus
[ RUN      ] RobotStatus.enumerations
[       OK ] RobotStatus.enumerations (0 ms)
[ RUN      ] RobotStatus.init
[       OK ] RobotStatus.init (0 ms)
[ RUN      ] RobotStatus.equal
[       OK ] RobotStatus.equal (0 ms)
[ RUN      ] RobotStatus.toMessage
[       OK ] RobotStatus.toMessage (0 ms)
[ RUN      ] RobotStatus.Comms
[       OK ] JointTraj.equal (1 ms)
[----------] 1 test from JointTraj (1 ms total)

[----------] 5 tests from RobotStatus
[ RUN      ] RobotStatus.enumerations
[ INFO] [1483606170.467268812]: Server socket successfully initialized
[       OK ] RobotStatus.enumerations (0 ms)
[ RUN      ] RobotStatus.init
[ INFO] [1483606170.467316198]: Socket in listen mode
[       OK ] RobotStatus.init (0 ms)
[ RUN      ] RobotStatus.equal
[       OK ] RobotStatus.equal (0 ms)
[ RUN      ] RobotStatus.toMessage
[       OK ] RobotStatus.toMessage (0 ms)
[ RUN      ] RobotStatus.Comms
[ INFO] [1483606170.467474881]: Connected to server
[ INFO] [1483606170.467527615]: Client socket accepted
[ INFO] [1483606170.467580068]: Server socket successfully initialized
[ INFO] [1483606170.467646433]: Socket in listen mode
[==========] 25 tests from 10 test cases ran. (2005 ms total)
[  PASSED  ] 25 tests.

  YOU HAVE 1 DISABLED TEST

[ INFO] [1483606170.467806872]: Connected to server
[ INFO] [1483606170.467865556]: Client socket accepted
[       OK ] RobotStatus.Comms (0 ms)
[----------] 5 tests from RobotStatus (1 ms total)

[----------] Global test environment tear-down
[==========] 25 tests from 10 test cases ran. (2006 ms total)
[  PASSED  ] 25 tests.

[       OK ] RobotStatus.Comms (1 ms)
  YOU HAVE 1 DISABLED TEST

[----------] 5 tests from RobotStatus (1 ms total)

[----------] Global test environment tear-down
-- run_tests.py: verify result "/home/victor/catkin_indus_core/build/test_results/simple_message/gtest-utest.xml"
-- run_tests.py: verify result "/home/victor/catkin_indus_core/build/test_results/simple_message/gtest-utest_byte_swapping.xml"
[==========] 25 tests from 10 test cases ran. (2007 ms total)
[  PASSED  ] 25 tests.

  YOU HAVE 1 DISABLED TEST

[==========] 25 tests from 10 test cases ran. (2008 ms total)
[  PASSED  ] 25 tests.

  YOU HAVE 1 DISABLED TEST
shaun-edwards commented 7 years ago

@VictorLamoine, I've verfied that the udb and float64 tests are running on my system:

shaun@shaun-Precision-5510:~/ros_industrial/industrial_core$ catkin_make test
Base path: /home/shaun/ros_industrial/industrial_core
Source space: /home/shaun/ros_industrial/industrial_core/src
Build space: /home/shaun/ros_industrial/industrial_core/build
Devel space: /home/shaun/ros_industrial/industrial_core/devel
Install space: /home/shaun/ros_industrial/industrial_core/install
####
#### Running command: "make cmake_check_build_system" in "/home/shaun/ros_industrial/industrial_core/build"
####
####
#### Running command: "make test -j8 -l8" in "/home/shaun/ros_industrial/industrial_core/build"
####
Running tests...
Test project /home/shaun/ros_industrial/industrial_core/build
    Start 1: _ctest_simple_message_gtest_utest
1/7 Test #1: _ctest_simple_message_gtest_utest ..........................   Passed    2.04 sec
    Start 2: _ctest_simple_message_gtest_utest_byte_swapping
2/7 Test #2: _ctest_simple_message_gtest_utest_byte_swapping ............   Passed    2.04 sec
    Start 3: _ctest_simple_message_gtest_utest_float64
3/7 Test #3: _ctest_simple_message_gtest_utest_float64 ..................   Passed    2.04 sec
    Start 4: _ctest_simple_message_gtest_utest_udp
4/7 Test #4: _ctest_simple_message_gtest_utest_udp ......................   Passed    2.05 sec
    Start 5: _ctest_industrial_utils_gtest_utest_inds_utils
5/7 Test #5: _ctest_industrial_utils_gtest_utest_inds_utils .............   Passed    0.04 sec
    Start 6: _ctest_industrial_robot_client_gtest_utest_robot_client
6/7 Test #6: _ctest_industrial_robot_client_gtest_utest_robot_client ....   Passed    0.04 sec
    Start 7: _ctest_industrial_robot_simulator_roslaunch-check_launch
7/7 Test #7: _ctest_industrial_robot_simulator_roslaunch-check_launch ...   Passed    0.39 sec

100% tests passed, 0 tests failed out of 7

Total Test time (real) =   8.64 sec

I've also verified the log files are generated. It appears the tests are being executing.

gavanderhoorn commented 7 years ago

A bit late perhaps, but there is no guarantee that these ports are 'unused'. The configured ports fall in the ephemeral port range, which could be used by anyone and anything.

Just noting this for future reference.