-
Notifications
You must be signed in to change notification settings - Fork 1
/
README_InstallCppUTest.txt
executable file
·70 lines (50 loc) · 2.37 KB
/
README_InstallCppUTest.txt
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
1. Unzip into <someDirectory>, resulting in
<someDirectory>/CppUTest/
MAKE SURE <someDirectory> DOES NOT HAVE SPACES IN IT
MAKE SURE <someDirectory> DOES NOT HAVE SPACES IN IT
MAKE SURE <someDirectory> DOES NOT HAVE SPACES IN IT
2. Build CppUTest and examples
2a. For unix/gcc (including cygwin)
> cd <someDirectory>/CppUTest
> make
NOTE: the builds run their unit tests to verify the build
NOTE: Older cygwin installs may report memory leaks.
2b. For Microsoft Visual C++ V6
Double click <someDirectory>/CppUTest/CppUTest.dsw
Run without debugging, see the test results in the command window
Exit MS Visual C++
To run the examples:
Double click <someDirectory>/CppUTest/example/CppUTestExample.dsw
Run without debugging, see the test results in the command window
You should define the environment variable CPP_U_TEST to point to CppUTest
to run these.
NOTE: To create your own project, you need to have CppUTest and your project
compiled with the same compile and link settings
NOTE: VC6 test runs may report memory leaks.
3c. For Microsoft Visual Studio 2008
Double click <someDirectory>/CppUTest/CppUTest.sln
If Visual studio reports that the solution file was created with a
newer version of Visual Studio, then try 3d
Then press control-F5 to "Start without debugging"
See CppUTest build and run its tests.
3d. For Older Microsoft Visual Studio .NET
Double click <someDirectory>/CppUTest/CppUTest.dsw
Allow VS.NET to convert the files by clicking "yes to all"
Run without debugging, see the test results in the command window
Exit MS VS.NET
Allow VS.NET to convert the files by clicking "yes to all"
Run without debugging, see the test results in the command window
NOTE: To create your own project, you need to have CppUTest and your project
compiled with the same compile and link settings
NOTE: VC6 test runs may report memory leaks.
4. to setup the support scripts. These scripts work in various unix systems
and cygwin. (these are quite handy) If you are using windows
install some tool like cygwin, msys or MKSToolkit to run these scripts.
> cd <someDirectory>/CppUTest/CppSourceTemplates
> ./InstallScripts.sh
This command adds some symbolic links to /usr/local/bin, so you have
to run it as root.
sudo ./InstallScripts.sh
MSYS - http://www.mingw.org/msys.shtml
CYGWIN - http://www.cygwin.com/
MKSToolkit - http://mkstoolkit.com/