Hello. I've been trying to get the testsuite to work, but I've run into all kinds of issues.
My lab3 file looks like this:
#!/bin/sh
dir=`dirname $0`
filename=${@##*/}
filedir=${@%${filename}}
file=${@%.*}
file=${file%.*}
#file=${file##*/}.j
java -cp "$dir:$CLASSPATH" lab3 "$@" > ${file}.j
java -jar jasmin.jar -d $filedir ${file}.j
And when I run it from my lab3/ directory, it seems to output .j files and compile them to .class files in the correct directory. However, when I run the testsuite, I get the NoClassDefFoundError. If I then check my lab3/testsuite/good/ directory, I can see that there are .j files for every .cc file, however they are all _empty_ and there are no matching .class files (I assume since the .j files are empty?).
I'm lost! Anyone have any clue what to do?