]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3481] Move perfdhcp source to src/bin/perfdhcp
authorStephen Morris <stephen@isc.org>
Wed, 30 Jul 2014 16:15:45 +0000 (17:15 +0100)
committerStephen Morris <stephen@isc.org>
Wed, 30 Jul 2014 16:15:45 +0000 (17:15 +0100)
Also modifiy Makefiles to install perfdhcp into sbin.

41 files changed:
configure.ac
src/bin/Makefile.am
src/bin/perfdhcp/.gitignore [moved from tests/tools/perfdhcp/.gitignore with 100% similarity]
src/bin/perfdhcp/Makefile.am [moved from tests/tools/perfdhcp/Makefile.am with 96% similarity]
src/bin/perfdhcp/command_options.cc [moved from tests/tools/perfdhcp/command_options.cc with 100% similarity]
src/bin/perfdhcp/command_options.h [moved from tests/tools/perfdhcp/command_options.h with 100% similarity]
src/bin/perfdhcp/localized_option.h [moved from tests/tools/perfdhcp/localized_option.h with 100% similarity]
src/bin/perfdhcp/main.cc [moved from tests/tools/perfdhcp/main.cc with 97% similarity]
src/bin/perfdhcp/packet_storage.h [moved from tests/tools/perfdhcp/packet_storage.h with 100% similarity]
src/bin/perfdhcp/perf_pkt4.cc [moved from tests/tools/perfdhcp/perf_pkt4.cc with 100% similarity]
src/bin/perfdhcp/perf_pkt4.h [moved from tests/tools/perfdhcp/perf_pkt4.h with 98% similarity]
src/bin/perfdhcp/perf_pkt6.cc [moved from tests/tools/perfdhcp/perf_pkt6.cc with 100% similarity]
src/bin/perfdhcp/perf_pkt6.h [moved from tests/tools/perfdhcp/perf_pkt6.h with 100% similarity]
src/bin/perfdhcp/perfdhcp.xml [moved from tests/tools/perfdhcp/perfdhcp.xml with 99% similarity]
src/bin/perfdhcp/perfdhcp_internals.dox [moved from tests/tools/perfdhcp/perfdhcp_internals.dox with 100% similarity]
src/bin/perfdhcp/pkt_transform.cc [moved from tests/tools/perfdhcp/pkt_transform.cc with 99% similarity]
src/bin/perfdhcp/pkt_transform.h [moved from tests/tools/perfdhcp/pkt_transform.h with 100% similarity]
src/bin/perfdhcp/rate_control.cc [moved from tests/tools/perfdhcp/rate_control.cc with 100% similarity]
src/bin/perfdhcp/rate_control.h [moved from tests/tools/perfdhcp/rate_control.h with 100% similarity]
src/bin/perfdhcp/stats_mgr.h [moved from tests/tools/perfdhcp/stats_mgr.h with 100% similarity]
src/bin/perfdhcp/test_control.cc [moved from tests/tools/perfdhcp/test_control.cc with 100% similarity]
src/bin/perfdhcp/test_control.h [moved from tests/tools/perfdhcp/test_control.h with 100% similarity]
src/bin/perfdhcp/tests/.gitignore [moved from tests/tools/perfdhcp/tests/.gitignore with 100% similarity]
src/bin/perfdhcp/tests/Makefile.am [moved from tests/tools/perfdhcp/tests/Makefile.am with 79% similarity]
src/bin/perfdhcp/tests/command_options_helper.h [moved from tests/tools/perfdhcp/tests/command_options_helper.h with 100% similarity]
src/bin/perfdhcp/tests/command_options_unittest.cc [moved from tests/tools/perfdhcp/tests/command_options_unittest.cc with 99% similarity]
src/bin/perfdhcp/tests/localized_option_unittest.cc [moved from tests/tools/perfdhcp/tests/localized_option_unittest.cc with 100% similarity]
src/bin/perfdhcp/tests/packet_storage_unittest.cc [moved from tests/tools/perfdhcp/tests/packet_storage_unittest.cc with 100% similarity]
src/bin/perfdhcp/tests/perf_pkt4_unittest.cc [moved from tests/tools/perfdhcp/tests/perf_pkt4_unittest.cc with 100% similarity]
src/bin/perfdhcp/tests/perf_pkt6_unittest.cc [moved from tests/tools/perfdhcp/tests/perf_pkt6_unittest.cc with 100% similarity]
src/bin/perfdhcp/tests/rate_control_unittest.cc [moved from tests/tools/perfdhcp/tests/rate_control_unittest.cc with 100% similarity]
src/bin/perfdhcp/tests/run_unittests.cc [moved from tests/tools/perfdhcp/tests/run_unittests.cc with 100% similarity]
src/bin/perfdhcp/tests/stats_mgr_unittest.cc [moved from tests/tools/perfdhcp/tests/stats_mgr_unittest.cc with 100% similarity]
src/bin/perfdhcp/tests/test_control_unittest.cc [moved from tests/tools/perfdhcp/tests/test_control_unittest.cc with 100% similarity]
src/bin/perfdhcp/tests/testdata/.gitignore [moved from tests/tools/perfdhcp/tests/testdata/.gitignore with 100% similarity]
src/bin/perfdhcp/tests/testdata/Makefile.am [moved from tests/tools/perfdhcp/tests/testdata/Makefile.am with 100% similarity]
src/bin/perfdhcp/tests/testdata/discover-example.hex [moved from tests/tools/perfdhcp/tests/testdata/discover-example.hex with 100% similarity]
src/bin/perfdhcp/tests/testdata/request4-example.hex [moved from tests/tools/perfdhcp/tests/testdata/request4-example.hex with 100% similarity]
src/bin/perfdhcp/tests/testdata/request6-example.hex [moved from tests/tools/perfdhcp/tests/testdata/request6-example.hex with 100% similarity]
src/bin/perfdhcp/tests/testdata/solicit-example.hex [moved from tests/tools/perfdhcp/tests/testdata/solicit-example.hex with 100% similarity]
tests/tools/Makefile.am

index d166e3d03edda222faf1c00f1b491529512a430c..6e4a9eeccbeb59d68b544509bfddb9ffcfe2abea 100644 (file)
@@ -1363,6 +1363,8 @@ AC_CONFIG_FILES([compatcheck/Makefile
                  ext/Makefile
                  m4macros/Makefile
                  Makefile
+                 src/Makefile
+                 src/bin/Makefile
                  src/bin/d2/Makefile
                  src/bin/d2/spec_config.h.pre
                  src/bin/d2/tests/Makefile
@@ -1370,32 +1372,35 @@ AC_CONFIG_FILES([compatcheck/Makefile
                  src/bin/d2/tests/test_data_files_config.h
                  src/bin/dhcp4/Makefile
                  src/bin/dhcp4/spec_config.h.pre
-                 src/bin/dhcp4/tests/dhcp4_process_tests.sh
                  src/bin/dhcp4/tests/Makefile
+                 src/bin/dhcp4/tests/dhcp4_process_tests.sh
                  src/bin/dhcp4/tests/marker_file.h
                  src/bin/dhcp4/tests/test_data_files_config.h
                  src/bin/dhcp4/tests/test_libraries.h
                  src/bin/dhcp6/Makefile
                  src/bin/dhcp6/spec_config.h.pre
-                 src/bin/dhcp6/tests/dhcp6_process_tests.sh
                  src/bin/dhcp6/tests/Makefile
+                 src/bin/dhcp6/tests/dhcp6_process_tests.sh
                  src/bin/dhcp6/tests/marker_file.h
                  src/bin/dhcp6/tests/test_data_files_config.h
                  src/bin/dhcp6/tests/test_libraries.h
-                 src/bin/keactrl/keactrl
+                 src/bin/keactrl/Makefile
                  src/bin/keactrl/kea.conf
+                 src/bin/keactrl/keactrl
                  src/bin/keactrl/keactrl.conf
-                 src/bin/keactrl/Makefile
-                 src/bin/keactrl/tests/keactrl_tests.sh
                  src/bin/keactrl/tests/Makefile
-                 src/bin/Makefile
+                 src/bin/keactrl/tests/keactrl_tests.sh
+                 src/bin/perfdhcp/Makefile
+                 src/bin/perfdhcp/tests/Makefile
+                 src/bin/perfdhcp/tests/testdata/Makefile
                  src/bin/sockcreator/Makefile
                  src/bin/sockcreator/tests/Makefile
+                 src/hooks/Makefile
                  src/hooks/dhcp/Makefile
                  src/hooks/dhcp/user_chk/Makefile
                  src/hooks/dhcp/user_chk/tests/Makefile
                  src/hooks/dhcp/user_chk/tests/test_data_files_config.h
-                 src/hooks/Makefile
+                 src/lib/Makefile
                  src/lib/asiodns/Makefile
                  src/lib/asiodns/tests/Makefile
                  src/lib/asiolink/Makefile
@@ -1405,21 +1410,21 @@ AC_CONFIG_FILES([compatcheck/Makefile
                  src/lib/cc/tests/Makefile
                  src/lib/cc/tests/session_unittests_config.h
                  src/lib/config/Makefile
-                 src/lib/config/tests/data_def_unittests_config.h
                  src/lib/config/tests/Makefile
+                 src/lib/config/tests/data_def_unittests_config.h
                  src/lib/config/tests/testdata/Makefile
                  src/lib/cryptolink/Makefile
                  src/lib/cryptolink/tests/Makefile
+                 src/lib/dhcp/Makefile
+                 src/lib/dhcp/tests/Makefile
                  src/lib/dhcp_ddns/Makefile
                  src/lib/dhcp_ddns/tests/Makefile
-                 src/lib/dhcp/Makefile
                  src/lib/dhcpsrv/Makefile
-                 src/lib/dhcpsrv/testutils/Makefile
                  src/lib/dhcpsrv/tests/Makefile
                  src/lib/dhcpsrv/tests/test_libraries.h
-                 src/lib/dhcp/tests/Makefile
-                 src/lib/dns/gen-rdatacode.py
+                 src/lib/dhcpsrv/testutils/Makefile
                  src/lib/dns/Makefile
+                 src/lib/dns/gen-rdatacode.py
                  src/lib/dns/tests/Makefile
                  src/lib/dns/tests/testdata/Makefile
                  src/lib/exceptions/Makefile
@@ -1428,37 +1433,32 @@ AC_CONFIG_FILES([compatcheck/Makefile
                  src/lib/hooks/tests/Makefile
                  src/lib/hooks/tests/marker_file.h
                  src/lib/hooks/tests/test_libraries.h
+                 src/lib/log/Makefile
                  src/lib/log/compiler/Makefile
                  src/lib/log/interprocess/Makefile
                  src/lib/log/interprocess/tests/Makefile
-                 src/lib/log/Makefile
+                 src/lib/log/tests/Makefile
                  src/lib/log/tests/buffer_logger_test.sh
                  src/lib/log/tests/console_test.sh
                  src/lib/log/tests/destination_test.sh
                  src/lib/log/tests/init_logger_test.sh
                  src/lib/log/tests/local_file_test.sh
                  src/lib/log/tests/logger_lock_test.sh
-                 src/lib/log/tests/Makefile
                  src/lib/log/tests/severity_test.sh
                  src/lib/log/tests/tempdir.h
-                 src/lib/Makefile
-                 src/lib/testutils/dhcp_test_lib.sh
                  src/lib/testutils/Makefile
+                 src/lib/testutils/dhcp_test_lib.sh
                  src/lib/testutils/testdata/Makefile
-                 src/lib/util/io/Makefile
                  src/lib/util/Makefile
-                 src/lib/util/python/gen_wiredata.py
+                 src/lib/util/io/Makefile
                  src/lib/util/python/Makefile
+                 src/lib/util/python/gen_wiredata.py
                  src/lib/util/tests/Makefile
                  src/lib/util/threads/Makefile
                  src/lib/util/threads/tests/Makefile
                  src/lib/util/unittests/Makefile
-                 src/Makefile
                  tests/Makefile
                  tests/tools/Makefile
-                 tests/tools/perfdhcp/Makefile
-                 tests/tools/perfdhcp/tests/Makefile
-                 tests/tools/perfdhcp/tests/testdata/Makefile
 ])
 
  AC_CONFIG_COMMANDS([permissions], [
index f2d450a86169fe5c3c999cb12e1c470317bd7340..c98da6e2aeac2f94c59a719981da00acd0320ac1 100644 (file)
@@ -1,5 +1,5 @@
 # The following build order must be maintained.
-SUBDIRS = sockcreator dhcp4 dhcp6 d2
+SUBDIRS = sockcreator dhcp4 dhcp6 d2 perfdhcp
 
 if CONFIG_BACKEND_JSON
 SUBDIRS += keactrl
similarity index 96%
rename from tests/tools/perfdhcp/Makefile.am
rename to src/bin/perfdhcp/Makefile.am
index f9c7a6fc2296ee9438a3181b76ab821d3a52094f..0c033537048910c846bba80d771933aaf5e5cf31 100644 (file)
@@ -17,7 +17,7 @@ if USE_STATIC_LINK
 AM_LDFLAGS += -static
 endif
 
-bin_PROGRAMS = perfdhcp
+sbin_PROGRAMS = perfdhcp
 perfdhcp_SOURCES = main.cc
 perfdhcp_SOURCES += command_options.cc command_options.h
 perfdhcp_SOURCES += localized_option.h
@@ -45,13 +45,13 @@ perfdhcp_LDADD += $(top_builddir)/src/lib/asiolink/libkea-asiolink.la
 # ... and the documentation
 EXTRA_DIST = perfdhcp_internals.dox
 
-man_MANS = perfdhcp.1
+man_MANS = perfdhcp.8
 DISTCLEANFILES = $(man_MANS)
 EXTRA_DIST += $(man_MANS) perfdhcp.xml
 
 if GENERATE_DOCS
 
-perfdhcp.1: perfdhcp.xml
+perfdhcp.8: perfdhcp.xml
        @XSLTPROC@ --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(builddir)/perfdhcp.xml
 
 else
similarity index 97%
rename from tests/tools/perfdhcp/main.cc
rename to src/bin/perfdhcp/main.cc
index a5254fc9157ea2ad1ab0d784ab4179fda93dd43c..06d123a7c13754df8dd10b3fffa215d24a2bf180 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2013  Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2014  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
@@ -61,4 +61,3 @@ main(int argc, char* argv[]) {
     }
     return (ret_code);
 }
-
similarity index 98%
rename from tests/tools/perfdhcp/perf_pkt4.h
rename to src/bin/perfdhcp/perf_pkt4.h
index 6f031936bc9fa481a6ce8182850e7ab5db7ad5dd..d3f82e422f930af6fa9f736ae83a6093575533e7 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2014 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
@@ -113,7 +113,7 @@ public:
     void writeAt(size_t dest_pos,
                  std::vector<uint8_t>::iterator first,
                  std::vector<uint8_t>::iterator last);
-    
+
     /// \brief Replace contents of buffer with value.
     ///
     /// Function replaces part of buffer with value.
similarity index 99%
rename from tests/tools/perfdhcp/perfdhcp.xml
rename to src/bin/perfdhcp/perfdhcp.xml
index 4baf304a5a52c43a25f5d896844d2bb2f64a7686..7fe028372a9da97d30bcf34c6d9065fa5917a56f 100644 (file)
@@ -24,7 +24,7 @@
 
     <refmeta>
         <refentrytitle>perfdhcp</refentrytitle>
-        <manvolnum>1</manvolnum>
+        <manvolnum>8</manvolnum>
         <refmiscinfo>Kea</refmiscinfo>
     </refmeta>
 
similarity index 99%
rename from tests/tools/perfdhcp/pkt_transform.cc
rename to src/bin/perfdhcp/pkt_transform.cc
index 0267d339089d18fdd1dce74184023894276f52ef..80cd705500ac80ae21db7c6b41a31f17ddc2367a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2014 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
@@ -214,7 +214,7 @@ PktTransform::unpackOptions(const OptionBuffer& in_buffer,
                         in_buffer.begin() + offset + opt_len);
     }
 }
-    
+
 void
 PktTransform::writeAt(dhcp::OptionBuffer& in_buffer, size_t dest_pos,
                       dhcp::OptionBuffer::iterator first,
similarity index 79%
rename from tests/tools/perfdhcp/tests/Makefile.am
rename to src/bin/perfdhcp/tests/Makefile.am
index b246df3c1ccd93aa254104f2ade70ccecfbc2880..9e102af91b73fdd3615431cbb0004b2fb51fe166 100644 (file)
@@ -31,12 +31,12 @@ run_unittests_SOURCES += rate_control_unittest.cc
 run_unittests_SOURCES += stats_mgr_unittest.cc
 run_unittests_SOURCES += test_control_unittest.cc
 run_unittests_SOURCES += command_options_helper.h
-run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/command_options.cc
-run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/pkt_transform.cc
-run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/perf_pkt6.cc
-run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/perf_pkt4.cc
-run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/rate_control.cc
-run_unittests_SOURCES += $(top_builddir)/tests/tools/perfdhcp/test_control.cc
+run_unittests_SOURCES += $(top_builddir)/src/bin/perfdhcp/command_options.cc
+run_unittests_SOURCES += $(top_builddir)/src/bin/perfdhcp/pkt_transform.cc
+run_unittests_SOURCES += $(top_builddir)/src/bin/perfdhcp/perf_pkt6.cc
+run_unittests_SOURCES += $(top_builddir)/src/bin/perfdhcp/perf_pkt4.cc
+run_unittests_SOURCES += $(top_builddir)/src/bin/perfdhcp/rate_control.cc
+run_unittests_SOURCES += $(top_builddir)/src/bin/perfdhcp/test_control.cc
 
 run_unittests_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_INCLUDES)
 run_unittests_LDFLAGS  = $(AM_LDFLAGS)  $(GTEST_LDFLAGS)
similarity index 99%
rename from tests/tools/perfdhcp/tests/command_options_unittest.cc
rename to src/bin/perfdhcp/tests/command_options_unittest.cc
index 3d2ce2e9a6361ede1dd182a838db6ca8983b9b67..5431018ecef9dce218254e7a10af60fce410b7b7 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2013 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2014 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
@@ -781,7 +781,7 @@ TEST_F(CommandOptionsTest, Interface) {
     const dhcp::IfaceMgr::IfaceCollection& ifaces = iface_mgr.getIfaces();
     std::string iface_name;
     CommandOptions& opt = CommandOptions::instance();
-    // The local loopback interface should be available. 
+    // The local loopback interface should be available.
     // If no interface have been found for any reason we should
     // not fail this test.
     if (ifaces.size() > 0) {
index 2fab4e57abbbd712ef65c2d3c2ca6cd7e3031d46..1a7eb296dc40830ec12f14490802f225590226a5 100644 (file)
@@ -1 +1 @@
-SUBDIRS = . perfdhcp
+SUBDIRS = .