ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/cv/Makefile
Revision: 1.3
Committed: Fri May 23 19:42:48 2025 UTC (5 days, 23 hours ago) by greg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +5 -5 lines
Log Message:
test(mgf2rad): Added test of spectral output with WGMDfunc

File Contents

# User Rev Content
1 greg 1.3 # RCSid $Id: Makefile,v 1.2 2022/03/03 00:12:23 greg Exp $
2 greg 1.1 #
3     # Unit tests for tools built in src/cv
4     #
5    
6 greg 1.2 # Leaving off test-checkBSDF due to random sampling issues
7    
8     all: test-obj2rad test-robjutil test-mgf2rad test-rad2mgf
9 greg 1.1
10     clean:
11     rm -f checkBSDFout.txt rounded_box_o2r.rad rounded_box_ru.rad \
12     sawtooth.mgf rounded_box.obj
13    
14     test-checkBSDF: ../renders/blinds20c.xml ../renders/sawtooth.xml
15     checkBSDF ../renders/blinds20c.xml ../renders/sawtooth.xml \
16     > checkBSDFout.txt
17     radcompare ref/checkBSDFout.txt checkBSDFout.txt
18     rm -f checkBSDFout.txt
19    
20     test-obj2rad: rounded_box.obj
21     obj2rad rounded_box.obj > rounded_box_o2r.rad
22     radcompare -c# ref/rounded_box_o2r.rad rounded_box_o2r.rad
23     rm -f rounded_box_o2r.rad
24    
25     test-robjutil: rounded_box.obj
26     robjutil -n +r +T -x "-ry 10 -t -3 -2 0.5" rounded_box.obj \
27     > rounded_box_ru.rad
28     radcompare -c# ref/rounded_box_ru.rad rounded_box_ru.rad
29     rm -f rounded_box_ru.rad
30    
31     test-rad2mgf: sawtooth.mgf
32 greg 1.2 radcompare -n -c# ref/sawtooth.mgf sawtooth.mgf
33 greg 1.1
34 greg 1.3 test-mgf2rad: testspecmat.mgf sawtooth.mgf
35     mgf2rad -s testspecmat.mgf sawtooth.mgf > reconv.rad
36     radcompare -c# ref/reconv.rad reconv.rad
37     rm -f reconv.rad
38 greg 1.1
39     sawtooth.mgf: sawtooth.rad sawtooth.pts
40     rad2mgf sawtooth.rad > sawtooth.mgf
41    
42     rounded_box.obj:
43     genbox plain box 5 8 3.5 -r .2 -n 6 -s -o > rounded_box.obj