- Add success/failure message to tests. These are a little hard to read since the commands
make
is running are intermingled with the output:
javac tests/Constants.java
java -cp tests Constants > tests/Constants-expected.txt
./jvm tests/Constants.class > tests/Constants-actual.txt
diff -u tests/Constants-expected.txt tests/Constants-actual.txt | tee tests/Constants-result.txt; \
name='test Constants'; \
if [ -s tests/Constants-result.txt ]; then echo FAILED $name. Aborting.; false; \
else echo PASSED $name.; fi
PASSED test Constants.
java -cp tests Part3 > tests/Part3-expected.txt
./jvm tests/Part3.class > tests/Part3-actual.txt
diff -u tests/Part3-expected.txt tests/Part3-actual.txt | tee tests/Part3-result.txt; \
name='test Part3'; \
if [ -s tests/Part3-result.txt ]; then echo FAILED $name. Aborting.; false; \
else echo PASSED $name.; fi
--- tests/Part3-expected.txt 2019-09-28 11:16:28.111952000 -0700
+++ tests/Part3-actual.txt 2019-09-28 11:16:28.134930000 -0700
@@ -1 +1 @@
-10014
+10021
FAILED test Part3. Aborting.
make: *** [Makefile:37: tests/Part3-result.txt] Error 1
- Rename
Code_attribute
to code_t
and add comment about violating naming convention
- Add comment about how
args
would be passed to main()
- Remove bitwise operator mnemonics
- Henry's change renaming "lab" to "project"