]> Sergey Matveev's repositories - zsh-autoenv.git/blobdiff - Makefile
tests: test_autoenv_add_to_env: create auth file parent dir (#59)
[zsh-autoenv.git] / Makefile
index 98597759e2dc1ccb5aeda7b30615a5a27aa3e0ce..ebfb971e82b8bfed129e67c11d94ee9ed328cc1c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,11 +12,16 @@ itest:
 
 # Run tests with all ZDOTDIRs.
 test_full:
-       for i in $(wildcard tests/ZDOTDIR*); do \
-               echo "ZDOTDIR=$$i"; \
-               ZDOTDIR=${CURDIR}/$$i cram --shell=zsh -v tests; \
-               echo; \
-       done
+       for zsh in zsh /opt/zsh4/bin/zsh; do \
+               command -v $$zsh || { echo "Skipping non-existing shell: $$zsh"; continue; }; \
+               ret=0; \
+               for i in $(wildcard tests/ZDOTDIR*); do \
+                       echo "zsh=$zsh ZDOTDIR=$$i"; \
+                       SHELL=$$zsh ZDOTDIR=${CURDIR}/$$i cram --shell=zsh -v tests || ret=$$?; \
+                       echo; \
+               done; \
+       done; \
+       exit $$ret
 
 # Define targets for test files, with relative and abolute path.
 # Use verbose output, which is useful with Vim's 'errorformat'.