1281760Ssjg# $NetBSD: modorder.mk,v 1.1 2014/08/21 13:44:51 apb Exp $
2281760Ssjg
3281760SsjgLIST=		one two three four five six seven eight nine ten
4281760SsjgLISTX=		${LIST:Ox}
5281760SsjgLISTSX:=	${LIST:Ox}
6281760SsjgTEST_RESULT= && echo Ok || echo Failed
7281760Ssjg
8281760Ssjg# unit-tests have to produce the same results on each run
9281760Ssjg# so we cannot actually include :Ox output.
10281760Ssjgall:
11281760Ssjg	@echo "LIST      = ${LIST}"
12281760Ssjg	@echo "LIST:O    = ${LIST:O}"
13281760Ssjg	# Note that 1 in every 10! trials two independently generated
14281760Ssjg	# randomized orderings will be the same.  The test framework doesn't
15281760Ssjg	# support checking probabilistic output, so we accept that the test
16281760Ssjg	# will incorrectly fail with probability 2.8E-7.
17281760Ssjg	@echo "LIST:Ox   = `test '${LIST:Ox}' != '${LIST:Ox}' ${TEST_RESULT}`"
18281760Ssjg	@echo "LIST:O:Ox = `test '${LIST:O:Ox}' != '${LIST:O:Ox}' ${TEST_RESULT}`"
19281760Ssjg	@echo "LISTX     = `test '${LISTX}' != '${LISTX}' ${TEST_RESULT}`"
20281760Ssjg	@echo "LISTSX    = `test '${LISTSX}' = '${LISTSX}' ${TEST_RESULT}`"
21281760Ssjg	@echo "BADMOD 1  = ${LIST:OX}"
22281760Ssjg	@echo "BADMOD 2  = ${LIST:OxXX}"
23