head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	96.12.02.18.02.41;	author nathanw;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Add test programs, input files, output files, and tools for regression-testing.
@
text
@#!/bin/sh
TOP=../..
if [ $# -eq 0 ]; then
 COMPILER="${TOP}/src/compiler -opt"
else
 COMPILER="$@@"
fi 
echo $COMPILER

for f in `ls *.st *.ma`; do
  base=`echo $f | sed 's/\..*//'`
  echo $base
  $COMPILER $COMPILEROPTS $f
  if [ -f ${base}.in ]; 
  then
    spim -file ${base}.lst < ${base}.in | diff -  ${base}.out 
  else
    spim -file ${base}.lst | diff - ${base}.out 
  fi
done
@
