Skip to content
Snippets Groups Projects
Select Git revision
  • fa8a40a209e3754a5f5b6dcb5a1a8218c402c49e
  • main default
2 results

operations.go

Blame
  • 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