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