#!/bin/sh

# Run the tests
set -x





mv -f building.pix building.pix.$$
mv -f building.log building.log.$$
../rt/rt -M -f768 -o building.pix ../db/building.g newfloor1 newfloor2 LIGHT \
	2> building.log <<EOF
1.800000000e+03
6.345012207e+02 8.633251343e+02 8.310771484e+02
-5.735764503e-01 8.191520572e-01 0.000000000e+00 
0.000000000e+00 -3.461886346e-01 -2.424038798e-01 9.063078165e-01 
0.000000000e+00 7.424039245e-01 5.198368430e-01 4.226182699e-01 
0.000000000e+00 0.000000000e+00 0.000000000e+00 0.000000000e+00 
1.000000000e+00 
EOF
cmp ../pix/building.pix building.pix
if test $? = 0
then
	echo building.pix:  RIGHT answers
else
	echo building.pix:  WRONG WRONG WRONG
fi

echo Testing complete, check your times against the VAX log files in ../pix/.
