tkoskine / Ahven (http://ahven.sourceforge.net/)

Unit test library for Ada 95

Clone this repository (size: 587.3 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/tkoskine/ahven/

 NB: This is not the latest revision. For the latest view, go to tip.

View at rev
Ahven /
filename size last modified message
doc  
examples  
src  
test  
tools  
LICENSE 831 B 3 years ago Initial version of the library.
Makefile 2.1 KB 2 years ago Rename 'test' target to 'check' so it does not conflict with
NEWS 418 B 2 years ago Update NEWS (release-1.0 date).
README 1.2 KB 2 years ago Small tweaks to explain compilation.
ROADMAP 435 B 2 years ago Update ROADMAP. (I have implemented test execution time…
adabrowse.conf 34 B 3 years ago Add API document generation by using AdaBrowse.
ahven.gpr 1.5 KB 2 years ago Remove warnings reported after enabling the -gnatwa option.
ahven.specs 162 B 3 years ago Rework result reporting to use listeners.
ahven_lib.gpr 266 B 2 years ago Add 'ahven_lib.gpr', which can be included from other…
ahven_tests.gpr 1.3 KB 2 years ago Rename 'obj' directory to 'objects' so the project can be…

README

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 Ada 95
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.

Installation: 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.

Installation: Janus/Ada
=======================

Build scripts for Janus/Ada are located in the 'janusada' directory.
To compile the source code, you need to tweak file 'prepare.bat'
and then run 'prepare.bat', 'update.bat', and 'compile.bat' from
the top level directory. That is the same directory where this README
file is located.

  janusada\prepare.bat
  janusada\update.bat
  janusada\compile.bat
  
When compilation is finished, you have tap_test.exe in the 'test_obj'
directory.
 
Project Info
============
Homepage:
 http://ahven.sourceforge.net/

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

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