dhcp4_unittests.cc 710 B

123456789101112131415161718192021222324
  1. // Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this
  5. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. #include <log/logger_support.h>
  7. #include <dhcp4/dhcp4_log.h>
  8. #include <gtest/gtest.h>
  9. int
  10. main(int argc, char* argv[]) {
  11. ::testing::InitGoogleTest(&argc, argv);
  12. // See the documentation of the KEA_* environment variables in
  13. // src/lib/log/README for info on how to tweak logging
  14. isc::log::initLogger();
  15. setenv("KEA_PIDFILE_DIR", TEST_DATA_BUILDDIR, 1);
  16. int result = RUN_ALL_TESTS();
  17. return (result);
  18. }