You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

check-scenario-coverage.sh 489B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. #
  3. # This script prints out how many times each box has been used in all scenarios
  4. #
  5. #
  6. SYSTEM=`uname -o`
  7. if [ $SYSTEM == "Cygwin" ]; then
  8. EXT="cmd"
  9. else
  10. EXT="sh"
  11. fi
  12. cd ../dist/share/openvibe/scenarios/
  13. ../../../openvibe-plugin-inspector.$EXT --no-pause -l | grep -e "^BoxAlgorithm " | sort | while read DUMMY NAME ID; do
  14. numLines=`grep -R -i "$ID" | wc -l`
  15. echo $NAME : $numLines occurrences
  16. if [ $numLines -eq 0 ]; then
  17. echo !!! No scenario for $NAME $ID
  18. fi
  19. done