ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/cal/Makefile
Revision: 1.1
Committed: Tue Feb 12 22:54:19 2019 UTC (6 years, 3 months ago) by greg
Branch: MAIN
Log Message:
Added basic tests for tools built in ray/src/cal directory

File Contents

# Content
1 # RCSid $Id$
2 #
3 # Tests for tools built in ray/src/cal directory.
4 #
5
6 all: test-cnt test-rcalc test-total test-histo test-rlam
7
8 clean:
9 rm -f cnt.txt rcalc.txt total.txt histo.txt rlam.txt
10
11 test-cnt: cnt.txt
12 radcompare ref/cnt.txt cnt.txt
13
14 test-rcalc: rcalc.txt
15 radcompare ref/rcalc.txt rcalc.txt
16
17 test-total: total.txt
18 radcompare ref/total.txt total.txt
19
20 test-histo: histo.txt
21 radcompare ref/histo.txt histo.txt
22
23 test-rlam: rlam.txt
24 radcompare ref/rlam.txt rlam.txt
25
26 cnt.txt:
27 cnt 5 3 2 > cnt.txt
28
29 rcalc.txt: cnt.txt
30 rcalc -o 'Test $${v1} $$(s1) $${v2}' \
31 -e 'v1=$$1*$$2;v2=($$2-$$1)*exp($$3)' -s s1=HEY cnt.txt > rcalc.txt
32
33 total.txt: cnt.txt
34 total cnt.txt > total.txt
35 total -l cnt.txt >> total.txt
36 total -u cnt.txt >> total.txt
37 total -m cnt.txt >> total.txt
38 total -s2.5 cnt.txt >> total.txt
39 total -3 -r cnt.txt >> total.txt
40
41 histo.txt: total.txt
42 histo 0 60 5 < total.txt > histo.txt
43
44 rlam.txt: total.txt cnt.txt histo.txt
45 rlam -in 5 total.txt cnt.txt histo.txt > rlam.txt