--- ray/test/util/Makefile 2020/06/30 03:34:15 1.4 +++ ray/test/util/Makefile 2022/03/15 00:25:50 1.9 @@ -1,14 +1,14 @@ -# RCSid $Id: Makefile,v 1.4 2020/06/30 03:34:15 greg Exp $ +# RCSid $Id: Makefile,v 1.9 2022/03/15 00:25:50 greg Exp $ # # Unit tests for tools built in src/util but not covered by test/renders # all: test-vwright test-getinfo test-rcollate test-rmtxop test-dctimestep \ -test-genskyvec test-vwrays test-glarendx \ -test-rcode_norm test-rcode_depth test-rcode_ident +test-genskyvec test-vwrays test-glarendx test-rcode_norm test-rcode_depth \ +test-rcode_ident test-wrapBSDF test-rttree_reduce test-rcrop clean: - rm -f test.mtx vwrays.txt + rm -f test.mtx cropped.mtx ttree.txt vwrays.txt test-vwright: test.vf vwright -vf test.vf 3.5 > vwright.txt @@ -24,9 +24,7 @@ test-getinfo: test.mtx rm -f getinfo.txt test-rmtxop: test.mtx - rmtxop -ff -c .3 .9 .2 test.mtx -c .7 .2 .3 -t test.mtx > rmtxop.mtx - radcompare ref/rmtxop.mtx rmtxop.mtx - rm -f rmtxop.mtx + rmtxop -ff -c .3 .9 .2 test.mtx -c .7 .2 .3 -t test.mtx | radcompare ref/rmtxop.mtx - test-rcollate: test.mtx radcompare ref/test.mtx test.mtx @@ -53,9 +51,22 @@ test-glarendx: glaresrc.txt glarendx -t vert_ill glaresrc.txt | radcompare ref/vert_ill.txt - glarendx -t vert_ind glaresrc.txt | radcompare ref/vert_ind.txt - +test-rttree_reduce: ttree.txt + radcompare ref/ttree.txt ttree.txt + +test-wrapBSDF: ttree.txt + wrapBSDF -a t3 -u centimeter -f 'm=Test Guys;n=Bogus;t=2.54;h=20;w=45;' \ +-rb ttree.txt > testBSDF.xml + radcompare ref/testBSDF.xml testBSDF.xml + rm -f testBSDF.xml + test.mtx: ../renders/ref/rfmirror.mtx rcollate -t ../renders/ref/rfmirror.mtx > test.mtx +ttree.txt: + cnt 256 | rcalc -e '$$1=floor(sin(PI/256*recno)*40)' \ +| rttree_reduce -h -g 3 -r 3 -t 95 > ttree.txt + vwrays.txt: vwrays -vts -vp 100 50 -75 -vo 10 -va 1000 -vh 160 -vv 130 \ -x 20 -y 20 -vu 0 -1 0 -vd .358 -.8851 1.152 > vwrays.txt @@ -68,3 +79,8 @@ test-dctimestep: test.mtx | dctimestep '!rmtxop -ff -t test.mtx' > dctimestep.mtx radcompare ref/dctimestep.mtx dctimestep.mtx rm -f dctimestep.mtx + +test-rcrop: test.mtx + rcrop 15 31 75 19 test.mtx > cropped.mtx + radcompare -v ref/cropped.mtx cropped.mtx + rm -f cropped.mtx