BIND 10 trac1265, updated. 363be148c3c8ba79df67ba698f7dbf45f4a00f59 [1265] Set up basic framework for perfdhcp

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Nov 18 01:35:04 UTC 2011


The branch, trac1265 has been updated
       via  363be148c3c8ba79df67ba698f7dbf45f4a00f59 (commit)
      from  da3e9e54f1374d581d78f1d874ddafd427a622ab (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 363be148c3c8ba79df67ba698f7dbf45f4a00f59
Author: John DuBois <johnd at isc.org>
Date:   Thu Nov 17 08:26:46 2011 -0800

    [1265]
    Set up basic framework for perfdhcp

-----------------------------------------------------------------------

Summary of changes:
 tests/tools/Makefile.am                            |    2 +-
 tests/tools/perfdhcp/Makefile.am                   |    1 +
 .../{badpacket => perfdhcp}/tests/Makefile.am      |   11 ++++++-----
 .../{badpacket => perfdhcp}/tests/run_unittests.cc |    0 
 4 files changed, 8 insertions(+), 6 deletions(-)
 create mode 100644 tests/tools/perfdhcp/Makefile.am
 copy tests/tools/{badpacket => perfdhcp}/tests/Makefile.am (64%)
 copy tests/tools/{badpacket => perfdhcp}/tests/run_unittests.cc (100%)

-----------------------------------------------------------------------
diff --git a/tests/tools/Makefile.am b/tests/tools/Makefile.am
index 2f07494..ac10c40 100644
--- a/tests/tools/Makefile.am
+++ b/tests/tools/Makefile.am
@@ -1 +1 @@
-SUBDIRS = badpacket
+SUBDIRS = badpacket perfdhcp
diff --git a/tests/tools/perfdhcp/Makefile.am b/tests/tools/perfdhcp/Makefile.am
new file mode 100644
index 0000000..80d5f44
--- /dev/null
+++ b/tests/tools/perfdhcp/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = . tests
diff --git a/tests/tools/perfdhcp/tests/Makefile.am b/tests/tools/perfdhcp/tests/Makefile.am
new file mode 100644
index 0000000..9f38c43
--- /dev/null
+++ b/tests/tools/perfdhcp/tests/Makefile.am
@@ -0,0 +1,33 @@
+SUBDIRS = .
+
+AM_CPPFLAGS = -I$(top_builddir)/src/lib -I$(top_srcdir)/src/lib
+AM_CPPFLAGS += $(BOOST_INCLUDES)
+AM_CXXFLAGS = $(B10_CXXFLAGS)
+
+if USE_STATIC_LINK
+AM_LDFLAGS = -static
+endif
+
+CLEANFILES = *.gcno *.gcda
+
+TESTS =
+if HAVE_GTEST
+TESTS += run_unittests
+run_unittests_SOURCES  = run_unittests.cc
+run_unittests_SOURCES += cloptions_unittest.cc
+run_unittests_SOURCES += sendreceive_unittest.cc
+run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/cloptions.cc
+run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/procconf.cc
+run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/dkdebug.cc
+run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/perfdhcp.cc
+
+run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
+run_unittests_LDFLAGS  = $(AM_LDFLAGS)  $(GTEST_LDFLAGS)
+
+run_unittests_LDADD  = $(GTEST_LDADD)
+run_unittests_LDADD += $(top_builddir)/src/lib/util/libutil.la
+run_unittests_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
+run_unittests_LDADD += $(top_builddir)/src/lib/util/unittests/libutil_unittests.la
+endif
+
+noinst_PROGRAMS = $(TESTS)
diff --git a/tests/tools/perfdhcp/tests/run_unittests.cc b/tests/tools/perfdhcp/tests/run_unittests.cc
new file mode 100644
index 0000000..6eeca75
--- /dev/null
+++ b/tests/tools/perfdhcp/tests/run_unittests.cc
@@ -0,0 +1,25 @@
+// Copyright (C) 2009  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.
+
+#include <config.h>
+
+#include <gtest/gtest.h>
+#include <util/unittests/run_all.h>
+
+int
+main(int argc, char* argv[]) {
+    ::testing::InitGoogleTest(&argc, argv);
+
+    return (isc::util::unittests::run_all());
+}




More information about the bind10-changes mailing list