source: liacs/coco/assignment3/debug.sh@ 57

Last change on this file since 57 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: 498 bytes
RevLine 
[2]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
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 ARGS=" -w -O1 "
16 echo "===BEGIN Command: $PROG $ARGS < $TESTFILE==="
17 $PROG $ARGS < $TESTFILE
18 echo "===END Command: $PROG $ARGS < $TESTFILE==="
19fi
Note: See TracBrowser for help on using the repository browser.