Skip to content
Snippets Groups Projects
Select Git revision
  • fast-ci
  • master default
  • include-tests
  • remove-yaml-quotes
  • configurable-ci-setup-lookup-path
  • dev-image-test-bak
  • dev-images
  • tmp/deploy-image-build
  • modular-templates
9 results

roslaunch_test_generator.sh

Blame
  • Forked from tecnalia_robotics-public / templates
    Source project has a limited visibility.
    roslaunch_test_generator.sh 754 B
    #!/usr/bin/env bash
    
    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