| 4 |
|
# |
| 5 |
|
|
| 6 |
|
# Number of processes to use on tests that run multi-core |
| 7 |
< |
NPROC = 2 |
| 7 |
> |
ifeq ($(OS),Windows_NT) # is Windows |
| 8 |
> |
NPROC := 1 |
| 9 |
> |
else |
| 10 |
> |
NPROC := 2 |
| 11 |
> |
endif |
| 12 |
|
|
| 13 |
|
# Image reduction for comparisons |
| 14 |
|
RDU_PFILT = pfilt -1 -r 1 -x 128 -y 128 -pa 1 |
| 15 |
|
|
| 16 |
|
# Image comparison command |
| 17 |
< |
IMG_CMP = radcompare -rms 0.07 -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 |
|
|
| 381 |
|
|
| 382 |
|
### Octree for trans2 ### |
| 383 |
|
|
| 384 |
< |
trans2.oct: trans2.rif |
| 384 |
> |
trans21.oct: trans2.rif |
| 385 |
|
rad -v 0 trans2.rif |
| 386 |
|
|
| 387 |
|
### Reference and test for trans2 view def ### |
| 393 |
|
make trans2_def.hdr |
| 394 |
|
$(RDU_PFILT) trans2_def.hdr > ref/trans2_def.hdr |
| 395 |
|
|
| 396 |
< |
trans2_def.hdr: trans2.oct |
| 396 |
> |
trans2_def.hdr: trans21.oct |
| 397 |
|
rad -v def trans2.rif |
| 398 |
|
|
| 399 |
|
### End trans2-def tests |
| 407 |
|
make trans2_fish.hdr |
| 408 |
|
$(RDU_PFILT) trans2_fish.hdr > ref/trans2_fish.hdr |
| 409 |
|
|
| 410 |
< |
trans2_fish.hdr: trans2.oct |
| 410 |
> |
trans2_fish.hdr: trans21.oct |
| 411 |
|
rad -v fish trans2.rif |
| 412 |
|
|
| 413 |
|
### End trans2-fish tests |
| 421 |
|
make trans2_win.hdr |
| 422 |
|
$(RDU_PFILT) trans2_win.hdr > ref/trans2_win.hdr |
| 423 |
|
|
| 424 |
< |
trans2_win.hdr: trans2.oct |
| 424 |
> |
trans2_win.hdr: trans21.oct |
| 425 |
|
rad -v win trans2.rif |
| 426 |
|
|
| 427 |
|
### End trans2-win tests |