1
0
mirror of https://github.com/amix/vimrc synced 2025-07-27 15:04:59 +08:00

Update mru.vim.

This commit is contained in:
Kurtis Moxley
2022-05-19 23:12:17 +08:00
parent 85e39a618a
commit 2538a00dff
12 changed files with 3365 additions and 990 deletions

View File

@ -0,0 +1,3 @@
[run]
plugins = covimerage
data_file = .coverage_covimerage

View File

@ -0,0 +1,18 @@
@echo off
REM Script to run the unit-tests for the MRU Vim plugin on MS-Windows
SETLOCAL
SET VIMPRG="vim.exe"
REM SET VIMPRG="C:\Program Files (x86)\vim\vim82\vim.exe"
REM SET VIMPRG="C:\Program Files (x86)\vim\vim73\vim.exe"
SET VIM_CMD=%VIMPRG% -N -u NONE -U NONE -i NONE --not-a-term
%VIM_CMD% -S unit_tests.vim
echo MRU unit test results
type results.txt
findstr /I FAIL results.txt > nul 2>&1
if %ERRORLEVEL% EQU 0 echo ERROR: Some test failed.
if %ERRORLEVEL% NEQ 0 echo SUCCESS: All the tests passed.

View File

@ -0,0 +1,30 @@
#!/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

File diff suppressed because it is too large Load Diff