home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
pub
/
users
/
Harry
/
compilers
/
p3
/
run
< prev
next >
Wrap
Text File
|
2005-10-19
|
604b
|
27 lines
#!/bin/sh
#
# Use this shell script to test your program.
#
# Use this script from a directory that contains the "*.class" files and a
# subdirectory "tst" containing files such as
# test01.pcat
# test01.out.bak
# test01.err.bak
#
# Type:
# run test01
#
# It will first run "main" to create files:
# test01.out
# test01.err
#
# It will then print any differences between your output/error files
# and the pre-existing ".bak" output/error files.
#
echo $1:
java Main < tst/$1.pcat 1> tst/$1.out 2> tst/$1.err
diff -w tst/$1.out.bak tst/$1.out
diff -w tst/$1.err.bak tst/$1.err
rm tst/$1.out
rm tst/$1.err