Lab 4 Test Suite

Programming Language Technology, 2021

Introduction

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

Preparations

You will only need to do this part once.

  1. Download lab4-testsuite.tar.gz.

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

  3. Enter the lab4-testsuite directory:
      $ cd lab4-testsuite
    

  4. Compile the test program using make or alternatively:
      $ ghc --make -o progs-test-lab4 progs-test-lab4.hs
    

Running the testsuite

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

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

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

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