| 4 | 
  | 
# | 
| 5 | 
  | 
 | 
| 6 | 
  | 
all:    test-vwright test-getinfo test-rcollate test-rmtxop test-dctimestep \ | 
| 7 | 
< | 
test-genskyvec test-vwrays test-glarendx \ | 
| 8 | 
< | 
test-rcode_norm test-rcode_depth test-rcode_ident | 
| 7 | 
> | 
test-genskyvec test-vwrays test-glarendx test-rcode_norm test-rcode_depth \ | 
| 8 | 
> | 
test-rcode_ident test-wrapBSDF test-rttree_reduce | 
| 9 | 
  | 
 | 
| 10 | 
  | 
clean: | 
| 11 | 
< | 
        rm -f test.mtx vwrays.txt | 
| 11 | 
> | 
        rm -f test.mtx ttree.txt vwrays.txt | 
| 12 | 
  | 
 | 
| 13 | 
  | 
test-vwright:   test.vf | 
| 14 | 
  | 
        vwright -vf test.vf 3.5 > vwright.txt | 
| 24 | 
  | 
        rm -f getinfo.txt | 
| 25 | 
  | 
         | 
| 26 | 
  | 
test-rmtxop:    test.mtx | 
| 27 | 
< | 
        rmtxop -ff -c .3 .9 .2 test.mtx -c .7 .2 .3 -t test.mtx > rmtxop.mtx | 
| 28 | 
< | 
        radcompare ref/rmtxop.mtx rmtxop.mtx | 
| 29 | 
< | 
        rm -f rmtxop.mtx | 
| 27 | 
> | 
        rmtxop -ff -c .3 .9 .2 test.mtx -c .7 .2 .3 -t test.mtx | radcompare ref/rmtxop.mtx -  | 
| 28 | 
  | 
 | 
| 29 | 
  | 
test-rcollate:  test.mtx | 
| 30 | 
  | 
        radcompare ref/test.mtx test.mtx | 
| 31 | 
  | 
 | 
| 32 | 
  | 
test-rcode_ident:       idents.txt | 
| 33 | 
  | 
        rcode_ident -8 -x 20 -y 10 idents.txt | radcompare ref/idents.idx - | 
| 34 | 
+ | 
        rcode_ident -r -H ref/idents.idx | radcompare idents.txt - | 
| 35 | 
  | 
 | 
| 36 | 
  | 
test-rcode_norm:        vwrays.txt | 
| 37 | 
  | 
        rcode_norm -hi -x 40 -y 15 vwrays.txt | radcompare ref/norms.nrm - | 
| 38 | 
  | 
 | 
| 39 | 
  | 
test-rcode_depth:       depths.txt | 
| 40 | 
  | 
        rcode_depth -x 20 -y 10 -d 150/inch depths.txt | radcompare -h ref/depths.dpt - | 
| 41 | 
+ | 
        rcode_depth -r -Ho ref/depths.dpt | radcompare -w depths.txt - | 
| 42 | 
  | 
 | 
| 43 | 
  | 
test-glarendx:  glaresrc.txt | 
| 44 | 
  | 
        glarendx -t guth_vcp glaresrc.txt | radcompare ref/guth_vcp.txt - | 
| 51 | 
  | 
        glarendx -t vert_ill glaresrc.txt | radcompare ref/vert_ill.txt - | 
| 52 | 
  | 
        glarendx -t vert_ind glaresrc.txt | radcompare ref/vert_ind.txt - | 
| 53 | 
  | 
 | 
| 54 | 
+ | 
test-rttree_reduce: ttree.txt | 
| 55 | 
+ | 
        radcompare ref/ttree.txt ttree.txt | 
| 56 | 
+ | 
 | 
| 57 | 
+ | 
test-wrapBSDF:  ttree.txt | 
| 58 | 
+ | 
        wrapBSDF -a t3 -u centimeter -f 'm=Test Guys;n=Bogus;t=2.54;h=20;w=45;' \ | 
| 59 | 
+ | 
-rb ttree.txt > testBSDF.xml | 
| 60 | 
+ | 
        radcompare ref/testBSDF.xml testBSDF.xml | 
| 61 | 
+ | 
        rm -f testBSDF.xml | 
| 62 | 
+ | 
 | 
| 63 | 
  | 
test.mtx:       ../renders/ref/rfmirror.mtx | 
| 64 | 
  | 
        rcollate -t ../renders/ref/rfmirror.mtx > test.mtx | 
| 65 | 
+ | 
 | 
| 66 | 
+ | 
ttree.txt: | 
| 67 | 
+ | 
        cnt 256 | rcalc -e '$$1=floor(sin(PI/256*recno)*40)' \ | 
| 68 | 
+ | 
| rttree_reduce -h -g 3 -r 3 -t 95 > ttree.txt | 
| 69 | 
  | 
 | 
| 70 | 
  | 
vwrays.txt: | 
| 71 | 
  | 
        vwrays -vts -vp 100 50 -75 -vo 10 -va 1000 -vh 160 -vv 130 \ |