14 |
|
RDU_PFILT = pfilt -1 -r 1 -x 128 -y 128 -pa 1 |
15 |
|
|
16 |
|
# Image comparison command |
17 |
< |
IMG_CMP = radcompare -rms 0.08 -max 1.5 |
17 |
> |
IMG_CMP = radcompare -rel 0.007 -rms 0.1 -max 1.5 |
18 |
|
|
19 |
|
# Default target is to test everything |
20 |
|
all: test-xform test-oconv test-rad test-rfluxmtx test-rpiece \ |
21 |
< |
test-rpict test-mkpmap \ |
21 |
> |
test-rpict test-mkpmap test-prism1-fish test-prism2-fish \ |
22 |
|
test-mixtex-def test-mixtex-fish test-mixtex-plan test-mixtex-rplan \ |
23 |
< |
test-trans2-def test-trans2-fish test-dielectric-def \ |
23 |
> |
test-trans2-def test-trans2-fish test-trans2-win test-dielectric-def \ |
24 |
|
test-dielectric-fish test-glass-def test-glass-fish test-glass-up \ |
25 |
|
test-tfunc-def test-tfunc-fish test-inst-def test-inst-fish \ |
26 |
< |
test-mesh-def test-mesh-cyl test-mirror-fish test-mist-def \ |
26 |
> |
test-mesh-def test-mesh-cyl test-mesh-cyl2 test-mirror-fish test-mist-def \ |
27 |
|
test-trans-def test-trans-fish test-patterns-def test-patterns-plan \ |
28 |
|
test-rtrace test-obj2mesh |
29 |
|
|
31 |
|
rm -f *.oct *.amb *_ill.dat blinds_ill?.dat *_*.hdr *.unf \ |
32 |
|
*.[cg]pm{,.leaf} inst_rad.txt combined.rad rfmirror.mtx |
33 |
|
|
34 |
+ |
###### |
35 |
+ |
# More-or-less evenly divided batches for NPROC=1 (redundancies removed) |
36 |
+ |
|
37 |
+ |
batch1: test-mixtex-def test-mixtex-fish test-mixtex-plan test-mixtex-rplan \ |
38 |
+ |
test-xform test-oconv test-rad test-obj2mesh |
39 |
+ |
|
40 |
+ |
batch2: test-rfluxmtx test-mist-def test-glass-def test-glass-fish test-glass-up |
41 |
+ |
|
42 |
+ |
batch3: test-inst-def test-inst-fish test-trans2-def test-trans2-fish test-trans2-win \ |
43 |
+ |
test-dielectric-def test-dielectric-fish |
44 |
+ |
|
45 |
+ |
batch4: test-rtrace test-prism1-fish test-prism2-fish test-mirror-fish \ |
46 |
+ |
test-mesh-def test-mesh-cyl test-mesh-cyl2 test-tfunc-def test-tfunc-fish \ |
47 |
+ |
test-trans-def test-trans-fish test-patterns-def test-patterns-plan |
48 |
+ |
|
49 |
|
### Test Aliases ### |
50 |
|
|
51 |
|
test-rpict: test-mirror-fish |
76 |
|
|
77 |
|
### Special test of rtrace ### |
78 |
|
|
79 |
< |
test-rtrace: ref/mirror_fish.hdr rtmirror_fish.hdr |
79 |
> |
test-rtrace: ref/mirror_fish.hdr rtmirror_fish.hdr |
80 |
|
$(RDU_PFILT) rtmirror_fish.hdr | $(IMG_CMP) -h ref/mirror_fish.hdr - |
81 |
|
|
82 |
|
rtmirror_fish.hdr: mirror.oct |
83 |
|
rad -v 0 mirror.rif OPT=mirror.opt |
84 |
< |
vwrays -ff -vf fish.vf -x 2048 -y 2048 | rtrace -n $(NPROC) @mirror.opt \ |
85 |
< |
-ffc -x 2048 -y 2048 mirror.oct | pfilt -1 -e +3 -r .6 -x /2 -y /2 \ |
84 |
> |
vwrays -ff -vf fish.vf -x 2048 -y 1991 | rtrace -n $(NPROC) @mirror.opt \ |
85 |
> |
-ffc -x 2048 -y 1991 mirror.oct | pfilt -1 -e +3 -r .6 -x /2 -y /2 \ |
86 |
|
> rtmirror_fish.hdr |
87 |
|
rm -f mirror.opt |
88 |
|
|