1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:20:03 +08:00
SpaceVim/bundle/verilog/Makefile
2022-04-15 20:36:45 +08:00

64 lines
1.5 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

V ?= 0
SILENT = $(SILENT_$(V))
SILENT_0 = @
SILENT_1 =
SHELL = /bin/bash -o pipefail
VIM = vim -u test/test_vimrc -U none -T dumb -E --cmd "set runtimepath+=${PWD}"
.PHONY: help test test-fold test-indent test-efm
all: test
test: test-fold test-indent test-efm test-syntax
test-fold:
$(SILENT) $(VIM) \
-c 'source test/functions.vim' \
-c 'source test/run_test.vim' \
-c 'call RunTestFold()'
test-indent:
$(SILENT) $(VIM) \
-c 'source test/functions.vim' \
-c 'source test/run_test.vim' \
-c 'call RunTestIndent()'
test-efm:
$(SILENT) $(VIM) \
-c 'source test/functions.vim' \
-c 'source test/run_test.vim' \
-c 'call RunTestEfm()' | \
tee test-efm.log | grep "^Error format test"
test-syntax:
$(SILENT) $(VIM) \
-c 'source test/functions.vim' \
-c 'source test/run_test.vim' \
-c 'call RunTestSyntax()' | tr -d '[]' | \
tee test-syntax.log | grep "^Syntax test"
performance:
$(SILENT) time $(VIM) \
--cmd 'silent edit test/indent.sv' \
--cmd 'normal! gg=G' \
--cmd 'quit!'
profile:
$(SILENT) $(VIM) \
--cmd 'profile start verilog_profile.result' \
--cmd 'profile! file indent/verilog_systemverilog.vim' \
-c 'source test/functions.vim' \
-c 'source test/run_test.vim'
help:
@echo "Test targets:"
@echo ""
@echo "make test - Run addon tests"
@echo "make performance - Measure performance"
@echo "make profile - Measure performance using vims built in profiler"
@echo
@echo "Options:"
@echo "V=1 - Enable verbose mode"