Greg testing framework - Installing Greg

Go to the first, previous, next, last section, table of contents.

# Installing Greg

### Requirements

Greg needs to have Guile installed. It should work with Guile-1.2 or later (it has been tested with 1,2 and 1.3). You need to have the guile program in your path in order for the installation process to determine the proper locations for things.

You can get Guile from any GNU ftp site.

You can get Greg either as part of the GNUstep-Guile package at http://www.tiptree.demon.co.uk/gstep/guile/gstep-guile.tar.gz or separately at http://www.tiptree.demon.co.uk/gstep/guile/greg.tar.gz

### Building

To build Greg -

Type ./configure in the main Greg directory to configure for your system.

Once configuration is complete, go into the `Library' subdirectory and type make install to build and install things.

You should end up with -

A compiled module, which can be dynamically linked into Guile with (use-modules (greg compiled)),

a module defining Guile procedures and variables providing the main test framework, which can be accessed using (use-modules (ice-9 greg)),

and a Guile script that you can use to run tests from the unix command-line (greg).

You MUST install Greg before you attempt to use it (or run it's self-tests) because the Guile modules making it up must be in place in the standard Guile directories before Greg can work.

Once Greg is installed, you can type make check in the Tests directory to get Greg to test itself.

You can type make in the Documentation directory to build the documentation in info, html and dvi formats.

NB.
You must have the makeinfo program installed to build the documentation in info format
You must have the texi2html program installed to build the documentation in html format
You must have the texi2dvi program installed to build the documentation in dvi format

### Problems

Greg is quite simple, so there is not much to go wrong with it. Of course, you must have a working copy of Guile installed, and you need to make sure you ran the configure script to configure Greg for your system, and installed Greg, but after that, most stuff should just work.

The single area where you are most likely to encounter problems is if you are using Greg to test external programs run in a child process using the (greg-child) procedure. The C code for this procedure is quite system-dependent and has only been tested on a few operating systems. If you have problems with this, look at greg.c in the Library directory. Please attempt to make a patch to fix things on your operating-system and send it to me - <richard@brainstorm.co.uk>

Go to the first, previous, next, last section, table of contents.