]> begriffs open source - libtap/blob - INSTALL
Add INSTALL file.
[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 Also, 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 You can also might want to make use of the visual studio project file
20 included.
21
22 It may not be necessary to install it on your system. You can copy tap.c
23 and tap.h into your project and it should have no 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