Adapted from Austin Schwartz's scripts that he posted on project 2. https://gist.github.com/nawns/3befd88d5bdd39d43e96
These assume you'll be running from the root of the project (ie, alongside src
and bin
.) Have the tests inside p4tests/output
.
See the diagram at the bottom for the intended directory structure.
./test.sh t1.mj
Or a prettier version with side by side diff (requires sdiff)