[an error occurred while processing this directive]

Test Software for C Modules


Introduction

The test software that is described in The web pages listed below describe modules of a program named Test that is designed for testing the Table and TableIterator modules. The "Test Module User Specifications" page describes the use of this program.

The software is designed so that it is easily adapted to testing other kinds of modules. The "Test Module Implementation Specifications" page describes how the program is modified for testing the Table module. Note: this documentation, and other implementation specifications, is not complete.

The Test program is a line-oriented command interpreter. Lines are fetched by the LineStream module, which can read from the terminal or from files. It provides functions for controlling echoing and changing to different input files during execution.

The LineScanner module decomposes lines into tokens. This module has functions for checking the types of tokens and evaluating them.

The CommandTable module executes commands. It is designed so that testers can write procedures for executing commands and store them in a command table. When writing these procedures, testers make use of the LineScanner functions for accessing the command arguments.

Module Specifications

[an error occurred while processing this directive]