ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/util/Makefile
Revision: 1.4
Committed: Tue Jun 30 03:34:15 2020 UTC (4 years, 10 months ago) by greg
Branch: MAIN
Changes since 1.3: +3 -1 lines
Log Message:
feat(rcode_depth,rcode_ident): Added reverse-conversion tests

File Contents

# User Rev Content
1 greg 1.4 # RCSid $Id: Makefile,v 1.3 2020/06/30 01:23:03 greg Exp $
2 greg 1.1 #
3     # Unit tests for tools built in src/util but not covered by test/renders
4     #
5    
6 greg 1.2 all: test-vwright test-getinfo test-rcollate test-rmtxop test-dctimestep \
7 greg 1.3 test-genskyvec test-vwrays test-glarendx \
8     test-rcode_norm test-rcode_depth test-rcode_ident
9 greg 1.1
10     clean:
11 greg 1.3 rm -f test.mtx vwrays.txt
12 greg 1.1
13     test-vwright: test.vf
14     vwright -vf test.vf 3.5 > vwright.txt
15     radcompare ref/vwright.txt vwright.txt
16     rm -f vwright.txt
17    
18 greg 1.3 test-vwrays: vwrays.txt
19     radcompare ref/vwrays.txt vwrays.txt
20    
21 greg 1.1 test-getinfo: test.mtx
22     getinfo -a Guppies "Fredo the Frog" < test.mtx | getinfo > getinfo.txt
23     radcompare ref/getinfo.txt getinfo.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
30    
31     test-rcollate: test.mtx
32     radcompare ref/test.mtx test.mtx
33    
34 greg 1.3 test-rcode_ident: idents.txt
35     rcode_ident -8 -x 20 -y 10 idents.txt | radcompare ref/idents.idx -
36 greg 1.4 rcode_ident -r -H ref/idents.idx | radcompare idents.txt -
37 greg 1.3
38     test-rcode_norm: vwrays.txt
39     rcode_norm -hi -x 40 -y 15 vwrays.txt | radcompare ref/norms.nrm -
40    
41     test-rcode_depth: depths.txt
42     rcode_depth -x 20 -y 10 -d 150/inch depths.txt | radcompare -h ref/depths.dpt -
43 greg 1.4 rcode_depth -r -Ho ref/depths.dpt | radcompare -w depths.txt -
44 greg 1.3
45     test-glarendx: glaresrc.txt
46     glarendx -t guth_vcp glaresrc.txt | radcompare ref/guth_vcp.txt -
47     glarendx -t cie_cgi glaresrc.txt | radcompare ref/cie_cgi.txt -
48     glarendx -t ugr glaresrc.txt | radcompare ref/ugr.txt -
49     glarendx -t brs_gi glaresrc.txt | radcompare ref/brs_gi.txt -
50     glarendx -t dgi glaresrc.txt | radcompare ref/dgi.txt -
51     glarendx -t guth_dgr glaresrc.txt | radcompare ref/guth_dgr.txt -
52     glarendx -t vert_dir glaresrc.txt | radcompare ref/vert_dir.txt -
53     glarendx -t vert_ill glaresrc.txt | radcompare ref/vert_ill.txt -
54     glarendx -t vert_ind glaresrc.txt | radcompare ref/vert_ind.txt -
55    
56 greg 1.1 test.mtx: ../renders/ref/rfmirror.mtx
57     rcollate -t ../renders/ref/rfmirror.mtx > test.mtx
58    
59 greg 1.3 vwrays.txt:
60     vwrays -vts -vp 100 50 -75 -vo 10 -va 1000 -vh 160 -vv 130 \
61     -x 20 -y 20 -vu 0 -1 0 -vd .358 -.8851 1.152 > vwrays.txt
62    
63 greg 1.2 test-genskyvec: test-dctimestep
64    
65 greg 1.1 test-dctimestep: test.mtx
66     gensky 3 21 10:15PST +s -g .3 -g 2.5 -a 36 -o 124 \
67     | genskyvec -m 1 -c .92 1.03 1.2 \
68     | dctimestep '!rmtxop -ff -t test.mtx' > dctimestep.mtx
69     radcompare ref/dctimestep.mtx dctimestep.mtx
70     rm -f dctimestep.mtx