-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
74 lines (47 loc) · 2.35 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
What is TINU?
-------------
TINU is a unit testing framework for C and C++ (through a wrapper) languages.
It was designed to give the programmer as much helpful information as neccessary,
so that errors found can be traced down and fixed as fast as possible. Unfortunately
this makes tinu a bit bigger than other unit test frameworks.
How to compile?
---------------
TINU uses autoconf and automake for building. However you don't need to have them
installed (only if you intend to modify the Makefiles and the configure files).
Compiling can be done the following way:
$ ./configure --prefix=/usr
After configure returns without errors, you can build and install the package the
following way:
$ make
$ make install
How to use?
-----------
Using Tinu is easy. If you compile your unit tests by hand, use the following:
$ $CC -o unittest unittest.c $(pkg-config tinu --libs --cflags)
If you use Tinu from autoconf/automake project, just add
PKG_CHECK_MODULES(LIBTINU, tinu >= 0.1a)
to your configure.ac file and
yourunittest_CFLAGS = @CFLAGS@
yourunittest_LDFLAGS = @LDFLAGS@
The CPP wrapper
---------------
Tinu has a CPP wrapper (called cxxwrap) for making Tinus integration into C++
projects easier. At the time of writing the following C/C++ mappings have been
implemented:
* CxxTinu: wrapper for the tinu_main, tinu_test_add and related functions. Should
be instantiated at the beginning of the main function. No further
actions are neccessary as the destructor takes care of running the
main function and returning the appropriate response.
* CxxTest: test cases can be implemented with these. CxxTest descended classes
are registered using CxxTinu::add_test.
* CxxMessageHandler: used for implementing custom message handlers.
* CxxLeakwatch: used for implementing custom leak-detectors.
* There are also other classes but they are used with the ones mentioned above.
Copyrights
----------
TINU is copyright (c) 2009, 2010 Viktor Hercinger <[email protected]> amd
is distributed under the terms of the BSD license.
For further details see the file COPYING
Coredumper is copyright (c) 2005-2007, Google Inc. and is distributed under the terms
of the BSD license.
For further details see the file COPYING.coredumper