To set up, copy the file below as Makefile
in your lab directory
make ex[N]
: Compile exercise N (e.g.make ex1
will takeex1.c
and generate anex1
executable)make test-ex[N]
: Run all available tests for exercise N (will only work if the tests are formatted liketestIO/ex1in1
). This will place results in theresults
folder, and automatically run thediff
commands. If it is fails, it will exit with "Error 123" and show your result on the left, and the offical result on the right. If you need to further compare the results, you can rundiff -y results/ex1in1 testIO/ex1out1
(for whatever the test number is).