ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/cv/Makefile
Revision: 1.2
Committed: Thu Mar 3 00:12:23 2022 UTC (3 years, 2 months ago) by greg
Branch: MAIN
CVS Tags: rad5R4, HEAD
Changes since 1.1: +5 -4 lines
Log Message:
test(checkBSDF,rad2mgf): fixes for Windows

File Contents

# User Rev Content
1 greg 1.2 # RCSid $Id: Makefile,v 1.1 2022/02/16 18:54:13 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     test-mgf2rad: sawtooth.mgf
35     mgf2rad sawtooth.mgf > sawtooth_rec.rad
36     radcompare -c# ref/sawtooth_rec.rad sawtooth_rec.rad
37     rm -f sawtooth_rec.rad
38    
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