swh:1:snp:f521c49ab17ef7db6ec70b2430e1ed203f50383f
Raw File
Tip revision: 80a6d1a2cf8cfd4e222c6fd1909e09da980be2c0 authored by Wenqing Wang on 05 July 2021, 15:50:14 UTC
[web/benchmark] Added the missed {{< data-link >}} in one project file.
Tip revision: 80a6d1a
TestDefinition.h
/**
 * \file
 *
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#pragma once

#include <memory>
#include <string>
#include <vector>

namespace BaseLib
{
class ConfigTree;
}

namespace ApplicationsLib
{
class TestDefinition final
{
public:
    /// Constructs test definition from the config and reference path
    /// essentially constructing the command lines to be run on run() function
    /// call.
    TestDefinition(BaseLib::ConfigTree const& config_tree,
                   std::string const& reference_path,
                   std::string const& output_directory);

    bool runTests() const;
    std::vector<std::string> const& getOutputFiles() const;
    std::size_t numberOfTests() const;

private:
    std::vector<std::string> _command_lines;
    std::vector<std::string> _output_files;
};
}  // namespace ApplicationsLib
back to top