freebsd-nq/contrib/bmake/unit-tests/varshell.mk
Simon J. Gerraty db29cad815 Merge bmake-20150418
PR: 199486
2015-04-21 04:40:38 +00:00

20 lines
541 B
Makefile

# $Id: varshell.mk,v 1.4 2015/04/20 03:16:39 sjg Exp $
#
# Test VAR != shell command
EXEC_FAILED != /bin/no/such/command 2> /dev/null
# SunOS cannot handle this one
#TERMINATED_BY_SIGNAL != kill -14 $$$$
ERROR_NO_OUTPUT != false
ERROR_WITH_OUTPUT != echo "output before the error"; false
NO_ERROR_NO_OUTPUT != true
NO_ERROR_WITH_OUTPUT != echo "this is good"
allvars= EXEC_FAILED TERMINATED_BY_SIGNAL ERROR_NO_OUTPUT ERROR_WITH_OUTPUT \
NO_ERROR_NO_OUTPUT NO_ERROR_WITH_OUTPUT
all:
.for v in ${allvars}
@echo ${v}=\'${${v}}\'
.endfor