Commit 9fff3d45 authored by Francis Dupont's avatar Francis Dupont

[3752] Added logging.spec check

parent 58a55649
......@@ -177,6 +177,9 @@ EXTRA_DIST += hosts_messages.mes
# Database schema creation script moved to src/bin/admin
EXTRA_DIST += database_backends.dox libdhcpsrv.dox
# Specification file
EXTRA_DIST += logging.spec
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(dhcp_data_dir)
......
// Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2014, 2015 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
......@@ -25,6 +25,17 @@ using namespace isc::data;
namespace {
// Helper to get the spec file
std::string specfile(const std::string& name) {
return (std::string(TEST_DATA_BUILDDIR) + "/../" + name);
}
// Tests that the spec file is valid.
TEST(LoggingTest, basicSpec) {
using namespace isc::config;
ASSERT_NO_THROW(moduleSpecFromFile(specfile("logging.spec")));
}
/// @brief Logging Test Fixture Class
///
/// Trivial class that ensures that the logging is reset to its defaults after
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment