run_tests 341 B

12345678910111213141516171819
  1. #!/bin/bash
  2. APPLICATION_NAME=heron
  3. # If $METHOD is not set, use opt
  4. if [ -z $METHOD ]; then
  5. export METHOD=opt
  6. fi
  7. if [ -e ./unit/$APPLICATION_NAME-unit-$METHOD ]
  8. then
  9. ./unit/$APPLICATION_NAME-unit-$METHOD
  10. elif [ -e ./$APPLICATION_NAME-unit-$METHOD ]
  11. then
  12. ./$APPLICATION_NAME-unit-$METHOD
  13. else
  14. echo "Executable missing!"
  15. exit 1
  16. fi