Blame tests/README

Packit b099d7
/* $XConsortium: README /main/5 1996/07/15 14:20:13 drk $ */
Packit b099d7
1.  Test Suite Organization and Procedures
Packit b099d7
Packit b099d7
This readme presents an overview of the organization of the
Packit b099d7
OSF/Motif Test Suite and the procedures for building and
Packit b099d7
running the tests.  The testing procedures have changed sub-
Packit b099d7
stantially since the 1.2 release of Motif.  We think you
Packit b099d7
will find the new procedures more intuitive and easier to
Packit b099d7
use, but please familiarize yourself with them by reading
Packit b099d7
this guide before you run the new tests.
Packit b099d7
Packit b099d7
These test suites are the test suites that we used to test
Packit b099d7
OSF/Motif prior to the 2.0 release.  We provide them for
Packit b099d7
your convenience, and expect you may have the following uses
Packit b099d7
for them, although you may have other uses for them.
Packit b099d7
Packit b099d7
   * To examine our testing procedures
Packit b099d7
Packit b099d7
   * To test your implementation of OSF/Motif
Packit b099d7
Packit b099d7
   * To see examples of working code spanning the range of
Packit b099d7
     OSF/Motif
Packit b099d7
Packit b099d7
   * To check for bugs in the Motif source that may be caus-
Packit b099d7
     ing problems in your code
Packit b099d7
Packit b099d7
1.1  Identifying the Tests
Packit b099d7
Packit b099d7
Some of the areas of OSF/Motif Test Suite include:
Packit b099d7
Packit b099d7
   * The OSF/Motif Resource Manager (Mrm) Tests
Packit b099d7
Packit b099d7
   * The OSF/Motif Toolkit Tests
Packit b099d7
Packit b099d7
   * The OSF/Motif XmString Tests
Packit b099d7
Packit b099d7
   * The OSF/Motif Window Manager (mwm) Tests
Packit b099d7
Packit b099d7
   * The OSF/Motif User Interface Language (uil) Tests
Packit b099d7
Packit b099d7
   * The OSF/Motif Drag and Drop (DragAndDrop) Tests
Packit b099d7
Packit b099d7
   * The OSF/Motif Internationalization (I18N) Tests
Packit b099d7
Packit b099d7
   * The OSF/Motif Universal Transfer Model (UTM) Tests
Packit b099d7
Packit b099d7
1.2  Locating the Tests
Packit b099d7
Packit b099d7
The Motif 2.0 release software is shipped with the tests
Packit b099d7
located one level below the top directory.  Unless you move
Packit b099d7
the tests to another location after installing the Motif
Packit b099d7
software, you should have no trouble locating them.
Packit b099d7
Packit b099d7
Throughout this document, we use the path ./tests to specify
Packit b099d7
the path to the Test Suite.  The ./ indicates the testing
Packit b099d7
tree root and is not an actual path designation.  For exam-
Packit b099d7
ple, you might install the release software at a location
Packit b099d7
called /source/Motif.  In that case, the path ./tests
Packit b099d7
translates to /source/Motif/tests.
Packit b099d7
Packit b099d7
The Test Suite consists of a hierarchy of directories and
Packit b099d7
files; each directory has subordinate directories and files
Packit b099d7
relevant to that content area.
Packit b099d7
Packit b099d7
The different test sets are located in the Mrm, Toolkit,
Packit b099d7
XmString, mwm, and uil subdirectories of ./tests.
Packit b099d7
Packit b099d7
1.3  Building the Tests
Packit b099d7
Packit b099d7
The OSF/Motif Release Notes specify how to build the
Packit b099d7
OSF/Motif software.  If you follow this process, the tests
Packit b099d7
can be built along with other build components.
Packit b099d7
Packit b099d7
However, be aware that the test suites are very large and
Packit b099d7
can use large amounts of disk space when compiled on some
Packit b099d7
machines.  Consequently, you may prefer to build them indi-
Packit b099d7
vidually prior to running the tests.
Packit b099d7
Packit b099d7
If you build this directory separate from the rest of Motif,
Packit b099d7
make sure you do a make wml before you doing a make depend
Packit b099d7
in this directory.  There are dependencies between files
Packit b099d7
created by the make wml process and the test files.
Packit b099d7
Packit b099d7
1.4  Running the Tests
Packit b099d7
Packit b099d7
There are a variety of procedures for running the tests in
Packit b099d7
the Test Suite.  In general, tests are run individually
Packit b099d7
by hand, following instructions provided in a separate win-
Packit b099d7
dow for each test.  Scripts are provided for running a
Packit b099d7
number of test in series.  These scripts often provide some
Packit b099d7
initialization for the tests.  Any necessary initialization
Packit b099d7
is also described where appropriate in this guide.
Packit b099d7
Packit b099d7
In order to run the tests you should have read, write, and
Packit b099d7
execute permission in the test suite tree.  If you do not
Packit b099d7
have complete permissions, you are not able to run all
Packit b099d7
the tests correctly.