From: Daniel Hahler Date: Thu, 23 Apr 2015 17:54:44 +0000 (+0200) Subject: make test_full: use zsh 4 (/opt/zsh4/bin/zsh) and zsh 5 X-Git-Url: http://www.git.stargrave.org/?p=zsh-autoenv.git;a=commitdiff_plain;h=b725b5da9be65a825b89e29298a868ef3096c3a6 make test_full: use zsh 4 (/opt/zsh4/bin/zsh) and zsh 5 --- diff --git a/Makefile b/Makefile index ed90a57..b43d709 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,14 @@ itest: # Run tests with all ZDOTDIRs. test_full: - ret=0; \ - for i in $(wildcard tests/ZDOTDIR*); do \ - echo "ZDOTDIR=$$i"; \ - ZDOTDIR=${CURDIR}/$$i cram --shell=zsh -v tests || ret=$$?; \ - echo; \ + 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; \ return $$ret