Skip to content

Commit

Permalink
[face_detector][test] Shorter test duration (bag files are less than …
Browse files Browse the repository at this point in the history
…7 seconds).

[face_detector][test] Shorter test_duration. We only need a second or so as long as we can confirm the designated topic is being published.
[face_detector][test] rosbag play with clock and loop option.
  • Loading branch information
130s committed Feb 17, 2017
1 parent e5e2ab4 commit 4be4152
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions face_detector/test/common_rtest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<launch>
<arg name="expected_success" default="true" />
<arg name="hz" default="30.0" />
<arg name="hztest_duration" default="2.0" />
<arg name="hz_error" default="29.9" />
<arg name="RETRY_TEST" default="5" />
<arg name="testnode_name" default="hztest1" />
Expand All @@ -9,22 +10,22 @@
<param name ="use_sim_time" value="true" />

<group unless="$(arg expected_success)">
<node pkg="rosbag" type="play" name="play" args="-r 0.5 $(find face_detector)/test/face_detector_noface_test_diamondback.bag"/>
<node pkg="rosbag" type="play" name="play" args="--clock -l -r 0.5 $(find face_detector)/test/face_detector_noface_test_diamondback.bag"/>

<test test-name="hztest_noface_$(arg testnode_name)" pkg="rostest" type="hztest" name="$(arg testnode_name)" retry="$(arg RETRY_TEST)">
<param name="topic" value="face_detector/people_tracker_measurements_array" />
<param name="hz" value="0.0" />
<param name="test_duration" value="15.0" />
<param name="test_duration" value="$(arg hztest_duration)" />
</test>
</group>
<group if="$(arg expected_success)">
<node pkg="rosbag" type="play" name="play" args="-r 0.5 $(find face_detector)/test/face_detector_withface_test_diamondback.bag"/>

<test test-name="hztest_withface_$(arg topicname_hztest)" pkg="rostest" type="hztest" name="$(arg testnode_name)" retry="$(arg RETRY_TEST)">
<param name="topic" value="$(arg expected_success)" />
<param name="topic" value="$(arg topicname_hztest)" />
<param name="hz" value="$(arg hz)" />
<param name="hzerror" value="$(arg hz_error)" />
<param name="test_duration" value="15.0" />
<param name="test_duration" value="$(arg hztest_duration)" />
</test>
</group>
</launch>

0 comments on commit 4be4152

Please sign in to comment.