Most Recently Used (MRU) Vim Plugin
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.

21 lines
350 B

  1. #!/bin/bash
  2. # Script to run unit-tests for the MRU Vim plugin
  3. VIM=/usr/bin/vim
  4. VIM_CMD="$VIM -N -u NONE -U NONE -i NONE"
  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 failed."
  13. else
  14. echo "SUCCESS: All the tests passed."
  15. fi