1
0
Fork 0
mirror of synced 2024-12-26 16:43:20 -05:00
ultimate-vim/sources_non_forked/mru.vim/test/run_mru_tests.sh

31 lines
488 B
Bash
Raw Normal View History

2022-05-19 11:12:17 -04:00
#!/bin/bash
# Script to run the unit-tests for the MRU Vim plugin
VIMPRG=${VIMPRG:=/usr/bin/vim}
VIM_CMD="$VIMPRG -N -u NONE -U NONE -i NONE"
$VIM_CMD -S unit_tests.vim
echo "MRU unit test results"
echo
if [ ! -f results.txt ]
then
echo "ERROR: Test results file 'results.txt' is not found"
exit 1
fi
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