Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Prada Sarasola, Miguel
templates
Commits
08e599eb
Commit
08e599eb
authored
Nov 22, 2018
by
Jon Azpiazu
Browse files
Add roslaunch test script
parent
948cc398
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/roslaunch_test_generator.sh
0 → 100644
View file @
08e599eb
#!/usr/bin/env bash
if
[[
$(
basename
$(
pwd
))
!=
"src"
]]
;
then
echo
This script must be run from the src folder
exit
fi
for
foo
in
$(
find
$(
pwd
)
-name
"package.xml"
)
;
do
package_name
=
$(
basename
$(
realpath
$(
dirname
$foo
)))
echo
Entering package:
$package_name
cd
$(
realpath
$(
dirname
$foo
))
if
[[
-n
$(
grep
-i
"roslaunch_add_file_check"
CMakeLists.txt
)
]]
;
then
echo
Package
$package_name
already has roslaunch_add_file_check - skipping
else
if
[[
-n
$(
find
.
-type
f
-name
"*.launch"
)
]]
;
then
echo
Adding roslaunch_add_file_check to
$package_name
cat
<<
EOT
>> CMakeLists.txt
## WARNING: automatically generated code; can be (and probably is) very buggy
if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS
roslaunch
)
roslaunch_add_file_check(
$(
find
.
-type
f
-name
"*.launch"
)
)
endif()
EOT
fi
fi
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment