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

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