Skip to content

Commit 5588ec2

Browse files
authored
Merge pull request #62 from k-okada/add_test
add test to check /smach_viewer/image
2 parents 2a88895 + eb0f8ef commit 5588ec2

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

.github/workflows/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ jobs:
105105
mkdir -p ~/ws/src
106106
cd ~/ws/src
107107
ln -sf $GITHUB_WORKSPACE .
108+
[ ${{ matrix.ROS_DISTRO }} != "one" ] || (sudo apt install -y -qq git; sudo apt remove -y -qq ros-${{ matrix.ROS_DISTRO }}-roseus-smach; git clone https://github.com/jsk-ros-pkg/jsk_roseus.git; )
108109
rosdep install -qq -r -y --from-path . --ignore-src || echo "OK"
109110
shell: bash
110111

@@ -130,6 +131,7 @@ jobs:
130131
source ~/ws/devel/setup.bash
131132
set -x
132133
cd ~/ws/
134+
[ ${{ matrix.ROS_DISTRO }} != "one" ] || touch src/jsk_roseus/CATKIN_IGNORE
133135
catkin test --no-status -sv ${{ matrix.CATKIN_OPTIONS }} --cmake-args -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON ${{ matrix.CMAKE_OPTIONS }}
134136
shell: bash
135137

smach_viewer/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ catkin_install_python(
2222
if(CATKIN_ENABLE_TESTING)
2323
find_package(rostest REQUIRED)
2424
add_rostest(test/test_smach_py.test)
25+
add_rostest(test/test_smach_image.test)
2526
find_package(roseus QUIET)
2627
if(roseus_FOUND)
2728
add_rostest(test/test_smach_eus.test)
2829
endif()
30+
find_package(roseus_smach QUIET)
31+
if(roseus_smach_FOUND)
32+
add_rostest(test/test_roseus_smach_state_machine_ros_sample.test)
33+
endif()
2934
endif()
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<launch>
2+
<node pkg="smach_viewer"
3+
name="smach_viewer" type="smach_viewer.py"
4+
output="screen" required="true" />
5+
<node pkg="roseus_smach"
6+
name="test_smach_eus_exec_smach_simple" type="state-machine-ros-sample.l" args="'(exec-smach-simple)'" />
7+
<test test-name="smach_viewer_eus_test"
8+
pkg="smach_viewer" type="test_rosout_error.py" name="smach_viewer_eus_test" />
9+
</launch>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<launch>
2+
<node pkg="smach_viewer"
3+
name="smach_viewer" type="smach_viewer.py"
4+
output="screen" />
5+
<node pkg="smach_viewer"
6+
name="test_smach_py" type="test_smach.py" />
7+
<test test-name="smach_viewer_test" pkg="rostest" type="publishtest" name="smach_viewer_test" >
8+
<rosparam>
9+
topics:
10+
- name: /smach_viewer/image
11+
timeout: 10
12+
negative: False
13+
</rosparam>
14+
</test>
15+
</launch>

0 commit comments

Comments
 (0)