~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to docs/html/node17.html

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
8
8
<HTML>
9
9
<HEAD>
10
 
<TITLE>Configuration</TITLE>
11
 
<META NAME="description" CONTENT="Configuration">
 
10
<TITLE>Running unit tests</TITLE>
 
11
<META NAME="description" CONTENT="Running unit tests">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
18
18
 
19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
20
20
 
21
 
<LINK REL="next" HREF="node25.html">
22
 
<LINK REL="previous" HREF="node9.html">
23
 
<LINK REL="up" HREF="clamdoc.html">
 
21
<LINK REL="next" HREF="node18.html">
 
22
<LINK REL="previous" HREF="node16.html">
 
23
<LINK REL="up" HREF="node11.html">
24
24
<LINK REL="next" HREF="node18.html">
25
25
</HEAD>
26
26
 
27
27
<BODY >
28
28
 
29
29
<DIV CLASS="navigation"><!--Navigation Panel-->
30
 
<A NAME="tex2html420"
 
30
<A NAME="tex2html426"
31
31
  HREF="node18.html">
32
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
 
33
<A NAME="tex2html422"
 
34
  HREF="node11.html">
 
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
33
36
<A NAME="tex2html416"
34
 
  HREF="clamdoc.html">
35
 
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
36
 
<A NAME="tex2html410"
37
37
  HREF="node16.html">
38
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
39
 
<A NAME="tex2html418"
 
39
<A NAME="tex2html424"
40
40
  HREF="node1.html">
41
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
42
42
<BR>
43
 
<B> Next:</B> <A NAME="tex2html421"
44
 
  HREF="node18.html">clamd</A>
45
 
<B> Up:</B> <A NAME="tex2html417"
46
 
  HREF="clamdoc.html">clamdoc</A>
47
 
<B> Previous:</B> <A NAME="tex2html411"
48
 
  HREF="node16.html">Reporting a unit test</A>
49
 
 &nbsp; <B>  <A NAME="tex2html419"
 
43
<B> Next:</B> <A NAME="tex2html427"
 
44
  HREF="node18.html">Reporting a unit test</A>
 
45
<B> Up:</B> <A NAME="tex2html423"
 
46
  HREF="node11.html">Installation</A>
 
47
<B> Previous:</B> <A NAME="tex2html417"
 
48
  HREF="node16.html">Compilation with clamav-milter enabled</A>
 
49
 &nbsp; <B>  <A NAME="tex2html425"
50
50
  HREF="node1.html">Contents</A></B> 
51
51
<BR>
52
52
<BR></DIV>
53
53
<!--End of Navigation Panel-->
54
54
 
55
 
<H1><A NAME="SECTION00050000000000000000">
56
 
Configuration</A>
57
 
</H1>
58
 
 
59
 
<P>
60
 
<BR><HR>
61
 
<!--Table of Child-Links-->
62
 
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
63
 
 
64
 
<UL CLASS="ChildLinks">
65
 
<LI><A NAME="tex2html422"
66
 
  HREF="node18.html">clamd</A>
67
 
<UL>
68
 
<LI><A NAME="tex2html423"
69
 
  HREF="node19.html">On-access scanning</A>
70
 
</UL>
71
 
<BR>
72
 
<LI><A NAME="tex2html424"
73
 
  HREF="node20.html">clamav-milter</A>
74
 
<LI><A NAME="tex2html425"
75
 
  HREF="node21.html">Testing</A>
76
 
<LI><A NAME="tex2html426"
77
 
  HREF="node22.html">Setting up auto-updating</A>
78
 
<UL>
79
 
<LI><A NAME="tex2html427"
80
 
  HREF="node23.html">Closest mirrors</A>
81
 
</UL>
82
 
<BR>
83
 
<LI><A NAME="tex2html428"
84
 
  HREF="node24.html">ClamAV Active Malware Report</A>
85
 
</UL>
86
 
<!--End of Table of Child-Links-->
87
 
<BR><HR>
 
55
<H2><A NAME="SECTION00046000000000000000"></A><A NAME="unit-testing"></A>
 
56
<BR>
 
57
Running unit tests
 
58
</H2>
 
59
        ClamAV includes unit tests that allow you to test that the compiled binaries work correctly on your platform.
 
60
 
 
61
<P>
 
62
The first step is to use your OS's package manager to install the <code>check</code> package. 
 
63
        If your OS doesn't have that package, you can download it from <TT><A NAME="tex2html11"
 
64
  HREF="http://check.sourceforge.net/">http://check.sourceforge.net/</A></TT>, 
 
65
        build it and install it.
 
66
 
 
67
<P>
 
68
To help clamav's configure script locate <code>check</code>, it is recommended that you install <code>pkg-config</code>, preferably
 
69
        using your OS's package manager, or from <TT><A NAME="tex2html12"
 
70
  HREF="http://pkg-config.freedesktop.org">http://pkg-config.freedesktop.org</A></TT>.
 
71
 
 
72
<P>
 
73
The recommended way to run unit-tests is the following, which ensures you will get an error if unit tests cannot be built:
 
74
        <A NAME="tex2html13"
 
75
  HREF="footnode.html#foot165"><SUP><SPAN CLASS="arabic">7</SPAN></SUP></A>     <PRE>
 
76
         $ ./configure --enable-check
 
77
         $ make
 
78
         $ make check
 
79
</PRE>
 
80
 
 
81
<P>
 
82
When <code>make check</code> is finished, you should get a message similar to this:
 
83
        <PRE>
 
84
==================
 
85
All 8 tests passed
 
86
==================
 
87
</PRE>
 
88
 
 
89
<P>
 
90
If a unit test fails, you get a message similar to the following. 
 
91
        See the next section on how to report a bug when a unit test fails.
 
92
        <PRE>
 
93
========================================
 
94
1 of 8 tests failed
 
95
Please report to http://bugs.clamav.net/
 
96
========================================
 
97
</PRE>
 
98
 
 
99
<P>
 
100
If unit tests are disabled (and you didn't use -enable-check), you will get this message:
 
101
        <PRE>
 
102
*** Unit tests disabled in this build
 
103
*** Use ./configure --enable-check to enable them
 
104
 
 
105
SKIP: check_clamav
 
106
PASS: check_clamd.sh
 
107
PASS: check_freshclam.sh
 
108
PASS: check_sigtool.sh
 
109
PASS: check_clamscan.sh
 
110
======================
 
111
All 4 tests passed
 
112
(1 tests were not run)
 
113
======================
 
114
</PRE>
 
115
        Running <code>./configure --enable-check</code> should tell you why.
 
116
 
 
117
<P>
 
118
 
 
119
<DIV CLASS="navigation"><HR>
 
120
<!--Navigation Panel-->
 
121
<A NAME="tex2html426"
 
122
  HREF="node18.html">
 
123
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
 
124
<A NAME="tex2html422"
 
125
  HREF="node11.html">
 
126
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
 
127
<A NAME="tex2html416"
 
128
  HREF="node16.html">
 
129
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
 
130
<A NAME="tex2html424"
 
131
  HREF="node1.html">
 
132
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
 
133
<BR>
 
134
<B> Next:</B> <A NAME="tex2html427"
 
135
  HREF="node18.html">Reporting a unit test</A>
 
136
<B> Up:</B> <A NAME="tex2html423"
 
137
  HREF="node11.html">Installation</A>
 
138
<B> Previous:</B> <A NAME="tex2html417"
 
139
  HREF="node16.html">Compilation with clamav-milter enabled</A>
 
140
 &nbsp; <B>  <A NAME="tex2html425"
 
141
  HREF="node1.html">Contents</A></B> </DIV>
 
142
<!--End of Navigation Panel-->
88
143
<ADDRESS>
89
144
Tomasz Kojm
90
 
2009-10-28
 
145
2010-03-10
91
146
</ADDRESS>
92
147
</BODY>
93
148
</HTML>