source: liacs/coco/assignment4/debug.sh@ 343

Last change on this file since 343 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

  • Property svn:executable set to *
File size: 369 bytes
Line 
1#!/bin/sh
2#
3# Trivial debug script, display test case, compile and run, and display
4# testcase again
5
6TESTFILE=${1-../tests/simple/correct1.p0}
7PROG="./comp"
8make all
9if [ $? -eq 0 ]; then
10 cat -n $TESTFILE
11 ARGS=" -w -O0 "
12 echo "===BEGIN Command: $PROG $ARGS < $TESTFILE==="
13 $PROG $ARGS < $TESTFILE
14 echo "===END Command: $PROG $ARGS < $TESTFILE==="
15 cat ./out.s
16fi
Note: See TracBrowser for help on using the repository browser.