#!/bin/sh
#
# Make regression-test loads for the CUPL compiler front end
#
TESTCUPL="cubic fancyquad poly11 power prime quadratic random rise simplequad squares sum"
TESTCORC="factorial gasbill hearts powercorc quadcorc simplecorc sumsquares"

trap "rm -f testcupl$$; exit 0" EXIT

rm -f *.test

for x in $TESTCUPL
do
	echo "Making ${x}.test from ${x}.cupl..."
	../cupl -v1 ${x}.cupl >${x}.test 2>&1
done
for x in $TESTCORC
do
	echo "Making ${x}.test from ${x}.corc..."
	../cupl -v1 ${x}.corc >${x}.test 2>&1
done

chmod -w *.test

echo "Done"

# regress ends here

