1 export ZDOTDIR=${PWD}/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=${PWD}/$$i cram --shell=zsh -v tests; \
16 # Define targets for test files, with relative and abolute path.
17 # Use verbose output, which is useful with Vim's 'errorformat'.
18 TESTS:=$(wildcard tests/*.t)
20 uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
21 _TESTS_REL_AND_ABS:=$(call uniq,$(abspath $(TESTS)) $(TESTS))
22 $(_TESTS_REL_AND_ABS):
23 ZDOTDIR="${PWD}/tests" cram --shell=zsh -v $@
24 .PHONY: $(_TESTS_REL_AND_ABS)