1 # $Id: cond1,v 1.5 2011/03/06 00:02:14 sjg Exp $
11 .if ("${TEST_UNAME_S}")
14 .if (${TEST_UNAME_M} != ${TEST_MACHINE})
17 .if ${TEST_UNAME_M} != ${TEST_MACHINE}
20 .if !((${TEST_UNAME_M} != ${TEST_MACHINE}) && defined(X))
21 Ok+= !((var != var) && defined(name)),
29 .if defined(notMAKEOBJDIRPREFIX) || defined(norMAKEOBJDIR)
30 .if defined(notMAKEOBJDIRPREFIX)
31 o=${MAKEOBJDIRPREFIX}${__curdir}
39 # repeat the above to check we get the same result
43 .if defined(notMAKEOBJDIRPREFIX) || defined(norMAKEOBJDIR)
44 .if defined(notMAKEOBJDIRPREFIX)
45 o2=${MAKEOBJDIRPREFIX}${__curdir}
57 .if ${PRIMES:M$n} == ""
63 .if ${MACHINE_ARCH} == no-such
66 .if ${MACHINE_ARCH} == not-this
67 .if ${MACHINE_ARCH} == something-else
74 # We expect an extra else warning - we're not skipping here
76 A=this should be an error
84 # We expect an extra else warning - we are skipping here
86 B=this should be an error
92 .if "quoted" == quoted
98 .if defined(nosuch) && ${nosuch:Mx} != ""
99 # this should not happen
104 @echo "$n is $X prime"
105 @echo "A='$A' B='$B' C='$C' o='$o,${o2}'"
106 @echo "Passed:${.newline} ${Ok:S/,/${.newline}/}"
107 @echo "${NUMBERS:@n@$n is ${("${PRIMES:M$n}" == ""):?not:} prime${.newline}@}"
108 @echo "${"${DoNotQuoteHere:U0}" > 0:?OK:No}"
109 @echo "${${NoSuchNumber:U42} > 0:?OK:No}"