#!/bin/sh # # Trivial debug script, display test case, compile and run, and display # testcase again TESTFILE=${1-../tests/simple/correct1.p0} PROG="./comp" make if [ $? -eq 0 ]; then cat -n $TESTFILE ARGS=" -w -O0 " echo "===BEGIN Command: $PROG $ARGS < $TESTFILE===" $PROG $ARGS < $TESTFILE echo "===END Command: $PROG $ARGS < $TESTFILE===" ARGS=" -w -O1 " echo "===BEGIN Command: $PROG $ARGS < $TESTFILE===" $PROG $ARGS < $TESTFILE echo "===END Command: $PROG $ARGS < $TESTFILE===" fi