--- ray/test/px/Makefile 2020/07/17 23:02:10 1.6 +++ ray/test/px/Makefile 2022/02/16 17:59:49 1.10 @@ -1,4 +1,4 @@ -# RCSid $Id: Makefile,v 1.6 2020/07/17 23:02:10 greg Exp $ +# RCSid $Id: Makefile,v 1.10 2022/02/16 17:59:49 greg Exp $ # # Unit tests for tools built in src/px # @@ -8,14 +8,15 @@ HDR_CMP = radcompare -rms 0.07 -rel 1e-6 -max 0.2 IMG_CMP = radcompare -h -rms 0.03 -rel 0.007 -max 0.2 all: test-pfilt test-pvalue test-ra_tiff test-pcompos \ -test-protate test-pflip test-ra_bmp test-ra_xyze test-pcond test-ra_t16 \ -test-ra_rgbe test-ra_ppm test-pextrem test-pcomb test-pinterp test-psign \ -test-falsecolor test-ra_ps +test-protate test-pflip test-ra_bmp test-ra_xyze test-pcond \ +test-ra_t16 test-ra_t8 test-ra_rgbe test-ra_ppm test-pextrem \ +test-pcomb test-pinterp test-psign test-falsecolor test-ra_ps \ +test-ra_gif clean: rm -f test.hdr test24.hdr test24.tif test32L.tif pcomb.hdr \ norm24.tif norm8.tif pcompos.hdr pcondh.hdr test_extrema.txt psign.hdr \ -pinterp.hdr false.hdr ra_psC.ps +pinterp.hdr false.hdr ra_psC.ps test8.tga test8.gif test-pcond: test.hdr pcond -h test.hdr pcondh.hdr @@ -61,7 +62,7 @@ test-psign: rm -f psign.hdr test-falsecolor: test.hdr - perl ../../src/px/falsecolor.pl -s 2e5 -log 5 -i test.hdr > false.hdr + falsecolor -s 2e5 -log 5 -i test.hdr > false.hdr $(HDR_CMP) ref/false.hdr false.hdr rm -f false.hdr @@ -88,6 +89,11 @@ test-ra_bmp: test24.hdr test-ra_t16: test24.hdr ra_t16 -3 test24.hdr | ra_t16 -r | $(IMG_CMP) test24.hdr - +test-ra_t8: test.hdr + ra_t8 test.hdr test8.tga + radcompare ref/test8.tga test8.tga + rm -f test8.tga + test-ra_ppm: test24.hdr ra_ppm test24.hdr | ra_ppm -r | $(IMG_CMP) test24.hdr - @@ -96,9 +102,14 @@ test-ra_ps: test.hdr radcompare ref/ra_psC.ps ra_psC.ps rm -f ra_psC.ps +test-ra_gif: test.hdr + ra_gif -d -n 1 test.hdr > test8.gif + radcompare ref/test8.gif test8.gif + rm -f test8.gif + test24.hdr: test.hdr pvalue -g 2.2 -db test.hdr | pvalue -r -g 2.2 -db > test24.hdr test.hdr: ../renders/sunset.hdr - pfilt -x /2.5 -y /2.5 -r .6 ../renders/sunset.hdr \ + pfilt -x 544 -y 544 -r .6 ../renders/sunset.hdr \ | ra_xyze -r > test.hdr