architecture: arm64
- features: normal
compiler: gcc
- extra: [vimtags, proto, preproc_indent, encoding]
+ extra: [vimtags, proto, preproc_indent, encoding, codestyle]
- features: huge
compiler: gcc
extra: [no_x11_wl]
fi
- name: Test
- timeout-minutes: 30
+ timeout-minutes: 45
run: |
make ${SHADOWOPT} ${TEST}
true
)
+ - name: Check Source Code style
+ if: contains(matrix.extra, 'codestyle')
+ run: |
+ make -C src/testdir codestyle
+
- name: Check preprocessor indent
if: contains(matrix.extra, 'preproc_indent')
run: |
test_cmdline \
test_cmdmods \
test_cmdwin \
- test_codestyle \
test_command_count \
test_comments \
test_comparators \
test_cmdline.res \
test_cmdmods.res \
test_cmdwin.res \
- test_codestyle.res \
test_command_count.res \
test_comments.res \
test_comparators.res \
benchmark: $(SCRIPTS_BENCH)
+codestyle:
+ -@ if exist test_codestyle.res $(RM) test_codestyle.res
+ -@ if exist test.log $(RM) test.log
+ -@ if exist messages $(RM) messages
+ -@ if exist starttime $(RM) starttime
+ @ $(MAKE) -lf Make_mvc.mak VIMPROG=$(VIMPROG) test_codestyle.res
+ @ type messages
+ @ if exist test.log exit 1
+
report:
@ rem without the +eval feature test_result.log is a copy of test.log
@ if exist test.log ( $(CP) test.log test_result.log > nul ) \
exit 1; \
fi
+codestyle:
+ rm -f test_codestyle.res $(CLEANUP_FILES)
+ @MAKEFLAGS=--no-print-directory $(MAKE) -f Makefile test_codestyle.res VIMPROG=$(VIMPROG) XXDPROG=$(XXDPROG) SCRIPTSOURCE=$(SCRIPTSOURCE)
+ @cat messages
+ @if test -f test.log; then \
+ exit 1; \
+ fi
+
# Run only tests specific for Vim9 script
test_vim9:
rm -f test_vim9_*.res $(CLEANUP_FILES)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 195,
/**/
194,
/**/