Browse Source

[5272] unit-tests for lease4-add, lease6-add implemented

Tomek Mrugalski 7 years ago
parent
commit
e7861cf378

+ 3 - 3
src/hooks/dhcp/lease_cmds/tests/.gitignore

@@ -1,5 +1,5 @@
-host_cmds_unittests
-host_cmds_unittests.log
-host_cmds_unittests.trs
+lease_cmds_unittests
+lease_cmds_unittests.log
+lease_cmds_unittests.trs
 test-suite.log
 *~

File diff suppressed because it is too large
+ 1028 - 0
src/hooks/dhcp/lease_cmds/tests/lease_cmds_unittest.cc


+ 17 - 0
src/hooks/dhcp/lease_cmds/tests/run_unittests.cc

@@ -0,0 +1,17 @@
+// Copyright (C) 2017 Internet Systems Consortium, Inc. ("ISC")
+//
+// This Source Code Form is subject to the terms of the Mozilla Public
+// License, v. 2.0. If a copy of the MPL was not distributed with this
+// file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+#include <log/logger_support.h>
+#include <gtest/gtest.h>
+
+int
+main(int argc, char* argv[]) {
+    ::testing::InitGoogleTest(&argc, argv);
+    isc::log::initLogger();
+    int result = RUN_ALL_TESTS();
+
+    return (result);
+}