]> begriffs open source - libtap/blob - INSTALL
Merge branch 'gh-pages' of github.com:zorgnax/libtap
[libtap] / INSTALL
1 To install libtap on a unix-like system:
2
3     $ make
4     $ make check
5     $ make install
6
7 On Windows, the library can be created by first setting up
8 the correct development environment variables. Usually this
9 is done by running vcvars32.bat included in the visual studio
10 distribution. You should also install gnu make which can be
11 found at http://gnuwin32.sourceforge.net/packages/make.htm.
12 And you should have perl to run the tests although this isnt
13 absolutely necessary. Once this is done, you should be able to
14 run the following:
15
16     > make GNU=
17     > make check
18
19 Alternatively, you might want to use the visual studio project file
20 included by Alexander Kahl (e-user).
21
22 If you want to use it directly in another project, you can copy tap.c
23 and tap.h there and it shouldn't have a problem compiling.
24
25     $ ls
26     tap.c tap.h test.c
27     $ cat test.c
28     #include "tap.h"
29     int main () {
30         plan(1);
31         ok(50 + 5, "foo %s", "bar");
32         done_testing();
33     }
34     $ gcc test.c tap.c
35     $ a.out
36     1..1
37     ok 1 - foo bar
38