#!/bin/bash

# This only draws our attention to tests that fail, which will need some work
# to be done on the parser...

# a known problem is that semicolons in comments should have been ignored.
# there are other problems which these tests will highlight:

# '{' comments with no '}'

# data that follows the %endofprogram/%endoffile:
#
# %endofprogram
# $ imp unwinding
# $ link unwinding
#

# This rather broken syntax that imp77 accepts sort-of by accident...
#
# %ownbyteintegerarray char(0:133) = ;  !input line
# 10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
#

regress () {
  # Testing the new parser that's sitting in the wings...
  ~/github/uparse-main/lang/imp77/imp77 ~/src/i2c/regression-compile/$1.imp
  if [ $? != 0 ] ; then
    if [ -f "`which banner`" ] ; then
        banner $1
    elif [ -f ./banner ] ; then
        ./banner $1
    fi  
  fi
}

regress nrimp10s-77
regress allimpc1-77
regress imp918s
regress chimp
regress pass1
regress bigtest
regress hal7502
regress asm6809
regress skimp77
regress skimpais
regress soaps-77
regress wumpus
regress gpm
regress check
regress shiftprecbug
regress vax-pass1
regress vax-pass2
regress vax-pass3
regress compare
regress imp22g-77
regress shiftadd
regress recordmap
regress badfor
regress decode-77
regress labscope
regress testprocparam
regress syscall
regress asems412
regress comp412
regress gens400
regress hal70
regress chimps
regress EVENTS
regress nminimo
regress gammon
regress bcpls
regress casterr
regress addsuba
regress precedence-rainer
regress unwinding
regress array2d
regress badsignal
regress haunt
regress random
regress restests
