EECS 2031 Software Tools, Winter 2014

Lab 9

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. This time you have to make your shell script is now robust towards filenames containing spaces and other special symbols. All changes relative to lab8 are marked by *** below.

Objective

What to do

First, create a new directory for this lab Now create a ANSI-C program, called lab9gen.c, that does the following

Requirements

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

Requirements

If you start the program lab9gen, capture it's standard output into a file, and then run the lab9 shell script, you should see a lot of failed tests in the output, similar to the output for test 01 in the previous lab. If you fix the spelling error in the version of lab5.c provided for the previous lab, and recompile that, you should see a lot of passed tests.

Hints: