From 7c252b0348daedd1504aab2eaa02377062a27a2b Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Tue, 7 Nov 2017 07:46:25 +0100 Subject: [PATCH] Overridable `make test`. --- build.zsh.in | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/build.zsh.in b/build.zsh.in index cb7e87c..85405cb 100644 --- a/build.zsh.in +++ b/build.zsh.in @@ -187,6 +187,7 @@ done function main { typeset -a prefixes directories typeset -A ldflags cflags sources type depends install auto filename nodist + typeset -a tests prefixes=( PREFIX '/usr/local' @@ -380,10 +381,14 @@ function main { write -n " ${target}.test" fi done - for target in ${tests[@]}; do - write -n " ${target}" - done - write "\n\t@:\n" + if (( ${#tests[@]} > 0 )); then + write + for test in ${tests[@]}; do + write "\t${Q}$test" + done + else + write "\n\t@:\n" + fi write "subdirs.test:" subdirs test