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