run_mru_tests.sh 444 B

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