--- ray/test/renders/Makefile 2019/01/25 23:49:41 1.19 +++ ray/test/renders/Makefile 2020/06/30 18:51:30 1.22 @@ -1,4 +1,4 @@ -# RCSid $Id: Makefile,v 1.19 2019/01/25 23:49:41 greg Exp $ +# RCSid $Id: Makefile,v 1.22 2020/06/30 18:51:30 greg Exp $ # # Render and primitive type testing # @@ -21,7 +21,7 @@ test-dielectric-fish test-glass-def test-glass-fish te test-tfunc-def test-tfunc-fish test-inst-def test-inst-fish \ test-mesh-def test-mesh-cyl test-mirror-fish test-mist-def \ test-trans-def test-trans-fish test-patterns-def test-patterns-plan \ -test-rtrace +test-rtrace test-obj2mesh clean: rm -f *.oct *.amb *_ill.dat blinds_ill?.dat *_*.hdr *.unf \ @@ -35,21 +35,26 @@ test-rpiece test-mkpmap: test-mixtex-def ### Special test of xform ### -test-xform: combined_scene.rad - xform -f combined_scene.rad | grep -v '^[ ]*#' > combined.rad +test-xform: combined.rad radcompare -max 0.04 ref/combined.rad combined.rad +combined.rad: combined_scene.rad + xform -f combined_scene.rad | grep -v '^[ ]*#' > combined.rad + ### Special test of rad ### test-rad: inst.rif rad -n -s -e inst.rif > inst_rad.txt radcompare ref/inst_rad.txt inst_rad.txt -### Special test of oconv ### +### Special tests of oconv and obj2mesh ### test-oconv: inst.oct radcompare ref/inst.oct inst.oct +test-obj2mesh: cab.obj + obj2mesh -w cab.obj | radcompare ref/cab.rtm - + ### Special test of rtrace ### test-rtrace: ref/mirror_fish.hdr rtmirror_fish.hdr @@ -65,7 +70,7 @@ rtmirror_fish.hdr: mirror.oct ### Special test for rfluxmtx (and rcontrib) ### test-rfluxmtx: ref/rfmirror.mtx rfmirror.mtx - radcompare -max .4 -rms .05 ref/rfmirror.mtx rfmirror.mtx + radcompare -max .4 -rms .05 -rel 1e-4 ref/rfmirror.mtx rfmirror.mtx rfmirror.mtx: mirror.rad dummysky.rad basic.mat diorama_walls.rad \ closed_end.rad front_cap.rad glass_pane.rad antimatter_portal.rad