xref: /freebsd/tools/test/sort/regression/Makefile (revision d0b2dbfa)
1
2TESTFILE= test01 test02 test03 test04 test05 test06 test07 test08 \
3	test09 test10 test11 test12 test13 test14 test15 test16 test17 \
4	test_nums
5
6OPTIONS= r f fr fs fu i ir b bs bd bu g gs gu gr n nr M Mr u nu ns
7
8#SORT?=	/usr/local/bin/bsdsort
9GNUSORT?=~/coreutils/bin/sort
10SORT?=	../sort
11CMP?=	${.CURDIR}/cmp.sh
12
13check:
14	mkdir -p output
15.for f in ${TESTFILE}
16	@LANG=C;${SORT} data/${f} >output/${f}
17	@#LANG=C;${GNUSORT} data/${f} >ref/${f}
18	@${CMP} ref/${f} output/${f}
19.endfor
20.for opt in ${OPTIONS}
21.for f in ${TESTFILE}
22	@LANG=C;${SORT} -${opt} data/${f} >output/${f}${opt}
23	@#LANG=C;${GNUSORT} -${opt} data/${f} >ref/${f}${opt}
24	@${CMP} ref/${f}${opt} output/${f}${opt}
25.endfor
26.endfor
27
28CLEANDIRS+= output
29
30.include <bsd.prog.mk>
31