EECS 2031 Software Tools, Winter 2014

Lab 8

Cellphones and other electronic devices must be off while you are in the lab.

Background Scenario

The objective of this lab is to create a simple test framework for testing commandline application, such as the bathroom scale program created in the previous labs.

Objective

Now create a new Bourne Shell script that does the following.

Requirements

For the purpose of this lab, you do not need to worry about spaces or other special characters in filenames.

Here is an example set of input files, provided as a .zip archive: files.zip. It contains the files lab5.c (a purposefully broken version), 00.in, 00.out, 01.in, 01.out.

If you start your script with sh lab8 lab5 in the directory where you unpacked the above zip archive, you should get the following output, also provided as a file, expectedoutput.txt.

Running test 00
Test 00 passed
Running test 01
1c1
< Invalid times
---
> Invalid time
Test 01 failed

Hints: