]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3918] Documentation updated.
authorTomek Mrugalski <tomasz@isc.org>
Wed, 24 Jun 2015 12:42:16 +0000 (14:42 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 24 Jun 2015 12:42:16 +0000 (14:42 +0200)
doc/Makefile.am
doc/devel/contribute.dox
doc/devel/mainpage.dox
doc/devel/qa.dox [new file with mode: 0644]
doc/guide/dhcp4-srv.xml
doc/guide/dhcp6-srv.xml

index 77f66c295b18e9577cae8540d115a49fe911c677..115e492dfa205eda89069d0de8e9ca7bf0d72237 100644 (file)
@@ -4,6 +4,7 @@ EXTRA_DIST  = version.ent.in differences.txt Doxyfile Doxyfile-xml
 EXTRA_DIST += devel/config-backend.dox
 EXTRA_DIST += devel/contribute.dox
 EXTRA_DIST += devel/mainpage.dox
+EXTRA_DIST += devel/qa.dox
 
 EXTRA_DIST += images/isc-logo.png
 
index 5d143b1d8aedeb6d028157bd9f18058709b2025c..c98591140f6cea980696593cc7da23264999fb49 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013  Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2013,2015  Internet Systems Consortium, Inc. ("ISC")
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
@@ -78,33 +78,7 @@ change. That is even more true for new code: if you write a new
 function, method or a class, you definitely should write unit-tests
 for it.
 
-Kea uses the Google C++ Testing Framework (also called googletest or
-gtest) as a base for our C++ unit-tests. See
-http://code.google.com/p/googletest/ for details. We still have some Python
-unit-tests that we inherited from BIND10 days, but those tests are being
-removed, so please do not develop any new Python tests in Kea. (If you
-want to write DHCP tests in Python, we encourage you to take a look
-at ISC Forge: http://kea.isc.org/wiki/IscForge). You must
-have \c gtest installed or at least extracted in a directory before
-compiling Kea unit-tests. To enable unit-tests in Kea, use:
-
-@code
-./configure --with-gtest=/path/to/your/gtest/dir
-@endcode
-
-or
-
-@code
-./configure --with-gtest-source=/path/to/your/gtest/dir
-@endcode
-
-Depending on how you compiled or installed \c gtest (e.g. from sources
-or using some package management system) one of those two switches will
-find \c gtest. After that you make run unit-tests:
-
-@code
-make check
-@endcode
+See @ref qaUnitTests for instructions on how to run unit-tests.
 
 If you happen to add new files or have modified any \c Makefile.am
 files, it is also a good idea to check if you haven't broken the
@@ -162,8 +136,9 @@ critical for whatever reason, it may also be mentioned in release notes.
 @section contributorGuideExtra Extra steps
 
 If you are interested in knowing the results of more in-depth testing,
-you are welcome to visit the Kea build farm:
-http://git.kea.isc.org/~tester/builder/KEA-builder-new.html.  This is a
+you are welcome to visit the ISC Jenkins page: https://jenkins.isc.org
+(Our old Kea build farm http://git.kea.isc.org/~tester/builder/KEA-builder-new.html
+is being migrated to Jenkins).  This is a
 live result page with all tests being run on various systems.  Besides
 basic unit-tests, we also have reports from valgrind (memory debugger),
 cppcheck and clang-analyzer (static code analyzers), Lettuce system
index 7bdb9b746376cc0cfb2db4332fc4988be4e25984..3d2146c2fa750a5c35ac6c66ec7db621d7c7f76e 100644 (file)
  *   - @subpage configBackendAdding
  * - @subpage perfdhcpInternals
  *
+ * @section qa Quality Assurance
+ *   - @subpage qaUnitTests
+ *
  * @section miscellaneousTopics Miscellaneous Topics
  * - @subpage logKeaLogging
  *   - @subpage logBasicIdeas
diff --git a/doc/devel/qa.dox b/doc/devel/qa.dox
new file mode 100644 (file)
index 0000000..574727a
--- /dev/null
@@ -0,0 +1,71 @@
+// Copyright (C) 2015  Internet Systems Consortium, Inc. ("ISC")
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+// REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+// AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+// INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+// LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+// PERFORMANCE OF THIS SOFTWARE.
+
+/**
+
+@page qa Kea Quality Assurance processes
+
+ @section qaUnitTests Unit-tests
+
+Kea uses the Google C++ Testing Framework (also called googletest or gtest) as a
+base for our C++ unit-tests. See http://code.google.com/p/googletest/ for
+details. We used to have Python unit-tests that were inherited from BIND10
+days. Those tests are removed now, so please do not develop any new Python
+tests in Kea. If you want to write DHCP tests in Python, we encourage you to
+take a look at ISC Forge: http://kea.isc.org/wiki/IscForge. You must have \c
+gtest installed or at least extracted in a directory before compiling Kea
+unit-tests. To enable unit-tests in Kea, use:
+
+@code
+./configure --with-gtest=/path/to/your/gtest/dir
+@endcode
+
+or
+
+@code
+./configure --with-gtest-source=/path/to/your/gtest/dir
+@endcode
+
+Depending on how you compiled or installed \c gtest (e.g. from sources
+or using some package management system) one of those two switches will
+find \c gtest. After that you make run unit-tests:
+
+@code
+make check
+
+@endcode
+
+The following environment variable can affect unit-tests:
+
+- KEA_SOCKET_TEST_DIR - if set, it specifies the directory where Unix
+  sockets are created. There's OS limitation on how long a Unix socket
+  path can be. It is typcially slightly over 100 characters. If you
+  happen to build and run unit-tests in deeply nested directories, this
+  may become a problem. KEA_SOCKET_TEST_DIR can be specified to instruct
+  unit-test to use a different directory. Must not end with slash (e.g.
+  /tmp).
+
+- KEA_LOCKFILE_DIR - Specifies a directory where the logging system should
+  create its lock file. If not specified, it is prefix/var/run/kea, where prefix
+  defaults to /usr/local. This variable must not end with a slash. There is one
+  special value: "none", which instructs Kea to not create lock file at
+  all. This may cause issues if several processes log to the same file.
+  Also see Kea User's Guide, section 15.3.
+
+- KEA_LOGGER_DESTINATION - Specifies logging destination. If not set, logged
+  messages will not be recorded anywhere. There are 3 special values:
+  stdout, stderr and syslog. Any other value is interpreted as a filename.
+  Also see Kea User's Guide, section 15.3.
+
+ */
index d91b99c584b7495fcf302ea33c9c8007c939e7cd..dee626a1f952d123955a403bca3aa2d764a299cd 100644 (file)
@@ -2876,11 +2876,12 @@ temporarily override a list of interface names and listen on all interfaces.
       </para>
 
       <para>
-        The total path is limited to the size of sun_path field of the
-        sockaddr_un structure of your system, decreased by one. That's 107 bytes
-        on Linux and 103 bytes on FreeBSD. Other systems are expected to have
-        similar limitations. Please check documentation of your operating system
-        for details. In case of failure, please specify shorter path.
+       The length of the path specified by the <command>socket-name</command>
+       parameter is restricted by the maximum length for the unix socket name
+       on your operating system, i.e. the size of the <command>sun_path</command>
+       field in the <command>sockaddr_un</command> structure, decreased by 1.
+       This value varies on different operating systems between 91 and 107
+       characters. The typical values are 107 on Linux and 103 on FreeBSD.
       </para>
 
       <para>
index a5237ca3f7d745d8bce6e26ba3496e33b429f068..01f1771046c9cdab44912d2302e69974a21cd4a7 100644 (file)
@@ -2864,11 +2864,12 @@ should include options from the isc option space:
       </para>
 
       <para>
-        The total path is limited to the size of sun_path field of the
-        sockaddr_un structure of your system, decreased by one. That's 107 bytes
-        on Linux and 103 bytes on FreeBSD. Other systems are expected to have
-        similar limitations. Please check documentation of your operating system
-        for details. In case of failure, please specify shorter path.
+       The length of the path specified by the <command>socket-name</command>
+       parameter is restricted by the maximum length for the unix socket name
+       on your operating system, i.e. the size of the <command>sun_path</command>
+       field in the <command>sockaddr_un</command> structure, decreased by 1.
+       This value varies on different operating systems between 91 and 107
+       characters. The typical values are 107 on Linux and 103 on FreeBSD.
       </para>
 
       <para>