ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/cal/Makefile
(Generate patch)

Comparing ray/test/cal/Makefile (file contents):
Revision 1.1 by greg, Tue Feb 12 22:54:19 2019 UTC vs.
Revision 1.2 by greg, Mon Jun 29 22:46:22 2020 UTC

# Line 3 | Line 3
3   # Tests for tools built in ray/src/cal directory.
4   #
5  
6 < all:    test-cnt test-rcalc test-total test-histo test-rlam
6 > all:    test-cnt test-rcalc test-total test-histo test-rlam \
7 > test-tabfunc test-rsplit test-ev
8  
9   clean:
10 <        rm -f cnt.txt rcalc.txt total.txt histo.txt rlam.txt
10 >        rm -f cnt.txt rcalc.txt total.txt histo.txt rlam.txt \
11 > tabfunc.cal tabfunc.txt cfirst.txt cthird.txt evout.txt
12  
13   test-cnt:       cnt.txt
14          radcompare ref/cnt.txt cnt.txt
# Line 23 | Line 25 | test-histo:    histo.txt
25   test-rlam:      rlam.txt
26          radcompare ref/rlam.txt rlam.txt
27  
28 + test-tabfunc:   tabfunc.txt
29 +        radcompare ref/tabfunc.txt tabfunc.txt
30 +
31 + test-rsplit:    cfirst.txt cthird.txt
32 +        radcompare ref/cfirst.txt cfirst.txt
33 +        radcompare ref/cthird.txt cthird.txt
34 +
35 + test-ev:        evout.txt
36 +        radcompare ref/evout.txt evout.txt
37 +
38   cnt.txt:
39          cnt 5 3 2 > cnt.txt
40  
# Line 43 | Line 55 | histo.txt:     total.txt
55  
56   rlam.txt:       total.txt cnt.txt histo.txt
57          rlam -in 5 total.txt cnt.txt histo.txt > rlam.txt
58 +
59 + tabfunc.txt:    tabfunc.cal
60 +        cnt  50 | rcalc -f tabfunc.cal -e 'xv=$$1+5' \
61 + -e '$$1=cfirst(xv);$$2=csecond(xv);$$3=cthird(xv)' > tabfunc.txt
62 +
63 + tabfunc.cal:    histo.txt
64 +        tabfunc -i cfirst csecond cthird < histo.txt > tabfunc.cal
65 +
66 + cfirst.txt cthird.txt:  tabfunc.txt
67 +        rsplit -on 11 -f '-t ' - . cthird.txt < tabfunc.txt > cfirst.txt
68 +
69 + evout.txt:
70 +        ev 'sin(0.9353)' 'sqrt(2)' 'log(atan(.5)+3.917)' > evout.txt

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines