Ahven - Unit Test Library for Ada
=================================
Ahven is a simple unit test library for Ada.
It is mostly written because I had a need for
one and the only existing unit test library,
AUnit, requires Ada 2005 and is a pure GPL project.

Instead, Ahven is Ada95 code and distributed
under ISC license, so it can be used with older
projects and does not infect GPL to the whole
project.

Building and Installing Ahven
=============================
For building Ahven source code you need Ada95
compiler, for example GNAT, Janus/Ada, or ObjectAda.
Optionally, you need AdaBrowse to build the documentation
and AdaControl to run coding style checks.

The default Makefile compiles code using gnatmake.
Internally, gnatmake is given a GNAT project file,
which works with GNAT GPL series and relatively
recent FSF GNAT. If you plan to compile Ahven
with GNAT 3.15p, you need to modify the project
file slightly and remove incompatible compiler flags.

If you use another compiler, you need to customize
the Makefile by yourself. Please note, that 'src'
directory has platform specific subdirectories 'unix'
and 'windows. You need to select the sources from one
of them also.

Install: GNAT
==================

When using GNAT, simple 'make' will compile the library
and the unit tests.

Command 'make check' will run the unit tests.

If you want to build the API documentation, you
need AdaBrowse tool. Command 'make docs' will
build the API documentation.

Installation happens by typing 'make install'
or 'make PREFIX=/my/ada/code install'. Alternatively,
you can simply copy the source code directory ('src')
to your project.

Install: Janus/Ada
==================

Build scripts for Janus/Ada are located at contrib\janusada.
First, you need to create a project file for the src directory.
This happens by copying libmain.adb to src and running pr_lib.bat
and makelib.bat scripts:
  copy contrib\janusada\libmain.adb src\
  cd src\
  ..\contrib\janusada\pr_lib.bat
  ..\contrib\janusada\makelib.bat
  
Note: When COrder asks for AHVEN#COMPAT package body, give
it windows\ahven-compat.adb.

Then you need to create a project file for test:
  cd ..\test
  ..\contrib\janusada\pr_test.bat
  ..\contrib\janusada\maketest.bat

Finally, you can compile the project by running ctst.bat from
the test directory and linking the object file with lkc:
  ctst
  cd ..\test_objects
  lkc tester

When compilation is finished, you have tester.exe in
the test_objects directory.
 
Project Info
============
Homepage:
 http://home.gna.org/ahven/

License:
 ISC (modified BSD license).
 See file LICENSE for more information.

Bug reports (a gna.org account is required for new reports):
 https://gna.org/bugs/?group=ahven

Author:
 Tero Koskinen <tero.koskinen@iki.fi>
