1 export ZDOTDIR=${CURDIR}/tests/ZDOTDIR
4 cram --shell=zsh -v tests
7 cram -i --shell=zsh tests
9 # Run tests with all ZDOTDIRs.
11 for i in $(wildcard tests/ZDOTDIR*); do \
13 ZDOTDIR=${CURDIR}/$$i cram --shell=zsh -v tests; \
17 # Define targets for test files, with relative and abolute path.
18 # Use verbose output, which is useful with Vim's 'errorformat'.
19 TESTS:=$(wildcard tests/*.t)
21 uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
22 _TESTS_REL_AND_ABS:=$(call uniq,$(abspath $(TESTS)) $(TESTS))
23 $(_TESTS_REL_AND_ABS):
24 cram --shell=zsh -v $@
25 .PHONY: $(_TESTS_REL_AND_ABS)