| 1 |
# RCSid $Id: Makefile,v 1.10 2022/02/16 17:59:49 greg Exp $
|
| 2 |
#
|
| 3 |
# Unit tests for tools built in src/cv
|
| 4 |
#
|
| 5 |
|
| 6 |
all: test-checkBSDF test-obj2rad test-robjutil \
|
| 7 |
test-mgf2rad test-rad2mgf
|
| 8 |
|
| 9 |
clean:
|
| 10 |
rm -f checkBSDFout.txt rounded_box_o2r.rad rounded_box_ru.rad \
|
| 11 |
sawtooth.mgf rounded_box.obj
|
| 12 |
|
| 13 |
test-checkBSDF: ../renders/blinds20c.xml ../renders/sawtooth.xml
|
| 14 |
checkBSDF ../renders/blinds20c.xml ../renders/sawtooth.xml \
|
| 15 |
> checkBSDFout.txt
|
| 16 |
radcompare ref/checkBSDFout.txt checkBSDFout.txt
|
| 17 |
rm -f checkBSDFout.txt
|
| 18 |
|
| 19 |
test-obj2rad: rounded_box.obj
|
| 20 |
obj2rad rounded_box.obj > rounded_box_o2r.rad
|
| 21 |
radcompare -c# ref/rounded_box_o2r.rad rounded_box_o2r.rad
|
| 22 |
rm -f rounded_box_o2r.rad
|
| 23 |
|
| 24 |
test-robjutil: rounded_box.obj
|
| 25 |
robjutil -n +r +T -x "-ry 10 -t -3 -2 0.5" rounded_box.obj \
|
| 26 |
> rounded_box_ru.rad
|
| 27 |
radcompare -c# ref/rounded_box_ru.rad rounded_box_ru.rad
|
| 28 |
rm -f rounded_box_ru.rad
|
| 29 |
|
| 30 |
test-rad2mgf: sawtooth.mgf
|
| 31 |
radcompare -c# ref/sawtooth.mgf sawtooth.mgf
|
| 32 |
|
| 33 |
test-mgf2rad: sawtooth.mgf
|
| 34 |
mgf2rad sawtooth.mgf > sawtooth_rec.rad
|
| 35 |
radcompare -c# ref/sawtooth_rec.rad sawtooth_rec.rad
|
| 36 |
rm -f sawtooth_rec.rad
|
| 37 |
|
| 38 |
sawtooth.mgf: sawtooth.rad sawtooth.pts
|
| 39 |
rad2mgf sawtooth.rad > sawtooth.mgf
|
| 40 |
|
| 41 |
rounded_box.obj:
|
| 42 |
genbox plain box 5 8 3.5 -r .2 -n 6 -s -o > rounded_box.obj
|