ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/renders/Makefile
(Generate patch)

Comparing ray/test/renders/Makefile (file contents):
Revision 1.7 by greg, Wed Nov 21 20:42:58 2018 UTC vs.
Revision 1.17 by greg, Mon Jan 7 21:11:24 2019 UTC

# Line 3 | Line 3
3   # Render and primitive type testing
4   #
5  
6 + # Number of processes to use on tests that test multi-core
7 + NPROC = 2
8 +
9   # Image reduction for comparisons
10   RDU_PFILT = pfilt -1 -r 1 -x 128 -y 128 -pa 1
11  
12   # Image comparison command
13 < IMG_CMP = radcompare -rms 0.08 -max 1.5
13 > IMG_CMP = radcompare -rms 0.07 -max 1.5
14  
15   # Default target is to test everything
16 < all:    test-xform test-trans2-def test-trans2-fish test-dielectric-def \
16 > all:    test-xform test-oconv test-rad test-rfluxmtx \
17 > test-mixtex-def test-mixtex-fish test-mixtex-plan test-mixtex-rplan \
18 > test-trans2-def test-trans2-fish test-dielectric-def \
19   test-dielectric-fish test-glass-def test-glass-fish test-glass-up \
20   test-tfunc-def test-tfunc-fish test-inst-def test-inst-fish \
21   test-mesh-def test-mesh-cyl test-mirror-fish test-mist-def \
22 < test-trans-def test-trans-fish test-patterns-def
22 > test-trans-def test-trans-fish test-patterns-def test-patterns-plan \
23 > test-rtrace
24  
25   clean:
26 <        rm -f *.oct *.amb *_ill.dat *_*.hdr *.unf combined.rad
26 >        rm -f *.oct *.amb *_ill.dat blinds_ill?.dat *_*.hdr *.unf \
27 > *.[cg]pm{,.leaf} inst_rad.txt combined.rad rfmirror.mtx
28  
29 < # Special test of xform
29 > ### Special test of xform ###
30  
31   test-xform:     combined_scene.rad
32          xform -f combined_scene.rad | grep -v '^[       ]*#' > combined.rad
33 <        radcompare ref/combined.rad combined.rad
33 >        radcompare -max 0.04 ref/combined.rad combined.rad
34  
35 + ### Special test of rad ###
36 +
37 + test-rad:       inst.rif
38 +        rad -n -s -e inst.rif > inst_rad.txt
39 +        radcompare ref/inst_rad.txt inst_rad.txt
40 +
41 + ### Special test of oconv ###
42 +
43 + test-oconv:     inst.oct
44 +        radcompare ref/inst.oct inst.oct
45 +
46 + ### Special test of rtrace ###
47 +
48 + test-rtrace:    ref/mirror_fish.hdr  rtmirror_fish.hdr
49 +        $(RDU_PFILT) rtmirror_fish.hdr | $(IMG_CMP) -h ref/mirror_fish.hdr -
50 +
51 + rtmirror_fish.hdr:      mirror.oct
52 +        rad -v 0 mirror.rif OPT=mirror.opt
53 +        vwrays -ff -vf fish.vf -x 2048 -y 2048 | rtrace -n $(NPROC) @mirror.opt \
54 + -ffc -x 2048 -y 2048 mirror.oct | pfilt -1 -e +3 -r .6 -x /2 -y /2 \
55 + > rtmirror_fish.hdr
56 +        rm -f mirror.opt
57 +
58 + ### Special test for rfluxmtx (and rcontrib) ###
59 +
60 + test-rfluxmtx:  ref/rfmirror.mtx rfmirror.mtx
61 +        radcompare -max .4 -rms .05 ref/rfmirror.mtx rfmirror.mtx
62 +
63 + rfmirror.mtx:   mirror.rad dummysky.rad basic.mat diorama_walls.rad \
64 + closed_end.rad front_cap.rad glass_pane.rad antimatter_portal.rad
65 +        rfluxmtx -n $(NPROC) -ab 2 -lw 1e-4 mirror.rad dummysky.rad \
66 + basic.mat diorama_walls.rad closed_end.rad front_cap.rad \
67 + glass_pane.rad antimatter_portal.rad > rfmirror.mtx
68 +
69   ### Octree for dielectric ###
70  
71   dielectric.oct: dielectric.rif
# Line 392 | Line 433 | patterns_def.hdr:      patterns.oct
433          rad -v   def patterns.rif
434  
435   ### End patterns-def   tests
436 +
437 + ### Reference and test for patterns view   plan ###
438 +
439 + test-patterns-plan:     ref/patterns_plan.hdr patterns_plan.hdr
440 +        $(RDU_PFILT) patterns_plan.hdr | $(IMG_CMP) ref/patterns_plan.hdr -
441 +
442 + ref/patterns_plan.hdr:
443 +        make patterns_plan.hdr
444 +        $(RDU_PFILT) patterns_plan.hdr > ref/patterns_plan.hdr
445 +
446 + patterns_plan.hdr:      patterns.oct
447 +        rad -v   plan patterns.rif
448 +
449 + ### End patterns-plan   tests
450 +
451 + ### Octree for  mixtex ###
452 +
453 + mixtex.oct:     mixtex.rif
454 +        rad -v 0  mixtex.rif
455 +
456 + ### Reference and test for  mixtex view   def ###
457 +
458 + test-mixtex-def:        ref/mixtex_def.hdr  mixtex_def.hdr
459 +        $(RDU_PFILT)  mixtex_def.hdr | $(IMG_CMP) ref/mixtex_def.hdr -
460 +
461 + ref/mixtex_def.hdr:
462 +        make  mixtex_def.hdr
463 +        $(RDU_PFILT)  mixtex_def.hdr > ref/mixtex_def.hdr
464 +
465 + mixtex_def.hdr: mixtex.oct
466 +        rad -v   def  mixtex.rif
467 +
468 + ### End  mixtex-def   tests
469 +
470 + ### Reference and test for  mixtex view  fish ###
471 +
472 + test-mixtex-fish:       ref/mixtex_fish.hdr  mixtex_fish.hdr
473 +        $(RDU_PFILT)  mixtex_fish.hdr | $(IMG_CMP) ref/mixtex_fish.hdr -
474 +
475 + ref/mixtex_fish.hdr:
476 +        make  mixtex_fish.hdr
477 +        $(RDU_PFILT)  mixtex_fish.hdr > ref/mixtex_fish.hdr
478 +
479 + mixtex_fish.hdr:        mixtex.oct
480 +        rad -v  fish  mixtex.rif
481 +
482 + ### End  mixtex-fish  tests
483 +
484 + ### Reference and test for  mixtex view  plan ###
485 +
486 + test-mixtex-plan:       ref/mixtex_plan.hdr  mixtex_plan.hdr
487 +        $(RDU_PFILT)  mixtex_plan.hdr | $(IMG_CMP) ref/mixtex_plan.hdr -
488 +
489 + ref/mixtex_plan.hdr:
490 +        make  mixtex_plan.hdr
491 +        $(RDU_PFILT)  mixtex_plan.hdr > ref/mixtex_plan.hdr
492 +
493 + mixtex_plan.hdr:        mixtex.oct
494 +        rad -v  plan  mixtex.rif
495 +
496 + ### End  mixtex-plan  tests
497 +
498 + ### Reference and test for  mixtex view rplan ###
499 +
500 + test-mixtex-rplan:      ref/mixtex_rplan.hdr  mixtex_rplan.hdr
501 +        $(RDU_PFILT)  mixtex_rplan.hdr | $(IMG_CMP) ref/mixtex_rplan.hdr -
502 +
503 + ref/mixtex_rplan.hdr:
504 +        make  mixtex_rplan.hdr
505 +        $(RDU_PFILT)  mixtex_rplan.hdr > ref/mixtex_rplan.hdr
506 +
507 + mixtex_rplan.hdr:       mixtex.oct
508 +        rad -v rplan  mixtex.rif
509 +
510 + ### End  mixtex-rplan tests

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines