| 3 | 
  | 
# Render and primitive type testing | 
| 4 | 
  | 
# | 
| 5 | 
  | 
 | 
| 6 | 
< | 
# Number of processes to use on tests that test multi-core | 
| 6 | 
> | 
# Number of processes to use on tests that run multi-core | 
| 7 | 
  | 
NPROC = 2 | 
| 8 | 
  | 
 | 
| 9 | 
  | 
# Image reduction for comparisons | 
| 13 | 
  | 
IMG_CMP = radcompare -rms 0.07 -max 1.5 | 
| 14 | 
  | 
 | 
| 15 | 
  | 
# Default target is to test everything | 
| 16 | 
< | 
all:    test-xform test-oconv test-rad test-rfluxmtx \ | 
| 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 \ | 
| 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 | 
+ | 
### 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 | 
| 32 | 
< | 
        xform -f combined_scene.rad | grep -v '^[       ]*#' > combined.rad | 
| 38 | 
> | 
test-xform:     combined.rad | 
| 39 | 
  | 
        radcompare -max 0.04 ref/combined.rad combined.rad | 
| 40 | 
  | 
 | 
| 41 | 
+ | 
combined.rad:   combined_scene.rad | 
| 42 | 
+ | 
        xform -f combined_scene.rad | grep -v '^[       ]*#' > combined.rad | 
| 43 | 
+ | 
 | 
| 44 | 
  | 
### Special test of rad ### | 
| 45 | 
  | 
 | 
| 46 | 
  | 
test-rad:       inst.rif | 
| 67 | 
  | 
### Special test for rfluxmtx (and rcontrib) ### | 
| 68 | 
  | 
 | 
| 69 | 
  | 
test-rfluxmtx:  ref/rfmirror.mtx rfmirror.mtx | 
| 70 | 
< | 
        radcompare -max .4 -rms .05 ref/rfmirror.mtx rfmirror.mtx | 
| 70 | 
> | 
        radcompare -max .4 -rms .05 -rel 1e-4 ref/rfmirror.mtx rfmirror.mtx | 
| 71 | 
  | 
 | 
| 72 | 
  | 
rfmirror.mtx:   mirror.rad dummysky.rad basic.mat diorama_walls.rad \ | 
| 73 | 
  | 
closed_end.rad front_cap.rad glass_pane.rad antimatter_portal.rad | 
| 254 | 
  | 
 | 
| 255 | 
  | 
### End  mirror-fish  tests | 
| 256 | 
  | 
 | 
| 248 | 
– | 
### Octree for    mist ### | 
| 249 | 
– | 
 | 
| 250 | 
– | 
mist.oct:       mist.rif | 
| 251 | 
– | 
        rad -v 0    mist.rif | 
| 252 | 
– | 
 | 
| 257 | 
  | 
### Reference and test for    mist view   def ### | 
| 258 | 
  | 
 | 
| 259 | 
  | 
test-mist-def:  ref/mist_def.hdr    mist_def.hdr | 
| 263 | 
  | 
        make    mist_def.hdr | 
| 264 | 
  | 
        $(RDU_PFILT)    mist_def.hdr > ref/mist_def.hdr | 
| 265 | 
  | 
 | 
| 266 | 
< | 
mist_def.hdr:   mist.oct | 
| 267 | 
< | 
        rad -v   def    mist.rif | 
| 266 | 
> | 
mist_def.hdr:   mist.rif | 
| 267 | 
> | 
        rad -N $(NPROC) mist.rif | 
| 268 | 
  | 
 | 
| 269 | 
  | 
### End    mist-def   tests | 
| 270 | 
  | 
 | 
| 455 | 
  | 
### Octree for  mixtex ### | 
| 456 | 
  | 
 | 
| 457 | 
  | 
mixtex.oct:     mixtex.rif | 
| 458 | 
< | 
        rad -v 0  mixtex.rif | 
| 458 | 
> | 
        rad -v 0 -N $(NPROC) mixtex.rif | 
| 459 | 
  | 
 | 
| 460 | 
  | 
### Reference and test for  mixtex view   def ### | 
| 461 | 
  | 
 | 
| 467 | 
  | 
        $(RDU_PFILT)  mixtex_def.hdr > ref/mixtex_def.hdr | 
| 468 | 
  | 
 | 
| 469 | 
  | 
mixtex_def.hdr: mixtex.oct | 
| 470 | 
< | 
        rad -v   def  mixtex.rif | 
| 470 | 
> | 
        rad -v def -N $(NPROC) mixtex.rif | 
| 471 | 
  | 
 | 
| 472 | 
  | 
### End  mixtex-def   tests | 
| 473 | 
  | 
 |