| 1 |
# RCSid $Id: Makefile,v 1.2 2022/03/03 00:12:23 greg Exp $ |
| 2 |
# |
| 3 |
# Unit tests for tools built in src/cv |
| 4 |
# |
| 5 |
|
| 6 |
# Leaving off test-checkBSDF due to random sampling issues |
| 7 |
|
| 8 |
all: test-obj2rad test-robjutil test-mgf2rad test-rad2mgf |
| 9 |
|
| 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 |
radcompare -n -c# ref/sawtooth.mgf sawtooth.mgf |
| 33 |
|
| 34 |
test-mgf2rad: testspecmat.mgf sawtooth.mgf |
| 35 |
mgf2rad -s testspecmat.mgf sawtooth.mgf > reconv.rad |
| 36 |
radcompare -c# ref/reconv.rad reconv.rad |
| 37 |
rm -f reconv.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 |