1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2025-12-15 02:35:12 +02:00

tests: setup for multiple ZDOTDIRs, fix/add "setopt clobber"

This commit is contained in:
Daniel Hahler
2014-12-08 22:12:30 +01:00
parent 027e8fb5de
commit 9c829733ad
10 changed files with 27 additions and 15 deletions

View File

@@ -1,10 +1,17 @@
.PHONY: itest test
export ZDOTDIR=${PWD}/tests/ZDOTDIR
test:
ZDOTDIR="${PWD}/tests" cram --shell=zsh -v tests
cram --shell=zsh -v tests
itest:
ZDOTDIR="${PWD}/tests" cram -i --shell=zsh tests
cram -i --shell=zsh tests
# Run tests with all ZDOTDIRs.
test_full:
for i in $(wildcard tests/ZDOTDIR*); do \
echo "ZDOTDIR=$$i"; \
ZDOTDIR=${PWD}/$$i cram --shell=zsh -v tests; \
done
# Define targets for test files, with relative and abolute path.
# Use verbose output, which is useful with Vim's 'errorformat'.
@@ -15,3 +22,5 @@ _TESTS_REL_AND_ABS:=$(call uniq,$(abspath $(TESTS)) $(TESTS))
$(_TESTS_REL_AND_ABS):
ZDOTDIR="${PWD}/tests" cram --shell=zsh -v $@
.PHONY: $(_TESTS_REL_AND_ABS)
.PHONY: itest test