| 1 |
greg |
1.11 |
# RCSid $Id: Makefile,v 1.10 2022/02/16 17:59:49 greg Exp $ |
| 2 |
greg |
1.1 |
# |
| 3 |
|
|
# Unit tests for tools built in src/px |
| 4 |
|
|
# |
| 5 |
|
|
|
| 6 |
|
|
HDR_CMP = radcompare -rms 0.07 -rel 1e-6 -max 0.2 |
| 7 |
|
|
|
| 8 |
greg |
1.2 |
IMG_CMP = radcompare -h -rms 0.03 -rel 0.007 -max 0.2 |
| 9 |
greg |
1.1 |
|
| 10 |
greg |
1.5 |
all: test-pfilt test-pvalue test-ra_tiff test-pcompos \ |
| 11 |
greg |
1.9 |
test-protate test-pflip test-ra_bmp test-ra_xyze test-pcond \ |
| 12 |
|
|
test-ra_t16 test-ra_t8 test-ra_rgbe test-ra_ppm test-pextrem \ |
| 13 |
|
|
test-pcomb test-pinterp test-psign test-falsecolor test-ra_ps \ |
| 14 |
|
|
test-ra_gif |
| 15 |
greg |
1.1 |
|
| 16 |
|
|
clean: |
| 17 |
greg |
1.2 |
rm -f test.hdr test24.hdr test24.tif test32L.tif pcomb.hdr \ |
| 18 |
greg |
1.3 |
norm24.tif norm8.tif pcompos.hdr pcondh.hdr test_extrema.txt psign.hdr \ |
| 19 |
greg |
1.11 |
pinterp.hdr false.hdr ra_ps.ps test8.tga test8.gif |
| 20 |
greg |
1.2 |
|
| 21 |
|
|
test-pcond: test.hdr |
| 22 |
|
|
pcond -h test.hdr pcondh.hdr |
| 23 |
|
|
$(IMG_CMP) ref/pcondh.hdr pcondh.hdr |
| 24 |
|
|
rm -f pcondh.hdr |
| 25 |
|
|
|
| 26 |
|
|
test-pcomb: test.hdr |
| 27 |
|
|
pcomb -e 'm=1/(gi(1)+.1);ro=gi(1)*m;go=bi(1)*m;bo=ri(1)*m' \ |
| 28 |
|
|
test.hdr > pcomb.hdr |
| 29 |
|
|
$(HDR_CMP) ref/pcomb.hdr pcomb.hdr |
| 30 |
|
|
rm -f pcomb.hdr |
| 31 |
|
|
|
| 32 |
|
|
test-ra_xyze: test-pfilt |
| 33 |
greg |
1.1 |
|
| 34 |
|
|
test-pfilt: test.hdr |
| 35 |
|
|
$(HDR_CMP) ref/test.hdr test.hdr |
| 36 |
|
|
|
| 37 |
|
|
test-pvalue: test24.hdr |
| 38 |
|
|
$(IMG_CMP) ref/test24.hdr test24.hdr |
| 39 |
|
|
|
| 40 |
greg |
1.2 |
test-pextrem: test.hdr |
| 41 |
|
|
pextrem -o test.hdr > test_extrema.txt |
| 42 |
|
|
radcompare ref/test_extrema.txt test_extrema.txt |
| 43 |
|
|
rm -f test_extrema.txt |
| 44 |
|
|
|
| 45 |
|
|
test-protate test-pflip: test-pcompos |
| 46 |
|
|
|
| 47 |
|
|
test-pcompos: test.hdr test24.hdr |
| 48 |
greg |
1.1 |
protate -r test.hdr | pcompos -a 2 -s 10 -b 1 1 1 \ |
| 49 |
|
|
'!pflip -h test24.hdr' - \ |
| 50 |
|
|
'!pflip -v test24.hdr' '!protate test.hdr' > pcompos.hdr |
| 51 |
|
|
$(HDR_CMP) ref/pcompos.hdr pcompos.hdr |
| 52 |
|
|
rm -f pcompos.hdr |
| 53 |
|
|
|
| 54 |
greg |
1.3 |
test-pinterp: test.hdr |
| 55 |
|
|
pinterp -vtv -vh 60 -vv 40 -x 200 -y 200 test.hdr 1.0 > pinterp.hdr |
| 56 |
|
|
$(HDR_CMP) ref/pinterp.hdr pinterp.hdr |
| 57 |
|
|
rm -f pinterp.hdr |
| 58 |
|
|
|
| 59 |
|
|
test-psign: |
| 60 |
|
|
psign -cb .9 .4 .01 -cf .1 .2 1 -dd -h 200 -a 1.5 -s -.1 Testing > psign.hdr |
| 61 |
|
|
$(HDR_CMP) ref/psign.hdr psign.hdr |
| 62 |
|
|
rm -f psign.hdr |
| 63 |
|
|
|
| 64 |
greg |
1.6 |
test-falsecolor: test.hdr |
| 65 |
greg |
1.8 |
falsecolor -s 2e5 -log 5 -i test.hdr > false.hdr |
| 66 |
greg |
1.3 |
$(HDR_CMP) ref/false.hdr false.hdr |
| 67 |
|
|
rm -f false.hdr |
| 68 |
|
|
|
| 69 |
greg |
1.2 |
test-ra_rgbe: test.hdr |
| 70 |
|
|
ra_rgbe -e -5 test.hdr | ra_rgbe -r -e +5 | $(HDR_CMP) -w test.hdr - |
| 71 |
|
|
|
| 72 |
greg |
1.1 |
test-ra_tiff: test.hdr test24.hdr |
| 73 |
|
|
ra_tiff test24.hdr test24.tif |
| 74 |
|
|
ra_tiff -r test24.tif | $(IMG_CMP) test24.hdr - |
| 75 |
|
|
ra_tiff -L test.hdr test32L.tif |
| 76 |
|
|
ra_tiff -r test32L.tif | $(HDR_CMP) -h test.hdr - |
| 77 |
|
|
rm -f test24.tif test32L.tif |
| 78 |
|
|
|
| 79 |
|
|
test-normtiff: test.hdr |
| 80 |
|
|
normtiff -z test.hdr norm24.tif |
| 81 |
|
|
radcompare ref/norm24.tif norm24.tif |
| 82 |
|
|
normtiff -z -b test.hdr norm8.tif |
| 83 |
|
|
radcompare ref/norm8.tif norm8.tif |
| 84 |
|
|
rm -f norm24.tif norm8.tif |
| 85 |
|
|
|
| 86 |
greg |
1.2 |
test-ra_bmp: test24.hdr |
| 87 |
|
|
ra_bmp test24.hdr | ra_bmp -r | $(IMG_CMP) test24.hdr - |
| 88 |
|
|
|
| 89 |
|
|
test-ra_t16: test24.hdr |
| 90 |
|
|
ra_t16 -3 test24.hdr | ra_t16 -r | $(IMG_CMP) test24.hdr - |
| 91 |
|
|
|
| 92 |
greg |
1.9 |
test-ra_t8: test.hdr |
| 93 |
greg |
1.10 |
ra_t8 test.hdr test8.tga |
| 94 |
greg |
1.9 |
radcompare ref/test8.tga test8.tga |
| 95 |
|
|
rm -f test8.tga |
| 96 |
|
|
|
| 97 |
greg |
1.2 |
test-ra_ppm: test24.hdr |
| 98 |
|
|
ra_ppm test24.hdr | ra_ppm -r | $(IMG_CMP) test24.hdr - |
| 99 |
|
|
|
| 100 |
greg |
1.4 |
test-ra_ps: test.hdr |
| 101 |
greg |
1.11 |
ra_ps -b test.hdr > ra_ps.ps |
| 102 |
|
|
radcompare -c% ref/ra_ps.ps ra_ps.ps |
| 103 |
|
|
rm -f ra_ps.ps |
| 104 |
greg |
1.4 |
|
| 105 |
greg |
1.9 |
test-ra_gif: test.hdr |
| 106 |
greg |
1.10 |
ra_gif -d -n 1 test.hdr > test8.gif |
| 107 |
greg |
1.9 |
radcompare ref/test8.gif test8.gif |
| 108 |
|
|
rm -f test8.gif |
| 109 |
|
|
|
| 110 |
greg |
1.1 |
test24.hdr: test.hdr |
| 111 |
greg |
1.2 |
pvalue -g 2.2 -db test.hdr | pvalue -r -g 2.2 -db > test24.hdr |
| 112 |
greg |
1.1 |
|
| 113 |
|
|
test.hdr: ../renders/sunset.hdr |
| 114 |
greg |
1.7 |
pfilt -x 544 -y 544 -r .6 ../renders/sunset.hdr \ |
| 115 |
greg |
1.2 |
| ra_xyze -r > test.hdr |