Lab 2 Test Suite

Programming Languages Technology Course 2015
Bjorn Bringert (2007)


Before you submit lab 2, your solution must pass the testsuite. This document describes how to obtain and use this testsuite.

NOTE: After some time, we may chose to add more test cases. We recommend that you use the latest version of the test suite to check your solution before submission. This helps you catch errors that you would otherwise have to wait for the grader to spot.

If you encounter problems, send mail to the teachers or to the course Google group.


You will only need to do this this part once.

  1. Download lab2-testsuite.tar.gz.

  2. Unpack the downloaded file:
      $ tar -zxf lab2-testsuite.tar.gz

  3. Enter the testsuite directory:
      $ cd testsuite

  4. Compile the test program:
      $ ghc -threaded --make -o progs-test-lab2 progs-test-lab2.hs

Running the testsuite

This is what you need to do to test your grammar.

  1. Enter the testsuite directory (if you are not there already):
      $ cd testsuite

  2. Run progs-test-lab2 with the path to the directory where your solution is located:

      $ ./progs-test-lab2 path/to/your/solution/