]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[rt25901_atf] Atffile/compilation cleanup, ATF description updated
authorTomek Mrugalski <tomasz@isc.org>
Tue, 7 Aug 2012 22:23:01 +0000 (00:23 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 7 Aug 2012 22:23:01 +0000 (00:23 +0200)
common/tests/Atffile
doc/devel/atf.dox
server/dhcpd.c

index 14b1055be9dacf6cb485843464368d976e34fe4c..10402ce74ca5f8c4587d4acd7faffcea22054d95 100644 (file)
@@ -2,6 +2,4 @@ Content-Type: application/X-atf-atffile; version="1"
 
 prop: test-suite = dhcp4
 
-tp-glob: test_alloc
-tp-glob: hash_unittest
-
+tp-glob: *_unittest
index 3a1bace289f4629f353031bad2552fed376053a3..b9b305a5f4bf8c46c5064969b0fd96cad0892a15 100644 (file)
@@ -6,14 +6,32 @@
 @section testsAtf ATF unit-tests
 
 ATF stands for Automated Test Framework, and is the framework used for
-all unit-tests.n ISC DHCP. To build the unit-tests, use the following:
+unit-tests in ISC DHCP and BIND9. ATF can be downloaded from
+http://code.google.com/p/kyua/wiki/ATF
+
+The ATF successor, called Kyua, is being developed. As of August 2012,
+the latest available release of Kyua is 0.5. It claims to offer
+feature parity with ATF. Migration to Kyua may be planned some time in
+the future. Such upgrade should be done in coordination with BIND. The
+latest tested version of ATF that DHCP's unittests were run against is
+0.15.
+
+To build the unit-tests, use the following:
 
 @verbatim
-./configure --enable-atf
+./configure --with-atf
 make
 make check
 @endverbatim
 
+The following syntax is supported as well:
+@verbatim
+./configure --with-atf=/path/to/your/atf/install
+@endverbatim
+
+but it seems to have troubles detecting ATF installation, at least
+with ATF 0.14 and Mac OS X 10.6.8.
+
 Each code directory (e.g. server/) that has unit-tests has a sub-directory
 named tests (e.g. server/tests). You can execute "make check" in that
 directory to run specific subset of tests.
index 3239459f8fafc7f0c0c53f2d94aa2fb1b182a50b..95d474b97fdb14b30b043680ced36b557319139d 100644 (file)
@@ -58,7 +58,9 @@ static const char url [] =
 #  undef group
 #endif /* PARANOIA */
 
+#ifndef UNIT_TEST
 static void usage(void);
+#endif
 
 struct iaddr server_identifier;
 int server_identifier_matched;
@@ -1201,7 +1203,7 @@ void postdb_startup (void)
 }
 
 /* Print usage message. */
-
+#ifndef UNIT_TEST
 static void
 usage(void) {
        log_info("%s %s", message, PACKAGE_VERSION);
@@ -1225,6 +1227,7 @@ usage(void) {
                  "             [-pf pid-file] [--no-pid] [-s server]\n"
                  "             [if0 [...ifN]]");
 }
+#endif
 
 void lease_pinged (from, packet, length)
        struct iaddr from;