xref: /minix3/usr.bin/make/unit-tests/varshell.mk (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc# $Id: varshell.mk,v 1.2 2015/04/10 20:41:59 sjg Exp $
2*0a6a1f1dSLionel Sambuc#
3*0a6a1f1dSLionel Sambuc# Test VAR != shell command
4*0a6a1f1dSLionel Sambuc
5*0a6a1f1dSLionel SambucEXEC_FAILED		!= /bin/no/such/command
6*0a6a1f1dSLionel SambucTERMINATED_BY_SIGNAL	!= kill -14 $$$$
7*0a6a1f1dSLionel SambucERROR_NO_OUTPUT		!= false
8*0a6a1f1dSLionel SambucERROR_WITH_OUTPUT	!= echo "output before the error"; false
9*0a6a1f1dSLionel SambucNO_ERROR_NO_OUTPUT	!= true
10*0a6a1f1dSLionel SambucNO_ERROR_WITH_OUTPUT	!= echo "this is good"
11*0a6a1f1dSLionel Sambuc
12*0a6a1f1dSLionel Sambucallvars= EXEC_FAILED TERMINATED_BY_SIGNAL ERROR_NO_OUTPUT ERROR_WITH_OUTPUT \
13*0a6a1f1dSLionel Sambuc	NO_ERROR_NO_OUTPUT NO_ERROR_WITH_OUTPUT
14*0a6a1f1dSLionel Sambuc
15*0a6a1f1dSLionel Sambucall:
16*0a6a1f1dSLionel Sambuc.for v in ${allvars}
17*0a6a1f1dSLionel Sambuc	@echo ${v}=\'${${v}}\'
18*0a6a1f1dSLionel Sambuc.endfor
19