run_mru_tests.sh 392 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # Script to run the unit-tests for the MRU Vim plugin
  3. VIMPRG=${VIMPRG:=/usr/bin/vim}
  4. VIM_CMD="$VIMPRG -N -u NONE -U NONE -i NONE --not-a-term"
  5. $VIM_CMD -S unit_tests.vim
  6. echo "MRU unit test results"
  7. cat results.txt
  8. echo
  9. grep FAIL results.txt > /dev/null 2>&1
  10. if [ $? -eq 0 ]
  11. then
  12. echo "ERROR: Some test(s) failed."
  13. exit 1
  14. fi
  15. echo "SUCCESS: All the tests passed."
  16. exit 0