aboutsummaryrefslogtreecommitdiffstats
path: root/config/src/tests/configgen/configgen.cpp
blob: a1e891e19fa5907c4213e376408e1866d9564521 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include <vespa/log/log.h>
LOG_SETUP("configgen");
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/config/config.h>
#include "config-motd.h"

using namespace config;

TEST("require that config type can be compiled") {
    std::unique_ptr<MotdConfig> cfg = ConfigGetter<MotdConfig>::getConfig("motd",
                                          FileSpec(vespalib::TestApp::GetSourceDirectory() + "motd.cfg"));
}

TEST_MAIN() { TEST_RUN_ALL(); }