167754Smsmith# $FreeBSD$ 267754Smsmith 377424SmsmithTESTFILE= test01 test02 test03 test04 test05 test06 test07 test08 \ 4138287Smarks test09 test10 test11 test12 test13 test14 test15 test16 test17 \ 567754Smsmith test_nums 667754Smsmith 767754SmsmithOPTIONS= r f fr fs fu i ir b bs bd bu g gs gu gr n nr M Mr u nu ns 867754Smsmith 967754Smsmith#SORT?= /usr/local/bin/bsdsort 1067754SmsmithGNUSORT?=~/coreutils/bin/sort 1167754SmsmithSORT?= ../sort 12126372SnjlCMP?= ${.CURDIR}/cmp.sh 1370243Smsmith 1467754Smsmithcheck: 1567754Smsmith mkdir -p output 1667754Smsmith.for f in ${TESTFILE} 1767754Smsmith @LANG=C;${SORT} data/${f} >output/${f} 1867754Smsmith @#LANG=C;${GNUSORT} data/${f} >ref/${f} 1967754Smsmith @${CMP} ref/${f} output/${f} 2067754Smsmith.endfor 2167754Smsmith.for opt in ${OPTIONS} 2267754Smsmith.for f in ${TESTFILE} 2367754Smsmith @LANG=C;${SORT} -${opt} data/${f} >output/${f}${opt} 2467754Smsmith @#LANG=C;${GNUSORT} -${opt} data/${f} >ref/${f}${opt} 2567754Smsmith @${CMP} ref/${f}${opt} output/${f}${opt} 2667754Smsmith.endfor 2767754Smsmith.endfor 2867754Smsmith 2967754SmsmithCLEANDIRS+= output 3067754Smsmith 3167754Smsmith.include <bsd.prog.mk> 3267754Smsmith