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.6 by greg, Tue Nov 20 02:58:24 2018 UTC vs.
Revision 1.19 by greg, Fri Jan 25 23:49:41 2019 UTC

# Line 3 | Line 3
3   # Render and primitive type testing
4   #
5  
6 + # Number of processes to use on tests that run 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 test-rpiece \
17 > test-rpict test-mkpmap \
18 > test-mixtex-def test-mixtex-fish test-mixtex-plan test-mixtex-rplan \
19 > test-trans2-def test-trans2-fish test-dielectric-def \
20   test-dielectric-fish test-glass-def test-glass-fish test-glass-up \
21   test-tfunc-def test-tfunc-fish test-inst-def test-inst-fish \
22   test-mesh-def test-mesh-cyl test-mirror-fish test-mist-def \
23 < test-trans-def test-trans-fish
23 > test-trans-def test-trans-fish test-patterns-def test-patterns-plan \
24 > test-rtrace
25  
26   clean:
27 <        rm -f *.oct *.amb *_ill.dat *_*.hdr *.unf combined.rad
27 >        rm -f *.oct *.amb *_ill.dat blinds_ill?.dat *_*.hdr *.unf \
28 > *.[cg]pm{,.leaf} inst_rad.txt combined.rad rfmirror.mtx
29  
30 < # Special test of xform
30 > ### Test Aliases ###
31  
32 + test-rpict:     test-mirror-fish
33 +
34 + test-rpiece test-mkpmap:        test-mixtex-def
35 +
36 + ### Special test of xform ###
37 +
38   test-xform:     combined_scene.rad
39          xform -f combined_scene.rad | grep -v '^[       ]*#' > combined.rad
40 <        radcompare ref/combined.rad combined.rad
40 >        radcompare -max 0.04 ref/combined.rad combined.rad
41  
42 + ### Special test of rad ###
43 +
44 + test-rad:       inst.rif
45 +        rad -n -s -e inst.rif > inst_rad.txt
46 +        radcompare ref/inst_rad.txt inst_rad.txt
47 +
48 + ### Special test of oconv ###
49 +
50 + test-oconv:     inst.oct
51 +        radcompare ref/inst.oct inst.oct
52 +
53 + ### Special test of rtrace ###
54 +
55 + test-rtrace:    ref/mirror_fish.hdr  rtmirror_fish.hdr
56 +        $(RDU_PFILT) rtmirror_fish.hdr | $(IMG_CMP) -h ref/mirror_fish.hdr -
57 +
58 + rtmirror_fish.hdr:      mirror.oct
59 +        rad -v 0 mirror.rif OPT=mirror.opt
60 +        vwrays -ff -vf fish.vf -x 2048 -y 2048 | rtrace -n $(NPROC) @mirror.opt \
61 + -ffc -x 2048 -y 2048 mirror.oct | pfilt -1 -e +3 -r .6 -x /2 -y /2 \
62 + > rtmirror_fish.hdr
63 +        rm -f mirror.opt
64 +
65 + ### Special test for rfluxmtx (and rcontrib) ###
66 +
67 + test-rfluxmtx:  ref/rfmirror.mtx rfmirror.mtx
68 +        radcompare -max .4 -rms .05 ref/rfmirror.mtx rfmirror.mtx
69 +
70 + rfmirror.mtx:   mirror.rad dummysky.rad basic.mat diorama_walls.rad \
71 + closed_end.rad front_cap.rad glass_pane.rad antimatter_portal.rad
72 +        rfluxmtx -n $(NPROC) -ab 2 -lw 1e-4 mirror.rad dummysky.rad \
73 + basic.mat diorama_walls.rad closed_end.rad front_cap.rad \
74 + glass_pane.rad antimatter_portal.rad > rfmirror.mtx
75 +
76   ### Octree for dielectric ###
77  
78   dielectric.oct: dielectric.rif
# Line 204 | Line 252 | mirror_fish.hdr:       mirror.oct
252  
253   ### End  mirror-fish  tests
254  
207 ### Octree for    mist ###
208
209 mist.oct:       mist.rif
210        rad -v 0    mist.rif
211
255   ### Reference and test for    mist view   def ###
256  
257   test-mist-def:  ref/mist_def.hdr    mist_def.hdr
# Line 218 | Line 261 | ref/mist_def.hdr:
261          make    mist_def.hdr
262          $(RDU_PFILT)    mist_def.hdr > ref/mist_def.hdr
263  
264 < mist_def.hdr:   mist.oct
265 <        rad -v   def    mist.rif
264 > mist_def.hdr:   mist.rif
265 >        rad -N $(NPROC) mist.rif
266  
267   ### End    mist-def   tests
268  
# Line 373 | Line 416 | trans2_win.hdr:        trans2.oct
416          rad -v   win  trans2.rif
417  
418   ### End  trans2-win   tests
419 +
420 + ### Octree for patterns ###
421 +
422 + patterns.oct:   patterns.rif
423 +        rad -v 0 patterns.rif
424 +
425 + ### Reference and test for patterns view   def ###
426 +
427 + test-patterns-def:      ref/patterns_def.hdr patterns_def.hdr
428 +        $(RDU_PFILT) patterns_def.hdr | $(IMG_CMP) ref/patterns_def.hdr -
429 +
430 + ref/patterns_def.hdr:
431 +        make patterns_def.hdr
432 +        $(RDU_PFILT) patterns_def.hdr > ref/patterns_def.hdr
433 +
434 + patterns_def.hdr:       patterns.oct
435 +        rad -v   def patterns.rif
436 +
437 + ### End patterns-def   tests
438 +
439 + ### Reference and test for patterns view   plan ###
440 +
441 + test-patterns-plan:     ref/patterns_plan.hdr patterns_plan.hdr
442 +        $(RDU_PFILT) patterns_plan.hdr | $(IMG_CMP) ref/patterns_plan.hdr -
443 +
444 + ref/patterns_plan.hdr:
445 +        make patterns_plan.hdr
446 +        $(RDU_PFILT) patterns_plan.hdr > ref/patterns_plan.hdr
447 +
448 + patterns_plan.hdr:      patterns.oct
449 +        rad -v   plan patterns.rif
450 +
451 + ### End patterns-plan   tests
452 +
453 + ### Octree for  mixtex ###
454 +
455 + mixtex.oct:     mixtex.rif
456 +        rad -v 0 -N $(NPROC) mixtex.rif
457 +
458 + ### Reference and test for  mixtex view   def ###
459 +
460 + test-mixtex-def:        ref/mixtex_def.hdr  mixtex_def.hdr
461 +        $(RDU_PFILT)  mixtex_def.hdr | $(IMG_CMP) ref/mixtex_def.hdr -
462 +
463 + ref/mixtex_def.hdr:
464 +        make  mixtex_def.hdr
465 +        $(RDU_PFILT)  mixtex_def.hdr > ref/mixtex_def.hdr
466 +
467 + mixtex_def.hdr: mixtex.oct
468 +        rad -v def -N $(NPROC) mixtex.rif
469 +
470 + ### End  mixtex-def   tests
471 +
472 + ### Reference and test for  mixtex view  fish ###
473 +
474 + test-mixtex-fish:       ref/mixtex_fish.hdr  mixtex_fish.hdr
475 +        $(RDU_PFILT)  mixtex_fish.hdr | $(IMG_CMP) ref/mixtex_fish.hdr -
476 +
477 + ref/mixtex_fish.hdr:
478 +        make  mixtex_fish.hdr
479 +        $(RDU_PFILT)  mixtex_fish.hdr > ref/mixtex_fish.hdr
480 +
481 + mixtex_fish.hdr:        mixtex.oct
482 +        rad -v  fish  mixtex.rif
483 +
484 + ### End  mixtex-fish  tests
485 +
486 + ### Reference and test for  mixtex view  plan ###
487 +
488 + test-mixtex-plan:       ref/mixtex_plan.hdr  mixtex_plan.hdr
489 +        $(RDU_PFILT)  mixtex_plan.hdr | $(IMG_CMP) ref/mixtex_plan.hdr -
490 +
491 + ref/mixtex_plan.hdr:
492 +        make  mixtex_plan.hdr
493 +        $(RDU_PFILT)  mixtex_plan.hdr > ref/mixtex_plan.hdr
494 +
495 + mixtex_plan.hdr:        mixtex.oct
496 +        rad -v  plan  mixtex.rif
497 +
498 + ### End  mixtex-plan  tests
499 +
500 + ### Reference and test for  mixtex view rplan ###
501 +
502 + test-mixtex-rplan:      ref/mixtex_rplan.hdr  mixtex_rplan.hdr
503 +        $(RDU_PFILT)  mixtex_rplan.hdr | $(IMG_CMP) ref/mixtex_rplan.hdr -
504 +
505 + ref/mixtex_rplan.hdr:
506 +        make  mixtex_rplan.hdr
507 +        $(RDU_PFILT)  mixtex_rplan.hdr > ref/mixtex_rplan.hdr
508 +
509 + mixtex_rplan.hdr:       mixtex.oct
510 +        rad -v rplan  mixtex.rif
511 +
512 + ### End  mixtex-rplan tests

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines