1235274Sgabor# $FreeBSD$ 2235274Sgabor 3235274SgaborTESTFILE= test01 test02 test03 test04 test05 test06 test07 test08 \ 4235274Sgabor test09 test10 test11 test12 test13 test14 test15 test16 test17 \ 5235274Sgabor test_nums 6235274Sgabor 7235274SgaborOPTIONS= r f fr fs fu i ir b bs bd bu g gs gu gr n nr M Mr u nu ns 8235274Sgabor 9235274Sgabor#SORT?= /usr/local/bin/bsdsort 10235274SgaborGNUSORT?=~/coreutils/bin/sort 11235274SgaborSORT?= ../sort 12235274SgaborCMP?= ${.CURDIR}/cmp.sh 13235274Sgabor 14235274Sgaborcheck: 15235274Sgabor mkdir -p output 16235274Sgabor.for f in ${TESTFILE} 17235274Sgabor @LANG=C;${SORT} data/${f} >output/${f} 18235274Sgabor @#LANG=C;${GNUSORT} data/${f} >ref/${f} 19235274Sgabor @${CMP} ref/${f} output/${f} 20235274Sgabor.endfor 21235274Sgabor.for opt in ${OPTIONS} 22235274Sgabor.for f in ${TESTFILE} 23235274Sgabor @LANG=C;${SORT} -${opt} data/${f} >output/${f}${opt} 24235274Sgabor @#LANG=C;${GNUSORT} -${opt} data/${f} >ref/${f}${opt} 25235274Sgabor @${CMP} ref/${f}${opt} output/${f}${opt} 26235274Sgabor.endfor 27235274Sgabor.endfor 28235274Sgabor 29235274SgaborCLEANDIRS+= output 30235274Sgabor 31235274Sgabor.include <bsd.prog.mk> 32