
This directory contains the test files for the Thor code. Before checking
in the code, you should cd to this directory and then execute
"thortest.tcl". The test suite is written using "Expect". Expect is a
Tcl-based scripting language that is very useful for testing with multiple
processes (You can take a look at the book for Expect; it belongs to the
group). Note that if you have interactive tests, you *should* not convert
them to non-interactive test cases. Expect lets you handle them quite
easily. See the file "inquir.tcl" file for such examples.

The following files are currently present in this directory (update this
list when you add new files):

thortest.tcl: The main file that is executed and also has generic
	      routines that are useful for test cases in general
inquir.tcl:   Test files with the inquir database

oo7.tcl:      Test files with the OO7 database


There is a script that runs each test case separately so that one test file
does not get burnt due to resources not being freed up by a previous test
file. If you want to ad a test case, add the name of the file in "runtest".


Requirements for each test file
-------------------------------

1. It should destroy all the processes it creates before finishing (use the
"close_process" procedure).

2. It should also preserve the current directory from where it started (in
case it changes it during the script).

3. At the end of each test, a (hopefully meaningful) message should be
printed so that the user knows what tests have been passed, e.g.
	"Test: Whether object updates become persistent ... ok"

4. Some tests such as those for OO7 are slow. So print out intermediate
messages if possible so that the user knows that either the program or the
script is not in an infinite loop.
