| 1 |
greg |
1.2 |
# RCSid $Id$ |
| 2 |
greg |
1.1 |
# |
| 3 |
|
|
# Unit tests for tools built in src/util but not covered by test/renders |
| 4 |
|
|
# |
| 5 |
|
|
|
| 6 |
greg |
1.2 |
all: test-vwright test-getinfo test-rcollate test-rmtxop test-dctimestep \ |
| 7 |
|
|
test-genskyvec |
| 8 |
greg |
1.1 |
|
| 9 |
|
|
clean: |
| 10 |
|
|
rm -f test.mtx |
| 11 |
|
|
|
| 12 |
|
|
test-vwright: test.vf |
| 13 |
|
|
vwright -vf test.vf 3.5 > vwright.txt |
| 14 |
|
|
radcompare ref/vwright.txt vwright.txt |
| 15 |
|
|
rm -f vwright.txt |
| 16 |
|
|
|
| 17 |
|
|
test-getinfo: test.mtx |
| 18 |
|
|
getinfo -a Guppies "Fredo the Frog" < test.mtx | getinfo > getinfo.txt |
| 19 |
|
|
radcompare ref/getinfo.txt getinfo.txt |
| 20 |
|
|
rm -f getinfo.txt |
| 21 |
|
|
|
| 22 |
|
|
test-rmtxop: test.mtx |
| 23 |
|
|
rmtxop -ff -c .3 .9 .2 test.mtx -c .7 .2 .3 -t test.mtx > rmtxop.mtx |
| 24 |
|
|
radcompare ref/rmtxop.mtx rmtxop.mtx |
| 25 |
|
|
rm -f rmtxop.mtx |
| 26 |
|
|
|
| 27 |
|
|
test-rcollate: test.mtx |
| 28 |
|
|
radcompare ref/test.mtx test.mtx |
| 29 |
|
|
|
| 30 |
|
|
test.mtx: ../renders/ref/rfmirror.mtx |
| 31 |
|
|
rcollate -t ../renders/ref/rfmirror.mtx > test.mtx |
| 32 |
|
|
|
| 33 |
greg |
1.2 |
test-genskyvec: test-dctimestep |
| 34 |
|
|
|
| 35 |
greg |
1.1 |
test-dctimestep: test.mtx |
| 36 |
|
|
gensky 3 21 10:15PST +s -g .3 -g 2.5 -a 36 -o 124 \ |
| 37 |
|
|
| genskyvec -m 1 -c .92 1.03 1.2 \ |
| 38 |
|
|
| dctimestep '!rmtxop -ff -t test.mtx' > dctimestep.mtx |
| 39 |
|
|
radcompare ref/dctimestep.mtx dctimestep.mtx |
| 40 |
|
|
rm -f dctimestep.mtx |