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