Skip to content

Commit

Permalink
Merge pull request #1921 from masatake/verify-input-base
Browse files Browse the repository at this point in the history
verify-input target derrived from #1909
  • Loading branch information
masatake committed Oct 23, 2018
2 parents f9b184d + 72e21ab commit 59c2a32
Show file tree
Hide file tree
Showing 8 changed files with 591 additions and 11 deletions.
1 change: 1 addition & 0 deletions Units/simple-json.d/verifier
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
jq
3 changes: 2 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
name: Install build tools
command: |
dnf -y install gcc automake autoconf pkgconfig bmake aspell-devel aspell-en libxml2-devel jansson-devel libyaml-devel findutils || :
dnf -y install jq
- run:
name: Build
command: |
Expand All @@ -23,7 +24,7 @@ jobs:
- run:
name: Test
command: |
MAKE=bmake bmake check roundtrip CIRCLECI=1
MAKE=bmake bmake verify-input check roundtrip CIRCLECI=1
centos_make:
working_directory: ~/universal-ctags
docker:
Expand Down
7 changes: 7 additions & 0 deletions makefiles/help.mak
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ help:
@echo "CATEGORIES=<category> - Only run tests available under folder Units/<category>.r"
@echo "UNITS=<case>[,<case>] - Only run tests named Units/[category.r/]/<case>.d in units target"
@echo " Tmain/<case>.d in tmain target"
@echo ""
@echo "Input verification target:"
@echo ""
@echo "make verify-input - Verify the input files themselves, not ctags"
@echo
@echo "Arguments that can be used in input verification target:"
@echo "VERIFIERS=<verifier>,[<verifier>] - Verify only input files expecting verified by VERIFIERs"
17 changes: 16 additions & 1 deletion makefiles/testing.mak
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- makefile -*-
.PHONY: check units fuzz noise tmain tinst clean-units clean-tmain clean-gcov run-gcov codecheck cppcheck dicts cspell
.PHONY: check units fuzz noise tmain tinst clean-units clean-tmain clean-gcov run-gcov codecheck cppcheck dicts cspell verify-input

check: tmain units

Expand Down Expand Up @@ -120,6 +120,21 @@ clean-units:
$(SHELL) $(srcdir)/misc/units clean $${builddir}/Units

#
# VERIFY-INPUT Target
#
verify-input:
$(V_RUN) \
if test -n "$${ZSH_VERSION+set}"; then set -o SH_WORD_SPLIT; fi; \
if test x$(VG) = x1; then \
VALGRIND=--with-valgrind; \
fi; \
if test -n "$(VERIFIERS)"; then \
VERIFIERS="--verifiers=$(VERIFIERS)"; \
fi; \
c="$(srcdir)/misc/units verify-input $${VERIFIERS}"; \
TRAVIS=$(TRAVIS) APPVEYOR=$(APPVEYOR) CIRCLECI=$(CIRCLECI)\
$(SHELL) $${c} $(srcdir)/Units $(srcdir)/misc/verifiers
#
# Test main part, not parsers
#
tmain: $(CTAGS_TEST)
Expand Down
Loading

0 comments on commit 59c2a32

Please sign in to comment.