mirror of
https://github.com/amix/vimrc
synced 2025-07-27 15:04:59 +08:00
Update mru.vim.
This commit is contained in:
3
sources_non_forked/mru.vim/test/.coveragerc
Normal file
3
sources_non_forked/mru.vim/test/.coveragerc
Normal file
@ -0,0 +1,3 @@
|
||||
[run]
|
||||
plugins = covimerage
|
||||
data_file = .coverage_covimerage
|
18
sources_non_forked/mru.vim/test/run_mru_tests.cmd
Normal file
18
sources_non_forked/mru.vim/test/run_mru_tests.cmd
Normal 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.
|
30
sources_non_forked/mru.vim/test/run_mru_tests.sh
Executable file
30
sources_non_forked/mru.vim/test/run_mru_tests.sh
Executable 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
|
1830
sources_non_forked/mru.vim/test/unit_tests.vim
Normal file
1830
sources_non_forked/mru.vim/test/unit_tests.vim
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user