ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/gen/Makefile
Revision: 1.6
Committed: Tue Jun 30 18:19:37 2020 UTC (3 years, 10 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4, rad5R3, HEAD
Changes since 1.5: +7 -2 lines
Log Message:
test(genblinds): added unit test for genblinds

File Contents

# Content
1 # RCSid $Id: Makefile,v 1.5 2019/02/02 00:18:38 greg Exp $
2 #
3 # Unit tests for tools built in src/gen but not covered by test/renders
4 #
5
6 all: test-gensky test-gendaymtx test-genbox test-genrev test-genworm \
7 test-genprism test-gensurf test-replmarks test-genblinds
8
9 clean:
10 rm -f gen*.rad replmarks.rad
11
12 test-replmarks: markers.rad
13 replmarks -s 1 -x dummy.rad rmod markers.rad \
14 | grep -v '^[ ]*#' > replmarks.rad
15 radcompare ref/replmarks.rad replmarks.rad
16 rm -f replmarks.rad
17
18 test-gensky:
19 gensky 11 15 14:21EST +s -g .25 -t 3.5 \
20 -a 40.7128 -o 74.006 > NYC11-15-14-21.rad
21 radcompare ref/NYC11-15-14-21.rad NYC11-15-14-21.rad
22 rm -f NYC11-15-14-21.rad
23
24 test-gendaymtx: test.wea
25 gendaymtx -r 90 -m 1 -g .3 .2 .1 -c .9 .9 1.2 test.wea > test.smx
26 radcompare ref/test.smx test.smx
27 rm -f test.smx
28
29 test-genbox:
30 genbox tmat tbox 1 2 3 -i -b .1 > genbox.rad
31 radcompare ref/genbox.rad genbox.rad
32 rm -f genbox.rad
33
34 test-genrev:
35 genrev tmat trev 'sin(2*PI*t)' '2+cos(2*PI*t)' 16 -s > genrev.rad
36 radcompare ref/genrev.rad genrev.rad
37 rm -f genrev.rad
38
39 test-genworm:
40 genworm tmat tworm '0' '5*sin(t)' '5*cos(t)' '.4-(.5-t)*(.5-t)' 8 > genworm.rad
41 radcompare ref/genworm.rad genworm.rad
42 rm -f genworm.rad
43
44 test-genprism:
45 genprism tmat tprism 8 0 5 4 5 4 4 24.5 4 24.5 3 30 1.5 30 22 0 22 \
46 -l 0 0 -1.5 -r .2 > genprism.rad
47 radcompare ref/genprism.rad genprism.rad
48 rm -f genprism.rad
49
50 test-gensurf:
51 gensurf tmat tsurf '15.5+x(theta(s),phi(t))' '10.5+y(theta(s),phi(t))' \
52 '30.75+z(theta(s),phi(t))' 4 15 -f basin.cal -s > gensurf.rad
53 radcompare ref/gensurf.rad gensurf.rad
54 rm -f gensurf.rad
55
56 test-genblinds:
57 genblinds mat blind 1.5 10 5 8 37 +r 2 > genblinds.rad
58 radcompare ref/genblinds.rad genblinds.rad
59 rm -f genblinds.rad