blob: 1211bc02128c95b5aa170e8761f6a915ef26e018 [file] [log] [blame]
Bram Moolenaar8ea05de2020-12-17 20:27:26 +01001name: GitHub CI
2
Bram Moolenaarb5b77372020-12-18 13:31:31 +01003on:
4 push:
5 branches: ['**']
6 pull_request:
Bram Moolenaar8ea05de2020-12-17 20:27:26 +01007
8jobs:
9 linux:
Bram Moolenaar0fa09672021-02-13 17:08:33 +010010 runs-on: ubuntu-18.04
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010011
12 env:
13 CC: ${{ matrix.compiler }}
14 TEST: test
15 SRCDIR: ./src
16 LEAK_CFLAGS: -DEXITFREE
17 LOG_DIR: ${{ github.workspace }}/logs
18 TERM: xterm
19 DISPLAY: ':99'
Bram Moolenaar9aff9702020-12-21 13:37:28 +010020 DEBIAN_FRONTEND: noninteractive
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010021
22 strategy:
23 fail-fast: false
24 matrix:
25 features: [tiny, small, normal, huge]
26 compiler: [clang, gcc]
27 extra: [none]
28 include:
29 - features: tiny
30 compiler: clang
31 extra: nogui
32 - features: tiny
33 compiler: gcc
34 extra: nogui
35 - features: normal
36 shadow: ./src/shadow
37 - features: huge
38 coverage: true
39 - features: huge
40 compiler: gcc
41 coverage: true
42 extra: testgui
James McCoy2e258bd2021-10-05 19:44:04 +010043 uchar: true
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010044 - features: huge
45 compiler: clang
46 extra: asan
47 - features: huge
48 compiler: gcc
49 coverage: true
50 extra: unittests
51 - features: normal
52 compiler: gcc
53 extra: vimtags
54
55 steps:
56 - uses: actions/checkout@v2
57
58 - name: Install packages
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010059 run: |
Christian Brabandtef7be832021-06-22 18:21:19 +020060 sudo apt update && sudo apt install -y \
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010061 autoconf \
62 lcov \
63 gettext \
64 libcanberra-dev \
65 libperl-dev \
66 python-dev \
67 python3-dev \
68 liblua5.3-dev \
69 lua5.3 \
70 ruby-dev \
71 tcl-dev \
72 cscope \
73 libgtk2.0-dev \
74 desktop-file-utils \
Christian Brabandtf573c6e2021-06-20 14:02:16 +020075 libtool-bin \
76 libsodium-dev
Bram Moolenaar9aff9702020-12-21 13:37:28 +010077
ichizokdee78e12021-12-09 21:08:01 +000078 - name: Install clang-13
Bram Moolenaar9aff9702020-12-21 13:37:28 +010079 if: matrix.compiler == 'clang'
80 run: |
81 wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
82 . /etc/lsb-release
ichizokdee78e12021-12-09 21:08:01 +000083 sudo add-apt-repository -y "deb http://apt.llvm.org/${DISTRIB_CODENAME}/ llvm-toolchain-${DISTRIB_CODENAME}-13 main"
84 sudo apt-get install -y clang-13 llvm-13
85 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-13 100
86 sudo update-alternatives --set clang /usr/bin/clang-13
87 sudo update-alternatives --install /usr/bin/llvm-cov llvm-cov /usr/bin/llvm-cov-13 100
Bram Moolenaar8ea05de2020-12-17 20:27:26 +010088
89 - name: Set up environment
90 run: |
91 mkdir -p "${LOG_DIR}"
92 mkdir -p "${HOME}/bin"
93 echo "${HOME}/bin" >> $GITHUB_PATH
94 (
95 echo "LINUX_VERSION=$(uname -r)"
96 echo "NPROC=$(getconf _NPROCESSORS_ONLN)"
97 echo "SND_DUMMY_DIR=${HOME}/snd-dummy"
98 echo "TMPDIR=${{ runner.temp }}"
99
100 case "${{ matrix.features }}" in
101 tiny|small)
102 echo "TEST=testtiny"
103 if ${{ contains(matrix.extra, 'nogui') }}; then
104 echo "CONFOPT=--disable-gui"
105 fi
106 ;;
107 normal)
108 ;;
109 huge)
110 echo "TEST=scripttests test_libvterm"
111 echo "CONFOPT=--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp"
112 ;;
113 esac
114
James McCoy2e258bd2021-10-05 19:44:04 +0100115 CFLAGS=""
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100116 if ${{ matrix.coverage == true }}; then
James McCoy2e258bd2021-10-05 19:44:04 +0100117 CFLAGS="$CFLAGS --coverage -DUSE_GCOV_FLUSH"
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100118 echo "LDFLAGS=--coverage"
119 fi
James McCoy2e258bd2021-10-05 19:44:04 +0100120 if ${{ matrix.uchar == true }}; then
121 CFLAGS="$CFLAGS -funsigned-char"
122 fi
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100123 if ${{ contains(matrix.extra, 'testgui') }}; then
124 echo "TEST=-C src testgui"
125 fi
126 if ${{ contains(matrix.extra, 'unittests') }}; then
127 echo "TEST=unittests"
128 fi
129 if ${{ contains(matrix.extra, 'asan') }}; then
130 echo "SANITIZER_CFLAGS=-g -O1 -DABORT_ON_INTERNAL_ERROR -DEXITFREE -fsanitize-recover=all -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer"
131 echo "ASAN_OPTIONS=print_stacktrace=1 log_path=${LOG_DIR}/asan"
132 echo "UBSAN_OPTIONS=print_stacktrace=1 log_path=${LOG_DIR}/ubsan"
133 echo "LSAN_OPTIONS=suppressions=${GITHUB_WORKSPACE}/src/testdir/lsan-suppress.txt"
134 fi
135 if ${{ contains(matrix.extra, 'vimtags') }}; then
136 echo "TEST=-C runtime/doc vimtags VIMEXE=../../${SRCDIR}/vim"
137 fi
James McCoy2e258bd2021-10-05 19:44:04 +0100138 echo "CFLAGS=$CFLAGS"
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100139 ) >> $GITHUB_ENV
140
141 - name: Set up system
142 run: |
143 if [[ ${CC} = clang ]]; then
144 # Use llvm-cov instead of gcov when compiler is clang.
145 ln -fs /usr/bin/llvm-cov ${HOME}/bin/gcov
146 fi
147 # Setup lua5.3 manually since its package doesn't provide alternative.
148 # https://bugs.launchpad.net/ubuntu/+source/lua5.3/+bug/1707212
149 if [[ ${CONFOPT} =~ luainterp ]]; then
150 sudo update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 10
151 fi
152 sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=0
153 sudo usermod -a -G audio "${USER}"
154 sudo bash ci/setup-xvfb.sh
155
156 - name: Cache snd-dummy
157 uses: actions/cache@v2
158 with:
159 path: ${{ env.SND_DUMMY_DIR }}
160 key: linux-${{ env.LINUX_VERSION }}-snd-dummy
161
162 - name: Set up snd-dummy
163 run: |
164 if [[ ! -e ${SND_DUMMY_DIR}/snd-dummy.ko ]]; then
165 bash ci/build-snd-dummy.sh
166 fi
167 cd "${SND_DUMMY_DIR}"
168 sudo insmod soundcore.ko
169 sudo insmod snd.ko
170 sudo insmod snd-pcm.ko
171 sudo insmod snd-dummy.ko
172
173 - name: Check autoconf
174 if: contains(matrix.extra, 'unittests')
175 run: |
176 make -C src autoconf
177
178 - name: Set up shadow dir
179 if: matrix.shadow
180 run: |
181 make -C src shadow
182 echo "SRCDIR=${{ matrix.shadow }}" >> $GITHUB_ENV
183 echo "SHADOWOPT=-C ${{ matrix.shadow }}" >> $GITHUB_ENV
184
185 - name: Configure
186 run: |
187 ./configure --with-features=${{ matrix.features }} ${CONFOPT} --enable-fail-if-missing
188 # Append various warning flags to CFLAGS.
Bram Moolenaar9aff9702020-12-21 13:37:28 +0100189 sed -i -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
190 sed -i -f ci/config.mk.${CC}.sed ${SRCDIR}/auto/config.mk
ichizokdee78e12021-12-09 21:08:01 +0000191 if [[ ${CC} = clang ]]; then
192 # Suppress some warnings produced by clang 12 and later.
193 sed -i -f ci/config.mk.clang-12.sed ${SRCDIR}/auto/config.mk
194 fi
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100195
196 - name: Build
197 if: (!contains(matrix.extra, 'unittests'))
198 run: |
199 make ${SHADOWOPT} -j${NPROC}
200
201 - name: Check version
202 if: (!contains(matrix.extra, 'unittests'))
203 run: |
204 "${SRCDIR}"/vim --version
205 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
206 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
207
208 - name: Test
209 timeout-minutes: 20
210 run: |
211 do_test() { sg audio "sg $(id -gn) '$*'"; }
212 do_test make ${SHADOWOPT} ${TEST}
213
Bram Moolenaar18fefdd2021-09-19 17:55:16 +0200214 # - name: Coveralls
215 # if: matrix.coverage && success() && github.event_name != 'pull_request'
216 # env:
217 # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
218 # COVERALLS_PARALLEL: true
219 # TRAVIS_JOB_ID: ${{ github.run_id }}
220 # run: |
221 # sudo apt-get install -y python3-setuptools python3-wheel
222 # sudo -H pip3 install pip -U
223 # # needed for https support for coveralls building cffi only works with gcc, not with clang
224 # CC=gcc pip3 install --user cpp-coveralls pyopenssl ndg-httpsclient pyasn1
225 # ~/.local/bin/coveralls -b "${SRCDIR}" -x .xs -e "${SRCDIR}"/if_perl.c -e "${SRCDIR}"/xxd -e "${SRCDIR}"/libvterm --encodings utf-8
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100226
227 - name: Codecov
228 if: matrix.coverage && success()
Bram Moolenaare5492602020-12-22 19:05:33 +0100229 run: |
230 cd "${SRCDIR}"
231 bash <(curl -s https://codecov.io/bash) -F "${{ matrix.features }}-${{ matrix.compiler }}-${{ matrix.extra }}"
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100232
233 - name: ASan logs
234 if: contains(matrix.extra, 'asan') && !cancelled()
235 run: |
236 for f in $(grep -lR '#[[:digit:]]* *0x[[:digit:]a-fA-F]*' "${LOG_DIR}"); do
Bram Moolenaar19569ca2021-12-15 21:29:19 +0000237 asan_symbolize-13 -l "$f"
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100238 false # in order to fail a job
239 done
240
Bram Moolenaar18fefdd2021-09-19 17:55:16 +0200241 # coveralls:
242 # runs-on: ubuntu-18.04
243 #
244 # needs: linux
245 # if: always() && github.event_name != 'pull_request'
246 #
247 # steps:
248 # - name: Parallel finished
249 # env:
250 # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
251 # run: |
252 # curl -k "https://coveralls.io/webhook?repo_token=${COVERALLS_REPO_TOKEN}" -d "payload[build_num]=${GITHUB_RUN_ID}&payload[status]=done"
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100253
254 macos:
255 runs-on: macos-latest
256
257 env:
ichizok48c01962021-12-11 17:34:19 +0000258 CC: clang
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100259 TEST: test
260 SRCDIR: ./src
261 LEAK_CFLAGS: -DEXITFREE
262 TERM: xterm
263
264 strategy:
265 fail-fast: false
266 matrix:
ichizok48c01962021-12-11 17:34:19 +0000267 features: [tiny, normal, huge]
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100268
269 steps:
270 - uses: actions/checkout@v2
271
272 - name: Install packages
273 env:
274 HOMEBREW_NO_AUTO_UPDATE: 1
275 run: |
276 brew install lua
277 echo "LUA_PREFIX=/usr/local" >> $GITHUB_ENV
278
279 - name: Set up environment
280 run: |
281 (
282 echo "NPROC=$(getconf _NPROCESSORS_ONLN)"
283 case "${{ matrix.features }}" in
284 tiny)
285 echo "TEST=testtiny"
286 echo "CONFOPT=--disable-gui"
287 ;;
ichizok48c01962021-12-11 17:34:19 +0000288 normal)
289 ;;
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100290 huge)
291 echo "CONFOPT=--enable-perlinterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-tclinterp"
292 ;;
293 esac
294 ) >> $GITHUB_ENV
295
296 - name: Configure
297 run: |
298 ./configure --with-features=${{ matrix.features }} ${CONFOPT} --enable-fail-if-missing
299 # Append various warning flags to CFLAGS.
300 # BSD sed needs backup extension specified.
301 sed -i.bak -f ci/config.mk.sed ${SRCDIR}/auto/config.mk
302 # On macOS, the entity of gcc is clang.
303 sed -i.bak -f ci/config.mk.clang.sed ${SRCDIR}/auto/config.mk
ichizokdee78e12021-12-09 21:08:01 +0000304 # Suppress some warnings produced by clang 12 and later.
305 if clang --version | grep -qs 'Apple clang version \(1[3-9]\|[2-9]\)\.'; then
306 sed -i.bak -f ci/config.mk.clang-12.sed ${SRCDIR}/auto/config.mk
307 fi
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100308
309 - name: Build
Bram Moolenaar9aff9702020-12-21 13:37:28 +0100310 env:
Bram Moolenaared1e4c92020-12-28 15:46:47 +0100311 LC_ALL: C
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100312 run: |
313 make -j${NPROC}
314
315 - name: Check version
316 run: |
317 "${SRCDIR}"/vim --version
318 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-1.vim -c quit
319 "${SRCDIR}"/vim -u NONE -i NONE --not-a-term -esNX -V1 -S ci/if_ver-2.vim -c quit
320
321 - name: Test
322 timeout-minutes: 20
323 run: |
324 make ${TEST}
325
326 windows:
327 runs-on: windows-latest
328
329 env:
330 VCVARSALL: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
331 # Interfaces
332 # Lua
333 LUA_VER: 54
334 LUA_VER_DOT: '5.4'
335 LUA_RELEASE: 5.4.0
336 LUA32_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win32_dllw6_lib.zip
337 LUA64_URL: https://downloads.sourceforge.net/luabinaries/lua-%LUA_RELEASE%_Win64_dllw6_lib.zip
338 LUA_DIR: D:\Lua
339 # Python 2
340 PYTHON_VER: 27
341 PYTHON_VER_DOT: '2.7'
342 # Python 3
343 PYTHON3_VER: 38
344 PYTHON3_VER_DOT: '3.8'
345 # Other dependencies
346 # winpty
347 WINPTY_URL: https://github.com/rprichard/winpty/releases/download/0.4.3/winpty-0.4.3-msvc2015.zip
348 # Escape sequences
349 COL_RED: "\x1b[31m"
350 COL_GREEN: "\x1b[32m"
351 COL_YELLOW: "\x1b[33m"
352 COL_RESET: "\x1b[m"
353
354 strategy:
355 fail-fast: false
356 matrix:
357 toolchain: [msvc, mingw]
358 arch: [x64, x86]
359 features: [HUGE, NORMAL]
360 include:
361 - arch: x64
362 vcarch: amd64
363 warch: x64
364 bits: 64
365 msystem: MINGW64
366 cygreg: registry
367 pyreg: ""
368 - arch: x86
369 vcarch: x86
370 warch: ia32
371 bits: 32
372 msystem: MINGW32
373 cygreg: registry32
374 pyreg: "-32"
375 exclude:
376 - toolchain: msvc
377 arch: x64
378 features: NORMAL
379 - toolchain: mingw
380 arch: x86
381 features: NORMAL
382
383 steps:
Bram Moolenaar53f7fcc2021-07-28 20:10:16 +0200384 - name: Initialize
Bram Moolenaar8ea05de2020-12-17 20:27:26 +0100385 id: init
386 shell: bash
387 run: |
388 git config --global core.autocrlf input
389 python_dir=$(cat "/proc/${{ matrix.cygreg }}/HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/${PYTHON_VER_DOT}/InstallPath/@")
390 python3_dir=$(cat "/proc/${{ matrix.cygreg }}/HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/${PYTHON3_VER_DOT}${{ matrix.pyreg }}/InstallPath/@")
391 echo "PYTHON_DIR=$python_dir" >> $GITHUB_ENV
392 echo "PYTHON3_DIR=$python3_dir" >> $GITHUB_ENV
393
394 - uses: msys2/setup-msys2@v2
395 if: matrix.toolchain == 'mingw'
396 with:
397 msystem: ${{ matrix.msystem }}
398 release: false
399
400 - uses: actions/checkout@v2
401
402 - name: Create a list of download URLs
403 shell: cmd
404 run: |
405 type NUL > urls.txt
406 echo %LUA_RELEASE%>> urls.txt
407 echo %WINPTY_URL%>> urls.txt
408
409 - name: Cache downloaded files
410 uses: actions/cache@v2
411 with:
412 path: downloads
413 key: ${{ runner.os }}-${{ matrix.bits }}-${{ hashFiles('urls.txt') }}
414
415 - name: Download dependencies
416 shell: cmd
417 run: |
418 path C:\Program Files\7-Zip;%path%
419 if not exist downloads mkdir downloads
420
421 echo %COL_GREEN%Download Lua%COL_RESET%
422 call :downloadfile %LUA${{ matrix.bits }}_URL% downloads\lua.zip
423 7z x downloads\lua.zip -o%LUA_DIR% > nul || exit 1
424
425 echo %COL_GREEN%Download winpty%COL_RESET%
426 call :downloadfile %WINPTY_URL% downloads\winpty.zip
427 7z x -y downloads\winpty.zip -oD:\winpty > nul || exit 1
428 copy /Y D:\winpty\${{ matrix.warch }}\bin\winpty.dll src\winpty${{ matrix.bits }}.dll
429 copy /Y D:\winpty\${{ matrix.warch }}\bin\winpty-agent.exe src\
430
431 goto :eof
432
433 :downloadfile
434 :: call :downloadfile <URL> <localfile>
435 if not exist %2 (
436 curl -f -L %1 -o %2
437 )
438 if ERRORLEVEL 1 (
439 rem Retry once.
440 curl -f -L %1 -o %2 || exit 1
441 )
442 goto :eof
443
444 - name: Copy src directory to src2
445 shell: cmd
446 run: |
447 xcopy src src2\ /E > nul
448
449 - name: Build (MSVC)
450 if: matrix.toolchain == 'msvc'
451 shell: cmd
452 run: |
453 call "%VCVARSALL%" ${{ matrix.vcarch }}
454 cd src
455 :: Filter out the progress bar from the build log
456 sed -e "s/@<<$/@<< | sed -e 's#.*\\\\r.*##'/" Make_mvc.mak > Make_mvc2.mak
457 if "${{ matrix.features }}"=="HUGE" (
458 nmake -nologo -f Make_mvc2.mak ^
459 FEATURES=${{ matrix.features }} ^
460 GUI=yes IME=yes ICONV=yes VIMDLL=yes ^
461 DYNAMIC_LUA=yes LUA=%LUA_DIR% ^
462 DYNAMIC_PYTHON=yes PYTHON=%PYTHON_DIR% ^
463 DYNAMIC_PYTHON3=yes PYTHON3=%PYTHON3_DIR%
464 ) else (
465 nmake -nologo -f Make_mvc2.mak ^
466 FEATURES=${{ matrix.features }} ^
467 GUI=yes IME=yes ICONV=yes VIMDLL=yes
468 )
469 if not exist vim${{ matrix.bits }}.dll (
470 echo %COL_RED%Build failure.%COL_RESET%
471 exit 1
472 )
473
474 - name: Build (MinGW)
475 if: matrix.toolchain == 'mingw'
476 shell: msys2 {0}
477 run: |
478 cd src
479 if [ "${{ matrix.features }}" = "HUGE" ]; then
480 mingw32-make -f Make_ming.mak -j2 \
481 FEATURES=${{ matrix.features }} \
482 GUI=yes IME=yes ICONV=yes VIMDLL=yes \
483 DYNAMIC_LUA=yes LUA=${LUA_DIR} \
484 DYNAMIC_PYTHON=yes PYTHON=${PYTHON_DIR} \
485 DYNAMIC_PYTHON3=yes PYTHON3=${PYTHON3_DIR} \
486 STATIC_STDCPLUS=yes
487 else
488 mingw32-make -f Make_ming.mak -j2 \
489 FEATURES=${{ matrix.features }} \
490 GUI=yes IME=yes ICONV=yes VIMDLL=yes \
491 STATIC_STDCPLUS=yes
492 fi
493
494 #- name: Prepare Artifact
495 # shell: cmd
496 # run: |
497 # mkdir artifacts
498 # copy src\*vim.exe artifacts
499 # copy src\vim*.dll artifacts
500 #
501 #- name: Upload Artifact
502 # uses: actions/upload-artifact@v1
503 # with:
504 # name: vim${{ matrix.bits }}-${{ matrix.toolchain }}
505 # path: ./artifacts
506
507 - name: Test
508 shell: cmd
509 timeout-minutes: 20
510 run: |
511 PATH %LUA_DIR%;C:\msys64\${{ matrix.msystem }}\bin;%PATH%;%PYTHON3_DIR%
512 call "%VCVARSALL%" ${{ matrix.vcarch }}
513 cd src
514 echo.
515 echo %COL_GREEN%vim version:%COL_RESET%
516 .\vim --version || exit 1
517
518 echo %COL_GREEN%Start testing vim in background.%COL_RESET%
519 start cmd /c "cd ..\src2\testdir & nmake -nologo -f Make_dos.mak VIMPROG=..\..\src\vim > nul & echo done>done.txt"
520
521 echo %COL_GREEN%Test gvim:%COL_RESET%
522 cd testdir
523 nmake -nologo -f Make_dos.mak VIMPROG=..\gvim || exit 1
524 cd ..
525
526 echo %COL_GREEN%Wait for vim tests to finish.%COL_RESET%
527 cd ..\src2\testdir
528 :: Wait about 10 minutes.
529 for /L %%i in (1,1,60) do (
530 if exist done.txt goto exitloop
531 timeout 10 > NUL 2>&1
532 if ERRORLEVEL 1 ping -n 11 localhost > NUL
533 )
534 set timeout=1
535 :exitloop
536
537 echo %COL_GREEN%Test results of vim:%COL_RESET%
538 if exist messages type messages
539 nmake -nologo -f Make_dos.mak report VIMPROG=..\..\src\vim || exit 1
540 if "%timeout%"=="1" (
541 echo %COL_RED%Timed out.%COL_RESET%
542 exit 1
543 )