--- ray/test/renders/Makefile 2018/11/18 16:37:32 1.3 +++ ray/test/renders/Makefile 2018/12/01 05:40:35 1.10 @@ -1,4 +1,4 @@ -# RCSid $Id: Makefile,v 1.3 2018/11/18 16:37:32 greg Exp $ +# RCSid $Id: Makefile,v 1.10 2018/12/01 05:40:35 greg Exp $ # # Render and primitive type testing # @@ -7,22 +7,24 @@ RDU_PFILT = pfilt -1 -r 1 -x 128 -y 128 -pa 1 # Image comparison command -IMG_CMP = radcompare -rms 0.08 -max 1.5 +IMG_CMP = radcompare -rms 0.07 -max 1.5 # Default target is to test everything -all: test-dielectric-def test-dielectric-fish test-glass-def \ -test-glass-fish test-glass-up test-inst-def test-inst-fish \ +all: test-xform \ +test-mixtex-def test-mixtex-fish test-mixtex-plan tex-mixtex-rplan \ +test-trans2-def test-trans2-fish test-dielectric-def \ +test-dielectric-fish test-glass-def test-glass-fish test-glass-up \ +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-tfunc-def test-tfunc-fish test-trans-def test-trans-fish \ -test-trans2-def test-trans2-fish +test-trans-def test-trans-fish test-patterns-def test-patterns-plan clean: - rm -f *.oct *.amb *.dat *_*.hdr *.unf combined.rad + rm -f *.oct *.amb *_ill.dat blinds_ill?.dat *_*.hdr *.unf combined.rad # Special test of xform test-xform: combined_scene.rad - xform -f combined_scene.rad > combined.rad + xform -f combined_scene.rad | grep -v '^[ ]*#' > combined.rad radcompare ref/combined.rad combined.rad ### Octree for dielectric ### @@ -373,3 +375,97 @@ trans2_win.hdr: trans2.oct rad -v win trans2.rif ### End trans2-win tests + +### Octree for patterns ### + +patterns.oct: patterns.rif + rad -v 0 patterns.rif + +### Reference and test for patterns view def ### + +test-patterns-def: ref/patterns_def.hdr patterns_def.hdr + $(RDU_PFILT) patterns_def.hdr | $(IMG_CMP) ref/patterns_def.hdr - + +ref/patterns_def.hdr: + make patterns_def.hdr + $(RDU_PFILT) patterns_def.hdr > ref/patterns_def.hdr + +patterns_def.hdr: patterns.oct + rad -v def patterns.rif + +### End patterns-def tests + +### Reference and test for patterns view plan ### + +test-patterns-plan: ref/patterns_plan.hdr patterns_plan.hdr + $(RDU_PFILT) patterns_plan.hdr | $(IMG_CMP) ref/patterns_plan.hdr - + +ref/patterns_plan.hdr: + make patterns_plan.hdr + $(RDU_PFILT) patterns_plan.hdr > ref/patterns_plan.hdr + +patterns_plan.hdr: patterns.oct + rad -v plan patterns.rif + +### End patterns-plan tests + +### Octree for mixtex ### + +mixtex.oct: mixtex.rif + rad -v 0 mixtex.rif + +### Reference and test for mixtex view def ### + +test-mixtex-def: ref/mixtex_def.hdr mixtex_def.hdr + $(RDU_PFILT) mixtex_def.hdr | $(IMG_CMP) ref/mixtex_def.hdr - + +ref/mixtex_def.hdr: + make mixtex_def.hdr + $(RDU_PFILT) mixtex_def.hdr > ref/mixtex_def.hdr + +mixtex_def.hdr: mixtex.oct + rad -v def mixtex.rif + +### End mixtex-def tests + +### Reference and test for mixtex view fish ### + +test-mixtex-fish: ref/mixtex_fish.hdr mixtex_fish.hdr + $(RDU_PFILT) mixtex_fish.hdr | $(IMG_CMP) ref/mixtex_fish.hdr - + +ref/mixtex_fish.hdr: + make mixtex_fish.hdr + $(RDU_PFILT) mixtex_fish.hdr > ref/mixtex_fish.hdr + +mixtex_fish.hdr: mixtex.oct + rad -v fish mixtex.rif + +### End mixtex-fish tests + +### Reference and test for mixtex view plan ### + +test-mixtex-plan: ref/mixtex_plan.hdr mixtex_plan.hdr + $(RDU_PFILT) mixtex_plan.hdr | $(IMG_CMP) ref/mixtex_plan.hdr - + +ref/mixtex_plan.hdr: + make mixtex_plan.hdr + $(RDU_PFILT) mixtex_plan.hdr > ref/mixtex_plan.hdr + +mixtex_plan.hdr: mixtex.oct + rad -v plan mixtex.rif + +### End mixtex-plan tests + +### Reference and test for mixtex view rplan ### + +test-mixtex-rplan: ref/mixtex_rplan.hdr mixtex_rplan.hdr + $(RDU_PFILT) mixtex_rplan.hdr | $(IMG_CMP) ref/mixtex_rplan.hdr - + +ref/mixtex_rplan.hdr: + make mixtex_rplan.hdr + $(RDU_PFILT) mixtex_rplan.hdr > ref/mixtex_rplan.hdr + +mixtex_rplan.hdr: mixtex.oct + rad -v rplan mixtex.rif + +### End mixtex-rplan tests